Support no-op for PR pipeline#49558
Open
raych1 wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
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
SkipPrValidationboolean parameter in the shared SDK-client archetype template. - Added a conditional
NoOpstage that runs when PR validation is skipped; otherwise runs the existingBuildstage. - 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. |
benbp
reviewed
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
SkipPrValidationparameter 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:
SkipPrValidation(default:false) to botheng/pipelines/pullrequest.ymlandeng/pipelines/templates/stages/archetype-sdk-client.yml, allowing users to control whether PR validation should be skipped.SkipPrValidationis propagated from the top-level pipeline to the archetype template.Conditional pipeline execution:
SkipPrValidationistrue) or the normal build and test stages (whenSkipPrValidationisfalse). The no-op stage logs a message indicating PR validation was skipped.AdditionalStagesAfterBuild,LiveTestStages, and release stages) to ensure they are only run if PR validation is not skipped.