← Back to Pull requests

Update dependency windows-images to v141140507 #57178

Closed
unknown closed this pull request without merging on Sep 30, 2026 17:18 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 10:56 UTC
Author

What does this PR do?

  • Bumps the CI build images to v141140507-248a7145, whose Windows images refresh MSYS2 packages at build time and therefore ship GCC 16.2 instead of GCC 14.

  • GCC 15 and later compile C as C23 by default, where an empty parameter list means the function takes no arguments. The test helper for shared library checks defined Version with an error parameter that the real symbol never had, which is now a compile error. The declaration now explicitly takes no arguments and the helper matches it.

  • The ffi-yajl gem, which omnibus installs through license_scout, has C extensions that no longer compile as C23 against Ruby 2.6's headers. bundle install now builds that gem with -std=gnu17.
  • Motivation

    The previous Windows images can no longer be rebuilt, because the MSYS2 package versions they pinned have been removed from every mirror (DataDog/datadog-agent-buildimages#1342). Adopting the new images requires building with the newer compiler.

    The images could instead pin GCC 14.2, which MSYS2's main repository still hosts. We chose not to because that repository deletes old packages, which is what broke the previous images, so the pin would eventually break the same way unless Datadog hosted the packages itself. Pinning also means downgrading GCC's runtime libraries beneath MSYS2 packages that are now built against GCC 16's. The fixes here are needed only once and work with any compiler version, whereas a pin would only postpone them.

    Describe how you validated your changes

    CI passes on the Windows build and test jobs that failed with the image bump alone. The new omnibus task test checks the ffi-yajl build flag, and the shared library check code compiles as both C23 and gnu17.

    Additional Notes

    Other platforms are unaffected by the compiler change, and as far as I know -std=gnu17 is accepted by every GCC and Clang the Agent builds with.

    Diff: 252 lines (+189 / -63) across 3 files Reviewer: aiuto Review duration: 382m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 252 lines diff across 3 files
    0.39
    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%
    60%
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #57178"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39% (MEDIUM) · Higher = larger blast radius
    39%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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.4% · Safe to merge
    15.4%