Skip to content

Stop MSBuildCache canary warning escalation#10109

Open
Evangelink wants to merge 1 commit into
mainfrom
dev/amauryleve/fix-cache-canary-warnings
Open

Stop MSBuildCache canary warning escalation#10109
Evangelink wants to merge 1 commit into
mainfrom
dev/amauryleve/fix-cache-canary-warnings

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

Follow-up to #10090 after Azure build 1519505.

The Windows cache canary reported expected AllowFileAccessAfterProjectFinishFilePatterns matches for INetCache / dyntelconfig as errors. MSBuildCache emits these allowlisted accesses as uncoded warnings, so MSBuild's code-specific warning controls cannot target them. Arcade's eng/common/msbuild.ps1 also enables warning escalation by default.

This change explicitly passes -warnAsError:$false to the experimental cache canary and removes its redundant /warnaserror argument. The authoritative Arcade fallback build remains unchanged and strict.

Validation

  • parsed azure-pipelines.yml with PyYAML
  • parsed the inline canary script with the PowerShell AST parser
  • verified the child argument is exactly -warnAsError:$false
  • verified the canary no longer contains /warnaserror
  • verified the authoritative eng\common\CIBuild.cmd fallback remains present
  • verified only azure-pipelines.yml changed
  • git diff --check passed

Keep expected uncoded MSBuildCache warnings from appearing as errors while leaving the authoritative Arcade build strict.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e3ba5312-a54a-415d-904f-421091599e5b
Copilot AI review requested due to automatic review settings July 21, 2026 12:38

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

Prevents expected MSBuildCache canary warnings from failing the experimental build while preserving the strict authoritative Arcade fallback.

Changes:

  • Disables Arcade’s default warning escalation for the cache canary.
  • Removes the redundant MSBuild /warnaserror argument.
Show a summary per file
File Description
azure-pipelines.yml Configures the cache canary to run without warning escalation.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@Evangelink Evangelink added the state/needs-review Awaiting review from the team. label Jul 21, 2026
@Evangelink
Evangelink enabled auto-merge (squash) July 21, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state/needs-review Awaiting review from the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants