← Back to Pull requests

ci: list package updates in the batch bump PR description #22354

Open
unknown opened this pull request with 638 lines diff across 7 files
View on GitHub
unknown unknown commented on Dec 03, 2026 14:23 UTC
Author

Description

The nightly batch PR from generate-package-versions.yml (for example #22329) has a fixed description, so reviewers have to open every lock file to see what it updates.

The description is now generated from the changes that the PR commits, in the same format as the dd-trace-dotnet package bump PRs:

  • Integration Version Updates: one row per integration package whose latest tested version changed in supported_versions.json, with the Python versions affected, the previous version, the new version and the PyPI publish date. These versions come from each integration's own lock files, so dependencies that only moved in other suites' locks are not listed.

  • Package Version Cooldown Report: newer releases of those packages that were skipped because they are younger than the 2-day cooldown. Pre-releases and lower-numbered backports are left out.

  • Split Out After CI Failures: the packages dropped from the batch when their suites failed, when the PR is updated in drop mode.
  • scripts/package_bump_summary.py builds the description. It runs in the create-pull-request job after the generated patch is applied, compares the staged files with HEAD, and writes the result to a file that peter-evans/create-pull-request reads through body-path.

    Example

    The description this generates for the current batch PR (#22329):

    <details open>
    <summary>Generated description</summary>

    ---

    Update the lockfiles of every outdated package in one batch. This performs the following updates:
    1) Locks that use a package's latest get that package and its dependencies updated.
    2) Locks that pin a package but use the latest version of another package get those dependencies updated.

    Packages whose CI suites fail are removed from this PR when its pipeline finishes and get their own
    upgrade-latest-<package>-version PR.

    Integration Version Updates

    | Package | Integration | Python | Previous | New | Published |
    |---|---|---|---|---|---|
    | bottle | bottle | 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.15 | 0.13.4 | 0.13.5 | 2026-11-28 |
    | elevenlabs | elevenlabs | 3.12, 3.13, 3.14, 3.15 | 2.78.0 | 2.80.0 | 2026-11-24 |
    | httpx2 | httpx2 | 3.11, 3.12, 3.13, 3.14, 3.15 | 2.16.2 | 2.17.0 | 2026-11-30 |
    | litellm | litellm | 3.10, 3.11, 3.12, 3.13, 3.14 | 1.111.0 | 1.111.1 | 2026-11-29 |
    | mariadb | mariadb | 3.11, 3.12, 3.13, 3.14, 3.15 | 1.1.14 | 1.1.15 | 2026-11-09 |
    | mistralai | mistralai | 3.10, 3.11, 3.12, 3.13, 3.14, 3.15 | 3.9.0 | 3.10.0 | 2026-11-30 |
    | psycopg | psycopg | 3.10, 3.11 | 3.3.8 | 3.3.9 | 2026-11-12 |
    | psycopg | psycopg | 3.12, 3.13, 3.14, 3.15 | 3.3.7 | 3.3.9 | 2026-11-12 |
    | psycopg2-binary | psycopg | 3.9 | 2.9.10 | 2.9.12 | 2026-04-20 |
    | psycopg2-binary | psycopg | 3.10, 3.11, 3.12, 3.13, 3.14 | 2.9.10 | 2.9.13 | 2026-09-09 |
    | pylibmc | pylibmc | 3.9, 3.10 | 1.6.3 | 1.7.1 | 2026-11-08 |
    | pylibmc | pylibmc | 3.11, 3.12, 3.13, 3.14, 3.15 | 1.6.3 | 1.8.0 | 2026-11-18 |
    | pymongo | pymongo | 3.11, 3.12, 3.13, 3.14, 3.15 | 4.20.1 | 4.20.2 | 2026-11-25 |
    | sqlalchemy | sqlalchemy | 3.9, 3.10 | 2.0.57 | 2.0.58 | 2026-11-16 |
    | sqlalchemy | sqlalchemy | 3.11, 3.12, 3.13, 3.14, 3.15 | 2.1.8 | 2.1.9 | 2026-11-16 |

    Package Version Cooldown Report

    These releases were published less than 2 days ago, so the locks skipped them.
    A later nightly run picks them up once the cooldown has passed.

    | Package | Integration | Version Kept | Skipped Versions | Published |
    |---|---|---|---|---|
    | elevenlabs | elevenlabs | 2.80.0 | 2.81.0 | 2026-12-02 |
    | litellm | litellm | 1.111.1 | 1.112.0, 1.112.1 | 2026-12-01, 2026-12-02 |
    | mistralai | mistralai | 3.10.0 | 3.11.0 | 2026-12-01 |

    ---

    </details>

    Customer impact

    None. This only changes CI automation.

    Testing

    I ran the script locally against the current batch PR branch (upgrade-latest-all-versions):

    git fetch origin upgrade-latest-all-versions
    python3 scripts/package_bump_summary.py \
      --base "$(git merge-base origin/main origin/upgrade-latest-all-versions)" \
      --new origin/upgrade-latest-all-versions
    

    It listed 15 integration version changes (11 packages), 4 cooldown entries, about 2.5 KB in total.

    The script has no unit tests: it only writes an informational description and falls back to the previous fixed text on any error, which matches the other bump scripts.

    Risks

    Low.

  • The script only reads the repository and runs from the main checkout. The patch is restricted to lock files, supported_versions.json and registry.yaml, so it cannot change the script.

  • Values written into the description are limited to the characters used in package names and versions, so a malformed generated file cannot inject markdown or mentions.

  • PyPI failures only remove the dates and the cooldown report. Any other failure writes the previous fixed text, so PR updates never fail because of the summary.
  • Additional Notes

  • This PR does not add a "new major versions available" section: most Python locks follow latest, so new majors are picked up automatically.
  • 🤖 Generated with Claude Code

    Diff: 638 lines (+478 / -160) across 7 files Reviewer: wconti27 Review duration: 2382m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 638 lines diff across 7 files
    0.50
    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.386
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #22354"
    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: 50.4% (MEDIUM) · Higher = larger blast radius
    50.4%
    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: 26.9% · Safe to merge
    26.9%