Publish PyPI placeholder packages from a ddev command #26093
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.46) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 469 lines diff across 5 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
Diff Size
diff_size
0.368
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #26093"
general
weight: 0.35
iliakur
What does this PR do?
Replaces the matrix-based
claim-pypi-nameworkflow with addev release placeholderscommand in a single job.The command finds the packages to publish (PyPI release missing, or still
0.0.1), builds a placeholder wheel for each — README plus an import-time pointer to the Agent integration-management docs, version0.0.2— and uploads them one per event-bus job: a failing upload does not block the rest, and there is no 256-job matrix limit. Publish specific packages by hand withddev release placeholders n8n; names already past the placeholder are skipped.id-token: write, each package mints its own short-lived PyPI token through trusted publishing; anywhere else a plain API token is read fromDDEV_PYPI_TOKENor prompted interactively — never a flag, so it cannot leak through shell history.datadog-datadog-csi-driver,datadog-oracle,datadog-snowflake,datadog-tokumx, and the build-timedatadog_checks_dependency_provider.Motivation
PyPI flagged
datadog-n8nas namesquatting — empty packages violate the name-retention policy — so the placeholders become maintained packages with a pointer instead of empty wheels. The review of #26010 blocked the matrix approach: token-era packages that cannot publish fill the matrix and starve later-sorting names, and retired names have nopyproject.tomlto select them. Moving all three into a ddev command addresses them. Part of AI-7550, supersedes #26010.Rollout
The
0.0.1wheels predate trusted publishing, so most projects have no trusted publisher; a no-token nightly would mint and fail for every name. Roll out in this order:1. Backfill once with a plain token.
DDEV_PYPI_TOKEN=... ddev release placeholderspublishes0.0.2for all 266 names in one run. The token's account published the0.0.1wheels, so it owns every project.2. The nightly becomes a no-op. Every name sits at
0.0.2.3. Register pending publishers only for new names. A new integration, or a name PyPI deletes, needs one manual registration on PyPI (this repo,
claim-pypi-name.yaml, thepublish-pypienvironment; no API exists).Checklist before requesting review
<!--
How to verify: run
gh pr diff <PR> --repo DataDog/integrations-core, review every changed line,and compare the final diff with the description above.
-->
<!--
How to verify: check the diff for relevant tests and run them as described in
AGENTS.md.-->
<!--
How to verify: run
gh api repos/DataDog/integrations-core/pulls/<PR>/commentsandgh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix eachfinding or reply with the reason no change is needed.
-->
<!-- Coding agents: never tick this item. Only the human author may tick it. -->
[AI-7550]: https://datadoghq.atlassian.net/browse/AI-7550?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ