← Back to Pull requests

Fix Windows CI with MSVC 19.52 #10569

Closed
unknown closed this pull request without merging on Nov 20, 2026 05:57 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 03:29 UTC
Author

Some GitHub Actions Windows runners now use MSVC 14.52 (compiler 19.52). This breaks Windows CI in two ways.

1. dav1d fails to build

libavif's bundled dav1d fails to compile:

..\dav1d-src\include\compat\msvc\stdatomic.h(35): error C7780: function-like macro '__has_include_next' is not defined
..\dav1d-src\include\compat\msvc\stdatomic.h(35): fatal error C1017: invalid integer constant expression

libavif 1.4.2 pins dav1d 1.5.3, and libavif's main branch currently pins 1.5.4. dav1d fixed this in 1.5.5 (a34e068, "compat: Fix building with newer versions of MSVC"). libavif sets AVIF_DAV1D_TAG with a plain set(), so it can't be overridden from the command line. This patches LocalDav1d.cmake to use 1.5.5. The patch asserts that the original line is present, so the build will fail once libavif changes its pin, and we'll know to update or remove the patch.

2. BC7 decoding is wrong on x64

With dav1d fixed, the x64 jobs on 14.52 fail test_dx10_bc7. The jobs on 14.51 (x64), 14.44 (x86) and 14.52 (arm64) pass. Comparing the CI output image with the expected one:

  • BC7 blocks using the two-subset modes (1, 3 and 7) are almost all wrong.

  • Blocks using modes 0, 4, 5 and 6 are all correct.

  • Within each bad block, a run of about 4 consecutive pixels is wrong, which looks like the per-pixel loop being vectorized incorrectly.
  • I couldn't find undefined behaviour in that code, so this looks like a compiler regression. This disables vectorization of the loop for MSVC 19.52 and later on x64.

    🤖 Generated with Claude Code

    Diff: 206 lines (+154 / -52) across 2 files Reviewer: radarhere Review duration: 148m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 206 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.319
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10569"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%