← Back to Pull requests

Publish PyPI placeholder packages from a ddev command #26093

Open
unknown opened this pull request with 469 lines diff across 5 files
View on GitHub
unknown unknown commented on Nov 18, 2026 16:07 UTC
Author

What does this PR do?

Replaces the matrix-based claim-pypi-name workflow with a ddev release placeholders command 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, version 0.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 with ddev release placeholders n8n; names already past the placeholder are skipped.

  • Authentication: in GitHub Actions with id-token: write, each package mints its own short-lived PyPI token through trusted publishing; anywhere else a plain API token is read from DDEV_PYPI_TOKEN or prompted interactively — never a flag, so it cannot leak through shell history.

  • Publishes the claimed names that no longer belong to an integration: the retired datadog-datadog-csi-driver, datadog-oracle, datadog-snowflake, datadog-tokumx, and the build-time datadog_checks_dependency_provider.

  • Placeholders publish without provenance attestations: they are not consumed as dependencies.
  • Motivation

    PyPI flagged datadog-n8n as 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 no pyproject.toml to select them. Moving all three into a ddev command addresses them. Part of AI-7550, supersedes #26010.

    Rollout

    The 0.0.1 wheels 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 placeholders publishes 0.0.2 for all 266 names in one run. The token's account published the 0.0.1 wheels, 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, the publish-pypi environment; no API exists).

    Checklist before requesting review

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

  • <!--
    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.
    -->
  • Tests cover the change, or this description explains why none are needed

  • <!--
    How to verify: check the diff for relevant tests and run them as described in AGENTS.md.
    -->
  • Automated review comments, including Codex review, were addressed or answered

  • <!--
    How to verify: run gh api repos/DataDog/integrations-core/pulls/<PR>/comments and
    gh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix each
    finding or reply with the reason no change is needed.
    -->
  • I, the human author, understand this change, can explain it to reviewers, and believe it meets the repository standards

  • <!-- Coding agents: never tick this item. Only the human author may tick it. -->

    [AI-7550]: https://datadoghq.atlassian.net/browse/AI-7550?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 469 lines (+351 / -118) across 5 files Reviewer: iliakur Review duration: 18296m
    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
    0.46
    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
    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
    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: 45.7% (MEDIUM) · Higher = larger blast radius
    45.7%
    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: 24.3% · Safe to merge
    24.3%