Skip to content

Support no-op for PR pipeline#49558

Open
raych1 wants to merge 3 commits into
mainfrom
users/raych1/support-no-op-4-pr-pipeline
Open

Support no-op for PR pipeline#49558
raych1 wants to merge 3 commits into
mainfrom
users/raych1/support-no-op-4-pr-pipeline

Conversation

@raych1

@raych1 raych1 commented Jun 18, 2026

Copy link
Copy Markdown
Member

This pull request introduces a new mechanism to optionally skip pull request (PR) validation in the Azure Pipelines configuration. It does so by adding a SkipPrValidation parameter to relevant pipeline templates and updating the pipeline logic to perform a no-op stage when skipping is enabled. This provides more flexibility in controlling PR validation runs, especially for scenarios like common skills sync or manual overrides.

Key changes include:

Pipeline parameterization and control:

  • Added a new boolean parameter SkipPrValidation (default: false) to both eng/pipelines/pullrequest.yml and eng/pipelines/templates/stages/archetype-sdk-client.yml, allowing users to control whether PR validation should be skipped.
  • Updated parameter passing so that SkipPrValidation is propagated from the top-level pipeline to the archetype template.

Conditional pipeline execution:

  • Modified the pipeline stages to conditionally execute either a no-op stage (when SkipPrValidation is true) or the normal build and test stages (when SkipPrValidation is false). The no-op stage logs a message indicating PR validation was skipped.
  • Updated conditions for executing additional stages (AdditionalStagesAfterBuild, LiveTestStages, and release stages) to ensure they are only run if PR validation is not skipped.

@raych1 raych1 marked this pull request as ready for review June 18, 2026 19:27
@raych1 raych1 requested review from benbp and mikeharder as code owners June 18, 2026 19:27
Copilot AI review requested due to automatic review settings June 18, 2026 19:27
@raych1 raych1 self-assigned this Jun 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a SkipPrValidation switch to the PR pipeline template flow, allowing the pipeline to run a lightweight no-op stage instead of the normal Build/Test stages when skipping is enabled.

Changes:

  • Introduced SkipPrValidation boolean parameter in the shared SDK-client archetype template.
  • Added a conditional NoOp stage that runs when PR validation is skipped; otherwise runs the existing Build stage.
  • Updated downstream stage inclusion (AdditionalStagesAfterBuild, LiveTestStages, release stages) to not run when validation is skipped.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
eng/pipelines/templates/stages/archetype-sdk-client.yml Adds SkipPrValidation and conditionally selects between NoOp and Build, plus gates additional stages when skipping.
eng/pipelines/pullrequest.yml Adds and propagates the SkipPrValidation parameter into the archetype template for PR builds.

Comment thread eng/pipelines/templates/stages/archetype-sdk-client.yml Outdated
Comment thread eng/pipelines/pullrequest.yml
Comment thread eng/pipelines/templates/stages/archetype-sdk-client.yml Outdated
@raych1 raych1 requested a review from benbp June 18, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants