Skip to content

Support no-op for PR pipeline#60075

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

Support no-op for PR pipeline#60075
raych1 wants to merge 1 commit into
mainfrom
users/raych1/support-no-op-4-pr-pipeline

Conversation

@raych1

@raych1 raych1 commented Jun 19, 2026

Copy link
Copy Markdown
Member

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

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>
Copilot AI review requested due to automatic review settings June 19, 2026 19:11

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 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 SkipPrValidation parameter to the PR pipeline entrypoint (eng/pipelines/pullrequest.yml) and passed it into the archetype stage template.
  • Updated archetype-sdk-client.yml to add a manual-run “NoOp” stage when SkipPrValidation=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:
@jsquire

jsquire commented Jun 20, 2026

Copy link
Copy Markdown
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.

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.

4 participants