← Back to Pull requests

Validate wheel contents in ddev validate package #25576

Open
unknown opened this pull request with 279 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 09, 2026 09:00 UTC
Author

Checklist before requesting review

  • I self-reviewed the full diff, and this description matches the final change

  • Tests cover the change, or this description explains why none are needed

  • Automated review comments, including Codex review, were addressed or answered

  • I, the human author, understand this change, can explain it to reviewers, and believe it meets the repository standards
  • What does this PR do?

    ddev validate package now builds each integration's wheel the same way the wheels pipeline does (pip wheel . --no-deps --ignore-requires-python) and verifies the wheel only contains files the pipeline's in-toto root layouts allow: datadog_checks/ plus a fixed set of .dist-info files (METADATA, WHEEL, RECORD, entry_points.txt, top_level.txt, metadata.json, DESCRIPTION.rst).

    This catches release-breaking wheel contents in PR CI instead of failing the wheels pipeline's test_release job after build+sign. Example: hatchling embeds a LICENSE file in an integration directory as *.dist-info/licenses/LICENSE, which the in-toto layouts reject (see the RavenDB release failure in integrations-extras).

    The rules apply to all three repos. Marketplace wheels ship through a different pipeline (SLSA attestation, no in-toto layout), but we hold them to the same rules to keep shipped wheels minimal; all 122 marketplace wheels pass today. See Caveat for the backend version gap.

    Wheel builds run in parallel (16 workers): all 89 integrations-extras integrations validate in ~13s.

    Motivation

    Hardens the integrations release path: package is already in the ddev validate all lists for integrations-core, integrations-extras, and marketplace, so the check lands everywhere once ddev is released — no changes needed in those repos.

    Caveat

    The Codex review comment flagged the remaining gap: pip resolves the build backend from PyPI unpinned at validation time, so the wheel contents checked here can drift from what the release build produces. Closing it by pinning hatchling requires more work — #25577 is the first piece, and we also need internal infra changes. For now we knowingly leave the gap open.

    Diff: 279 lines (+209 / -70) across 3 files Reviewer: iliakur Review duration: 4848m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 279 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.337
    Real PR Conversation Timeline
    1 comments
    "Review active on #25576"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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.6% (MEDIUM) · Higher = larger blast radius
    39.6%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 21.1% · Safe to merge
    21.1%