Skip to content

[Chore] Publish symbols from CI builds to internal symbol server - #4910

Merged
Vincent Baaij (vnbaaij) merged 2 commits into
microsoft:devfrom
tlmii:tlmii/publish-symbols-internal
Jun 11, 2026
Merged

Vincent Baaij (vnbaaij) merged 2 commits into
microsoft:devfrom
tlmii:tlmii/publish-symbols-internal

Conversation

@tlmii

Copy link
Copy Markdown
Member

Pull Request

📖 Description

Adds symbol publishing to both internal CI pipelines so PDBs for the shipping Microsoft.FluentUI.* assemblies are archived for long-term debugging support. There is no change to the public NuGet packages or to what is published to nuget.org / public symbol servers.

Two small shared templates (publish-symbols-stage.yml, publish-symbols-upload.yml) keep the logic in one place so both pipelines stay in sync. Conditions are scoped to the branches each pipeline actually produces shipping artifacts from — main/dev/dev-v5/archives/* for the per-commit pipeline, and refs/tags/v* for the release pipeline — so PR validation builds and one-off manual queues do not trigger the upload.

This is a chore / infrastructure change. Not a breaking change. No runtime behavior changes for consumers of the NuGet packages.

🎫 Issues

#1607

👩‍💻 Reviewer Notes

Only the internal CI YAML is changed; no product code is touched and no public outputs are altered. The diff is purely additive — no existing line of either pipeline is modified or removed.

Things worth a look:

  • The two new template files under eng/pipelines/ and how they're invoked from build-core-lib.yml and build-all-lib.yml.
  • The staging step is intentionally placed before the test step so the symbols we capture come from the build step's output (matching what gets packaged), not from any intermediate state.
  • Templates package output is excluded from staging because Microsoft.FluentUI.AspNetCore.Templates.csproj sets IncludeBuildOutput=false and its placeholder DLL doesn't ship in any nupkg.

📑 Test Plan

Verified by manually queuing the full build against this branch in the internal CI mirror and inspecting the run logs. The symbol-archive step in fluentui-blazor-build-all reported successful upload of 88 files (Core + Generators + Icons sub-packages + Emoji sub-packages + both DataGrid adapters, across net8.0/net9.0/net10.0) and the run completed.

No new unit tests are added; this change is purely pipeline infrastructure.

✅ Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

⏭ Next Steps

Decide if we want to publish the symbols publicly as well - would potentially involve changing the debug type for some projects and then a small tweak to the yaml. Out of scope for this particular requirement but can be added easily as a second step.

Add MicroBuildArchiveSymbols@6 to both build pipelines so PDBs for the shipping assemblies are archived to the internal symbol server. SubmitToInternet is false, so symbols never reach the public MSDL.

- New publish-symbols-stage.yml + publish-symbols-upload.yml templates so the same staging/upload pair can be reused by both pipelines. They're split because the staging step must run before the test step (the test step's DebugType, if it differed from the build step's, would invalidate MSBuild's up-to-date check and rebuild Core with a new MVID; combined with GeneratePackageOnBuild=true, that would also overwrite the produced nupkg with a DLL whose MVID no longer matched the PDB we uploaded).

- Align the test step's DebugType with the build step's DebugType in both pipelines, so the test step doesn't trigger that rebuild.

- build-core-lib (per-commit preview builds): gate the upload to main, dev, dev-v5, and archives/* — the branches in the pipeline's trigger that produce shipping nupkgs.

- build-all-lib (v* tag-triggered release builds, all 6 packages): gate the upload to refs/tags/v*.

- Stage glob covers src/**/bin/Release/**/Microsoft.FluentUI.*.{dll,pdb} with src/Templates/** excluded (Templates.csproj has IncludeBuildOutput=false; its placeholder DLL doesn't ship).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 20:28

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

Note

Copilot was unable to run its full agentic suite in this review.

Adds reusable pipeline templates to stage and upload build symbols to the internal symbol server, and wires them into the core and full-library build pipelines.

Changes:

  • Introduces publish-symbols-stage.yml to collect Release DLL/PDB outputs into a staging directory pre-test.
  • Introduces publish-symbols-upload.yml to archive staged symbols to the internal symbol server (SymWeb-only).
  • Integrates the stage/upload templates into build-core-lib.yml and build-all-lib.yml with branch/tag-gated conditions.
Show a summary per file
File Description
eng/pipelines/publish-symbols-upload.yml New template to upload staged symbols to the internal symbol server via MicroBuild.
eng/pipelines/publish-symbols-stage.yml New template to stage Release binaries (DLL/PDB) for symbol upload prior to tests.
eng/pipelines/build-core-lib.yml Invokes the new stage/upload templates around the test step for main/dev/archives branches.
eng/pipelines/build-all-lib.yml Invokes the new stage/upload templates around the test step for v* tag builds.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 4/4 changed files
  • Comments generated: 7

Comment thread eng/pipelines/publish-symbols-stage.yml Resolved
Comment thread eng/pipelines/build-core-lib.yml Resolved
Comment thread eng/pipelines/build-core-lib.yml Resolved
Comment thread eng/pipelines/build-all-lib.yml Resolved
Comment thread eng/pipelines/build-all-lib.yml Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vnbaaij Vincent Baaij (vnbaaij) changed the title Publish symbols from CI builds to internal symbol server [Chore] Publish symbols from CI builds to internal symbol server Jun 11, 2026
@vnbaaij
Vincent Baaij (vnbaaij) merged commit 49346cf into microsoft:dev Jun 11, 2026
2 checks passed
This was referenced Jun 24, 2026
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.

Publish symbols for FluentUI assembly to Microsoft symbol servers

3 participants