Skip to content

ci: Future proof GitHub merge queue branch trigger for release/* branches #3807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 11, 2025

This PR makes the Azure Pipeline trigger future proof when creating new release/v* feature branches by updating trigger patterns to be more specific and targeted.

Changes Made

🔧 Pipeline Trigger Updates

  • Main Pipeline (.pipelines/pipeline.yaml):

    • Updated PR trigger from release/* to release/v* for more precise matching
    • Added GitHub merge queue trigger gh-readonly-queue/release/v*/* for release branch merge queue support
  • NPM Pipelines:

    • Updated .pipelines/npm/npm-scale-test.yaml PR trigger from release/* to release/v*
    • Updated .pipelines/npm/npm-conformance-tests.yaml PR trigger from release/* to release/v*

Technical Details

The new release/v* pattern will:

  • ✅ Match version-based release branches: release/v1.0, release/v2.0.1, release/v1.0-alpha
  • ❌ Skip non-version release branches: release/feature-branch, release/hotfix

Benefits

  • Future-proof: New release/v* branches automatically trigger appropriate pipelines
  • Precise: Only version-based release branches trigger builds, reducing unnecessary runs
  • Consistent: All pipeline files use the same pattern for maintainability
  • GitHub Integration: Merge queue operations now supported for release branches

Validation

All changes have been validated for:

  • YAML syntax correctness
  • Pattern matching behavior with test cases
  • Consistency across all modified pipeline files

Fixes #3806.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] ci: Future Proof github merge queue branch trigger ci: Future proof GitHub merge queue branch trigger for release/v* branches Jul 11, 2025
@Copilot Copilot AI requested a review from jpayne3506 July 11, 2025 20:01
Copilot finished work on behalf of jpayne3506 July 11, 2025 20:01
@jpayne3506 jpayne3506 added ci Infra or tooling. needs-backport Change needs to be backported to previous release trains labels Jul 11, 2025
Copy link
Contributor

@jpayne3506 jpayne3506 left a comment

Choose a reason for hiding this comment

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

We are limiting the changes to only .pipelines/pipeline.yaml

Copy link
Contributor Author

Copilot AI commented Jul 11, 2025

We are limiting the changes to only .pipelines/pipeline.yaml

Done. I've reverted the NPM pipeline changes and limited the scope to only .pipelines/pipeline.yaml as requested. The changes are now isolated to the main pipeline file only. (8ddc52d)

@Copilot Copilot AI requested a review from jpayne3506 July 11, 2025 20:21
Copilot finished work on behalf of jpayne3506 July 11, 2025 20:21
Copy link
Contributor

@jpayne3506 jpayne3506 left a comment

Choose a reason for hiding this comment

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

Lets change release/v* to release/ in order to capture more scenarios

Copy link
Contributor Author

Copilot AI commented Jul 11, 2025

Lets change release/v* to release/ in order to capture more scenarios

Updated the trigger patterns from release/v* to release/* to capture more release branch scenarios as requested. This now covers version-based branches, feature branches, and any other release branch formats. (1d57901)

@Copilot Copilot AI requested a review from jpayne3506 July 11, 2025 20:39
Copilot finished work on behalf of jpayne3506 July 11, 2025 20:39
@jpayne3506 jpayne3506 changed the title ci: Future proof GitHub merge queue branch trigger for release/v* branches ci: Future proof GitHub merge queue branch trigger for release/* branches Jul 11, 2025
@Copilot Copilot AI requested a review from jpayne3506 July 11, 2025 21:21
Copilot finished work on behalf of jpayne3506 July 11, 2025 21:21
@jpayne3506 jpayne3506 marked this pull request as ready for review July 15, 2025 04:56
@jpayne3506 jpayne3506 requested a review from a team as a code owner July 15, 2025 04:56
@jpayne3506 jpayne3506 requested a review from vakalapa July 15, 2025 04:56
@jpayne3506
Copy link
Contributor

Logic:

  • Pipeline triggers only call the current state of the given pipeline.yaml.
  • All release/* pipelines have an old state of the pipeline which contains relevant testing to the given release train.
  • Merge queue naming convention is locked to the target release/* branch, which matches our current mx structure.

@jpayne3506
Copy link
Contributor

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Infra or tooling. needs-backport Change needs to be backported to previous release trains
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: Future Proof github merge queue branch trigger
2 participants