Validate wheel contents in ddev validate package #25576
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
iliakur
Checklist before requesting review
What does this PR do?
ddev validate packagenow 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-infofiles (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_releasejob after build+sign. Example: hatchling embeds aLICENSEfile 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:
packageis already in theddev validate alllists 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.