Skip to content

ci: treat an unpinned MSVC version as a floor - #428

Merged
sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/msvc-version-floor
Nov 19, 2026
Merged

sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/msvc-version-floor

Conversation

@sgerbino

@sgerbino sgerbino commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

The MSVC check in CI required the exact version named in the matrix. A job that doesn't pin msvc-toolset runs whatever toolset its image ships, though, and runners of one image can differ while an update rolls out. Right now windows-2025-vs2026 runners have either 14.51 or 14.52, so the x64 job fails on whichever runners have moved ahead, and relabelling it would just fail the others.

An unpinned job now accepts its labelled version or anything newer, and adds a notice naming the toolset it got, e.g. MSVC 14.52 (label 14.51). A job that pins msvc-toolset still requires that exact version. An older compiler, the wrong architecture or a missing banner still fails the step.

Tested locally against sample cl banners: an unpinned 14.51 job passes on 14.51 and 14.52 and fails on 14.44 or an ARM64 compiler; a pinned 14.44 job fails on 14.52.

Summary by CodeRabbit

  • Chores
    • Updated build checks to validate compiler versions more flexibly when no exact version is pinned, while still rejecting versions below the requested minimum.
    • Exact-version requirements remain enforced for pinned toolsets. Missing or unreadable version information now causes the check to fail.

The check required the exact MSVC version in the matrix, but an unpinned job runs whatever toolset its image ships, and runners of one image can differ during a rollout: windows-2025-vs2026 currently has either 14.51 or 14.52. Each update failed the job on the runners that had moved ahead. An unpinned job now accepts its version or newer and logs a notice naming the toolset it got. A job that pins msvc-toolset still requires that exact version.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI workflow now parses the MSVC compiler banner and compares its numeric version with the requested version. It applies separate acceptance rules for pinned and unpinned toolsets.

Changes: MSVC Version Validation

Layer / File(s) Summary
Parse and validate the MSVC version
.github/workflows/ci.yml
The check fails when the version is missing or unparseable, below the requested version, or mismatched for a pinned toolset. An unpinned toolset accepts a newer version and emits a notice.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • cppalliance/corosio#422: Updates an unpinned MSVC CI leg’s version label. Its result depends on the version-check behavior changed here.

Suggested reviewers: mvandeberg

Merge Risk: Minimal · up to fe0e8

This change relaxes the CI MSVC version check so unpinned jobs accept the labelled toolset or a newer one. It affects only CI, and no actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: treat an unpinned MSVC version as a floor" matches the main change. The workflow now accepts an unpinned MSVC job when the detected compiler version is at or above the labelled version,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: treat an unpinned MSVC version as a floor" matches the main change. The workflow now accepts an unpinned MSVC job when the detected compiler version is at or above the labelled version, and it still requires an exact match for pinned toolsets. The title names the core behaviour change and the conventional ci: prefix. It does not mention the notice output or the pinned-toolset behaviour, which is expected for a short title.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the banner line
And checks the version, digit by digit
Pinned tools must match the mark
Unpinned tools may climb above
A newer build earns a notice
The little hare hops on to green

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5ca4579 and fe0e8ff.

Files selected for processing: 1

  • .github/workflows/ci.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://428.corosio.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-11-19 20:02:29 UTC

@cppalliance-bot

Copy link
Copy Markdown

GCOVR code coverage report https://428.corosio.prtest3.cppalliance.org/gcovr/index.html
LCOV code coverage report https://428.corosio.prtest3.cppalliance.org/genhtml/index.html
Coverage Diff Report https://428.corosio.prtest3.cppalliance.org/diff-report/index.html

Build time: 2026-11-19 20:19:03 UTC

@sgerbino
sgerbino merged commit 6ff567e into cppalliance:develop Nov 19, 2026
43 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Beast2 Nov 19, 2026
@sgerbino
sgerbino deleted the pr/msvc-version-floor branch November 19, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants