Skip to content

Merge latest Library.Template#1614

Merged
AArnott merged 28 commits into
mainfrom
dev/andarno/libtemplateUpdate
Jul 8, 2026
Merged

Merge latest Library.Template#1614
AArnott merged 28 commits into
mainfrom
dev/andarno/libtemplateUpdate

Conversation

@AArnott

@AArnott AArnott commented Jul 8, 2026

Copy link
Copy Markdown
Member
  • Fix typo
  • Use preferred pattern for appending to PATH in GitHub Actions
  • Avoid loading GitHubActions.ps1 on Azure Pipelines
  • Validate Path parameter in Add-GitHubActionsEnvVariable
  • Fix 1ES PT nuget push
  • Update dependency dotnet-coverage to v18.9.0 (536)
  • Update dependency Microsoft.Testing.Extensions.CodeCoverage to 18.9.0 (537)

Copilot AI review requested due to automatic review settings July 8, 2026 14:02

Copilot AI left a comment

Copy link
Copy Markdown

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 merges the latest Library.Template updates into vs-threading, primarily improving CI scripting behavior across GitHub Actions and Azure Pipelines, and bumping code-coverage-related dependencies.

Changes:

  • Updated GitHub Actions PATH handling to use $GITHUB_PATH (via a new helper) instead of overwriting PATH through $GITHUB_ENV.
  • Avoided loading GitHubActions-specific helper functions in non-GitHub-Actions contexts for the variables definition script.
  • Bumped code coverage tool/package versions and adjusted Azure Pipelines agent image selection for NuGet push.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/variables/_define.ps1 Only loads GitHub Actions helpers when running under GitHub Actions.
tools/Set-EnvVars.ps1 Switches PATH propagation in GitHub Actions to use $GITHUB_PATH via Add-GitHubActionsPath.
tools/GitHubActions.ps1 Adds validation for env file path and introduces Add-GitHubActionsPath helper.
Directory.Packages.props Updates Microsoft.Testing.Extensions.CodeCoverage to 18.9.0.
azure-pipelines/release.yml Pins the NuGet push job to Ubuntu 22.04 due to an external issue.
azure-pipelines/prepare-insertion-stages.yml Pins the package push job to Ubuntu 22.04 due to an external issue.
.github/skills/bundle-dependency-prs/SKILL.md Fixes a typo in documentation (“authord” → “authored”).
.config/dotnet-tools.json Updates dotnet-coverage tool version to 18.9.0.

Copilot AI review requested due to automatic review settings July 8, 2026 14:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Comment thread tools/GitHubActions.ps1
Comment thread Directory.Packages.props
Comment thread azure-pipelines/release.yml Outdated
Comment thread azure-pipelines/prepare-insertion-stages.yml Outdated
Copilot AI review requested due to automatic review settings July 8, 2026 14:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Comment thread tools/variables/_define.ps1
Comment thread tools/Set-EnvVars.ps1
Comment thread azure-pipelines/release.yml Outdated
Comment thread azure-pipelines/prepare-insertion-stages.yml Outdated
@AArnott AArnott enabled auto-merge July 8, 2026 15:17
Copilot AI review requested due to automatic review settings July 8, 2026 15:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Comment thread azure-pipelines/release.yml
Comment thread azure-pipelines/prepare-insertion-stages.yml
Comment thread tools/GitHubActions.ps1
Copilot AI review requested due to automatic review settings July 8, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

tools/Set-EnvVars.ps1:91

  • $CmdEnvScript appends a SET PATH line without a trailing CRLF. If $PrependPath contains more than one entry, the generated cmd script lines will run together and become invalid.
        }

        $CmdEnvScript += "SET PATH=$_$pathDelimiter%PATH%"
    }

Comment thread tools/GitHubActions.ps1
Comment thread azure-pipelines/release.yml
Comment thread azure-pipelines/prepare-insertion-stages.yml
@AArnott AArnott force-pushed the dev/andarno/libtemplateUpdate branch from d8976e9 to 041558c Compare July 8, 2026 17:09
Copilot AI review requested due to automatic review settings July 8, 2026 17:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 8, 2026 17:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Comment thread tools/GitHubActions.ps1
@AArnott AArnott merged commit 55c55a9 into main Jul 8, 2026
9 checks passed
@AArnott AArnott deleted the dev/andarno/libtemplateUpdate branch July 8, 2026 18:23
AArnott pushed a commit to AArnott/Nerdbank.MessagePack that referenced this pull request Jul 8, 2026
Apply the same fix as microsoft/vs-threading#1614 by using a net472-specific app config for the analyzer tests and adding a binding redirect for System.Text.Encodings.Web. This avoids the Windows CI assembly load failure when the analyzer test harness restores reference-assembly packages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
AArnott added a commit to AArnott/Nerdbank.MessagePack that referenced this pull request Jul 8, 2026
* Update Dockerfile and global.json updates (532)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update Microsoft Testing Platform to 2.3.0

* Pin Microsoft.Testing.Extensions.Telemetry to the common MTP version

* Use preferred pattern for appending to PATH in GitHub Actions

* Avoid loading GitHubActions.ps1 on Azure Pipelines

* Validate Path parameter in Add-GitHubActionsEnvVariable

* Update dependency dotnet-coverage to v18.9.0 (536)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency Microsoft.Testing.Extensions.CodeCoverage to 18.9.0 (537)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Prevent empty paths from being added to the PATH

* Fix up error messages

* Avoid importing GitHubActions.ps1 outside GitHub Actions

* Update script synopsis

* Clarify what looks like bad wording

* Keep runtime package pins unchanged

Restore the non-test System.IO.Pipelines and System.Text.Json package pins in Directory.Packages.props so the shared runtime dependencies continue following the intent of the existing code comment. Keep the newer 10.0.8 versions scoped to test projects and benchmarks, where the updated test infrastructure requires them.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Use runtime STJ version in analyzer references

Align the net472 analyzer test reference assemblies with the non-test System.Text.Json package pin instead of the test-only override. This avoids the clean-runner assembly load failure in NuGet.Protocol when the analyzer tests resolve reference packages on Windows.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Add net472 config for analyzer tests

Apply the same fix as microsoft/vs-threading#1614 by using a net472-specific app config for the analyzer tests and adding a binding redirect for System.Text.Encodings.Web. This avoids the Windows CI assembly load failure when the analyzer test harness restores reference-assembly packages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 🤖 Copilot <no-reply@github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

3 participants