Merge latest Library.Template microbuild updates#375
Merged
Conversation
There is sometimes an issue with the clone/create PR step. When that happens, the stage isn't requeuable because the VSTS upload step fails when its run again because the payload is already there. This update allows the step to clone the VS repo and create the PR to be rerun due to issues independent of the Upload step.
Also remove a task that was duplicated (I think) unnecessarily.
Split the VS PR stage separately from the upload steps
Use explicit UTF-8 appends for GitHub Actions environment files so Linux runners don't hit an invalid empty-name env entry after build. This updates both the general env propagation helper and the pipeline variable definition script. Co-authored-by: 🤖 Copilot <no-reply@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Improve and share github actions env var setting function
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Update Microsoft Testing Platform to 2.3.0
Resolve the Directory.Packages.props conflict by preserving the repo-specific Roslyn and code-fix testing package version properties while taking the incoming template updates for Microsoft.Testing.Platform 2.3.0, code coverage 18.8.0, telemetry, and Nerdbank.GitVersioning 3.10.85. Also include the incoming workflow, pipeline, and tooling updates from the template merge. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Synchronizes vs-validation with the latest Library.Template microbuild infrastructure updates, primarily refreshing CI/release pipelines, shared workflow tooling, and centrally-managed versions.
Changes:
- Introduces a shared PowerShell helper for setting GitHub Actions environment variables and updates existing scripts to use it.
- Updates centralized package/tooling versions (e.g., Microsoft.Testing.Platform, code coverage, Nerdbank.GitVersioning, PowerShell).
- Refreshes Azure Pipelines and GitHub Actions workflows (e.g., Ubuntu 24.04 images, pipeline stage/job reshaping, checkout action update).
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/variables/_define.ps1 | Uses shared GitHub Actions env var helper for safer variable propagation. |
| tools/Set-EnvVars.ps1 | Switches GitHub Actions env var emission to shared helper and minor formatting. |
| tools/GitHubActions.ps1 | Adds helper to write environment variables to $GITHUB_ENV using multiline-safe format. |
| Directory.Packages.props | Updates centrally-managed package versions aligned with Library.Template. |
| .config/dotnet-tools.json | Updates pinned dotnet tool versions (PowerShell, nbgv, dotnet-coverage). |
| azure-pipelines/vs-validation.yml | Adds template settings, updates Linux image, and restructures insertion into upload + insertion jobs. |
| azure-pipelines/vs-insertion.yml | Adds template settings and restructures insertion into upload + insert jobs. |
| azure-pipelines/unofficial.yml | Adds template settings and updates Linux image demand to Ubuntu 24.04. |
| azure-pipelines/release.yml | Adds template settings and updates Linux image demand to Ubuntu 24.04. |
| azure-pipelines/prepare-insertion-stages.yml | Updates Linux image demand to Ubuntu 24.04. |
| azure-pipelines/official.yml | Adds template settings and updates Linux image demand to Ubuntu 24.04. |
| azure-pipelines/libtemplate-update.yml | Adds template settings and updates Linux image demand to Ubuntu 24.04. |
| azure-pipelines/archive-sourcecode.yml | Adds template settings and updates Linux image demand to Ubuntu 24.04. |
| .github/workflows/libtemplate-update.yml | Updates actions/checkout pin to v7.0.0 SHA. |
| .github/workflows/docs.yml | Updates actions/checkout pin to v7.0.0 SHA. |
| .github/workflows/docs_validate.yml | Fixes YAML indentation and updates actions/checkout pin; uses ubuntu-24.04 runner. |
| .github/workflows/copilot-setup-steps.yml | Updates actions/checkout pin to v7.0.0 SHA. |
| .github/skills/bundle-dependency-prs/SKILL.md | Updates guidance text (includes a small typo fix needed). |
…emplate Specifically, this merges [4299650 from that repo](AArnott/Library.Template@4299650).
Use preferred pattern for appending to PATH in GitHub Actions
…emplate Specifically, this merges [def42bc from that repo](AArnott/Library.Template@def42bc).
olegtk
approved these changes
Jul 8, 2026
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.
This syncs vs-validation with the latest Library.Template microbuild changes so the repo picks up the current shared workflow, pipeline, and tooling updates.
It brings in the template changes across GitHub Actions, Azure Pipelines, and helper scripts, and updates the shared package/tooling versions in
Directory.Packages.propsand.config/dotnet-tools.json. The only merge conflict was inDirectory.Packages.props; that was resolved by keeping this repo's Roslyn and code-fix testing version properties while taking the incoming template updates for Microsoft.Testing.Platform 2.3.0, telemetry, code coverage 18.8.0, andNerdbank.GitVersioning3.10.85.Please take a close look at the CI and release pipeline changes, since most of this PR is template-driven infrastructure churn rather than product code changes.