Support no-op for PR pipeline#60075
Open
raych1 wants to merge 1 commit into
Open
Conversation
Add a SkipPrValidation parameter to the .NET pull request pipeline and archetype SDK client template. For manual runs with the flag enabled, emit a no-op stage and skip build/release validation stages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an opt-in SkipPrValidation boolean parameter to the PR pipeline so that manual runs can complete as a no-op, mirroring the behavior introduced in the Java repo. The flag is threaded from eng/pipelines/pullrequest.yml into the shared stage template, where it conditionally injects a simple “No-op” stage and suppresses build/release validation for manual executions.
Changes:
- Added
SkipPrValidationparameter to the PR pipeline entrypoint (eng/pipelines/pullrequest.yml) and passed it into the archetype stage template. - Updated
archetype-sdk-client.ymlto add a manual-run “NoOp” stage whenSkipPrValidation=true, and to skip Build plus prerelease/release stages in that mode.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eng/pipelines/templates/stages/archetype-sdk-client.yml | Adds SkipPrValidation parameter, introduces a manual “No-op” stage, and conditions Build/release stages to be skipped when enabled. |
| eng/pipelines/pullrequest.yml | Adds SkipPrValidation pipeline parameter and forwards it to the archetype stage template. |
Comment on lines
87
to
89
| - stage: Build | ||
| condition: not(and(eq(${{ parameters.SkipPrValidation }}, true), eq(variables['Build.Reason'], 'Manual'))) | ||
| variables: |
benbp
approved these changes
Jun 19, 2026
Member
|
@raych1 : Can you please explain the purpose of this feature? I get that this version brings parity with Java, but I'd like to understand the end-to-end scenario and motivation. |
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.
Mirrors Azure/azure-sdk-for-java#49558 for the .NET PR pipeline.\n\n- Adds a \SkipPrValidation\ parameter to \�ng/pipelines/pullrequest.yml.\n- Passes it through to \�rchetype-sdk-client.yml.\n- Adds a manual-run no-op stage and skips build/release validation when the flag is enabled.\n\nValidation:\n- \git diff --check\n- Parsed changed YAML files with PyYAML