Skip to content

[build] Fix Windows CI by installing more recent clang compatible with MSVC - #8751

Merged
fhanau merged 1 commit into
mainfrom
felix/112026-windows-ci
Nov 20, 2026
Merged

fhanau merged 1 commit into
mainfrom
felix/112026-windows-ci

Conversation

@fhanau

@fhanau fhanau commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Work around actions/runner-images#15367 by installing a more recent clang/LLVM version.

In file included from bazel-out/x64_windows-clang-cl-opt-exec/bin/external/+http+capnp-cpp/src/kj/_virtual_includes/kj\kj\common.h:99:
In file included from C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.52.37025\include\cstring:8:
In file included from C:\Program Files\LLVM\lib\clang\20\include\yvals_core.h:17:
C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.52.37025\include\yvals_core.h(923,1): error: static assertion failed: error STL1000: Unexpected compiler version, expected Clang 22 or newer.
  923 | _EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 22 or newer.");
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example failing CI run: https://github.com/cloudflare/workerd/actions/runs/44793218507/job/136499634977?pr=8694

@fhanau
fhanau requested review from a team as code owners November 20, 2026 19:00

@clanky-the-clanker clanky-the-clanker Bot 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.

Superseded by the review of b41efbfe.

This review, of 54822121

💬 Approved with comments — One optional nit: add -y to the choco command so it doesn't depend on the runner image's confirmation setting.

Findings: 1 suggestion (1 is an inline comment on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


📋 Code reviewer: 💬 1 suggestion

Small CI workaround; one optional nit.

Recommendation: 💬 Optional Nits

  • [SUGGESTION] choco upgrade llvm has no -y, so it depends on the runner image having allowGlobalConfirmation enabled (.github/actions/setup-runner/action.yml:28)
View full review

The choco upgrade llvm command has no -y, so it relies on the runner image having Chocolatey's allowGlobalConfirmation enabled.


Reviewed commit: 54822121

Comment thread .github/actions/setup-runner/action.yml Resolved
@fhanau
fhanau force-pushed the felix/112026-windows-ci branch from 5482212 to b41efbf Compare November 20, 2026 22:56

@clanky-the-clanker clanky-the-clanker Bot 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.

✅ Approved — The change is a small CI and build workaround, and no issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code reviewer: ✅ LGTM

The earlier -y suggestion is dropped after the author's explanation. The .bazelrc per-file option is intentional for the workaround and has no correctness impact.


Reviewed commit: b41efbfe

@fhanau
fhanau merged commit 6c61153 into main Nov 20, 2026
36 of 37 checks passed
@fhanau
fhanau deleted the felix/112026-windows-ci branch November 20, 2026 23:15
@piscisaureus

Copy link
Copy Markdown
Contributor

Some notes from reproducing this on a Windows Server 2025 VM:

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.

4 participants