Skip to content

Get rid of spurious warning about not being able to find spectre mitigation - #32516

Merged
Tianlei Wu (tianleiwu) merged 3 commits into
mainfrom
dev/erscor/2026/9/9-debug-spectre
Sep 10, 2026
Merged

Tianlei Wu (tianleiwu) merged 3 commits into
mainfrom
dev/erscor/2026/9/9-debug-spectre

Conversation

@eserscor

@eserscor eserscor commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Description

Motivation and Context

Copilot AI balanced review requested due to automatic review settings September 9, 2026 20:33

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.

🟑 Changes recommended

The new vswhere/vcvarsall setup does not fail fast when discovery fails, which can lead to confusing downstream pipeline failures.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the Windows Azure Pipelines packaging template to explicitly locate and run Visual Studio’s VC environment setup script (vcvars64.bat) via vswhere, aiming to eliminate a spurious β€œspectre mitigation not found” warning by ensuring the intended toolchain environment is initialized.

Changes:

  • Add a vswhere-based step to locate vcvars64.bat and export it as the vcvarsall pipeline variable.
  • Add a BatchScript@1 step to run $(vcvarsall) and modify the job environment before invoking build.py.
File summaries
File Description
tools/ci_build/github/azure-pipelines/templates/win-ci.yml Adds VS toolchain discovery and VC environment initialization steps prior to building/testing.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

πŸ’‘ Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tianleiwu
Tianlei Wu (tianleiwu) enabled auto-merge (squash) September 9, 2026 23:59
@tianleiwu
Tianlei Wu (tianleiwu) merged commit 0f0f29f into main Sep 10, 2026
113 of 118 checks passed
@tianleiwu
Tianlei Wu (tianleiwu) deleted the dev/erscor/2026/9/9-debug-spectre branch September 10, 2026 00:00
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