Fix symbol-publish gate in build-all-lib.yml to use a branch allowlist - #4960
Merged
dvoituron merged 2 commits intoJun 24, 2026
Merged
Conversation
The two symbol-publishing steps were gated on a refs/tags/v* condition, but this pipeline is queued manually against a release branch HEAD rather than via tag push, so the condition never matched and symbols were never published. Switch to the branch allowlist used by build-core-lib.yml (main/dev/dev-v5/archives/*), OR-ing in the tag check to keep the declared trigger path covered. Follow-up to microsoft#4910. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reword the inline comment to accurately describe that symbols publish from the branches we ship from (main/dev/dev-v5/archives/*), whether the run is queued manually or via the declared tag trigger. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the internal symbol-publishing gate in eng/pipelines/build-all-lib.yml so it works when the pipeline is manually queued against a release branch HEAD (the practical release workflow), while still keeping the declared tag-trigger path covered.
Changes:
- Updated the
publish-symbols-stage.ymlandpublish-symbols-upload.ymlinvocation conditions to use the same branch allowlist asbuild-core-lib.yml, plus an additionalrefs/tags/v*check. - Updated the inline comment above the staging template invocation to reflect the real queuing behavior and the new gating rationale.
Show a summary per file
| File | Description |
|---|---|
| eng/pipelines/build-all-lib.yml | Adjusts symbol publish conditions to allow manual release-branch runs (branch allowlist) while retaining tag-trigger coverage, and updates the related comment. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
dvoituron
approved these changes
Jun 24, 2026
Collaborator
|
Do we need to release a new v4 version to make the symbols appear? Or can it be triggered manually? |
This was referenced Jul 30, 2026
Open
Open
Open
Closed
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.
Pull Request
📖 Description
Follow-up to #4910, which added internal symbol publishing to the two CI pipelines.
In
eng/pipelines/build-all-lib.yml, the two symbol-publishing template invocations were gated on:The pipeline's declared trigger looks tag-based (
tags: include: v*), but in practice this pipeline is always queued manually against a release branch HEAD (e.g. after tagging) rather than via a tag push. As a result therefs/tags/v*condition never evaluated true and symbols were never actually published from this pipeline.This change switches both conditions to the branch allowlist already used successfully by
eng/pipelines/build-core-lib.yml(main/dev/dev-v5/archives/*), OR-ing in therefs/tags/v*check so the declared tag-trigger path stays covered:The stale inline comment that claimed the gate existed to prevent manual branch queues from uploading (the opposite of the desired behavior) was updated to match.
🎫 Issues
Follow-up to #4910.
👩💻 Reviewer Notes
Surgical change — only the two conditions and one comment in
build-all-lib.ymlare touched.build-core-lib.yml,publish-symbols-stage.yml, andpublish-symbols-upload.ymlare unchanged. The new condition is intentionally identical to the one inbuild-core-lib.yml(plus the tag check).📑 Test Plan
No code changes; CI pipeline YAML only. The pipeline is internal and cannot be exercised from this PR. The conditions were verified to match
build-core-lib.yml's working gate.✅ Checklist
General