Skip to content

deps(python): regenerate the SDK's frozen tree in one resolution - #507

Merged
scttfrdmn merged 2 commits into
mainfrom
deps/regenerate-python-sdk-frozen-tree
Sep 16, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
deps/regenerate-python-sdk-frozen-tree

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Supersedes #455, #456, #457 and #487.

Each of those four Dependabot PRs edited exactly one pin in sdks/python/requirements.txt. That file's own header forbids it:

Do not edit a single line by hand: the point of a frozen tree is that every line came from one resolution, and a hand edit makes the file describe a tree nothing ever installed.

Four single-line edits describe four different resolutions, none of which was ever installed. They also all touch the same one file, so merging them serially costs four full gate runs and three forced rebases.

What this does instead

Regenerated with the recipe the header documents, on python3.12 to match actions/setup-python in the sdk-metrics job:

python3.12 -m venv .venv && .venv/bin/pip install 'requests>=2.25.0' 'pyyaml>=6.0' \
  'psutil>=5.8.0' 'aiohttp>=3.8.0' pytest && .venv/bin/pip freeze
package from to Dependabot PR
charset-normalizer 3.4.9 3.5.1 #457
idna 3.18 3.19 #456
multidict 6.7.1 6.8.0 #487
Pygments 2.20.0 2.21.0 #455
propcache 0.5.2 0.5.3 —
urllib3 2.7.0 2.8.0 —
yarl 1.24.5 1.25.1 —

The last three are the argument for regenerating rather than merging the four. Dependabot files against what it watches directly, so three transitive pins moved with no PR behind them; taking only the four leaves the tree at a state pip would never resolve to.

What this does not do

  • Package set unchanged at 21 entries — no additions, no removals, only versions. That also rules out the platform concern: the resolution was produced on darwin and CI installs it on linux, and an identical package set is the evidence that nothing here resolved platform-specifically.
  • Header comment untouched, including the note that the filename is load-bearing for Trivy detection (requirements-ci.txt and friends are invisible to it).
  • setup.py's install_requires untouched and still ranges. This file is the test job's tree, not the SDK's dependency declaration — a library that pins its transitive tree pins it for every consumer.

Verification

pytest tests/ against the regenerated venv: 73 passed, 31 subtests passed.

Four Dependabot PRs (#455 pygments, #456 idna, #457 charset-normalizer, #487
multidict) each edited exactly one pin in sdks/python/requirements.txt. That
file's own header forbids that: "Do not edit a single line by hand: the point of
a frozen tree is that every line came from one resolution, and a hand edit makes
the file describe a tree nothing ever installed." Four single-line edits produce
a file describing four different resolutions, none of which was ever installed.

Regenerated instead, with the recipe the header documents, on python3.12 to
match actions/setup-python in the sdk-metrics job:

  python3.12 -m venv .venv && .venv/bin/pip install 'requests>=2.25.0' \
    'pyyaml>=6.0' 'psutil>=5.8.0' 'aiohttp>=3.8.0' pytest && .venv/bin/pip freeze

One resolution covers all four bumps and three transitive moves Dependabot never
filed, because nothing it watches names them directly: propcache 0.5.2 -> 0.5.3,
urllib3 2.7.0 -> 2.8.0, yarl 1.24.5 -> 1.25.1. That gap is the argument for
regenerating rather than merging the four — taking only the pins Dependabot
noticed leaves the tree at a state pip would never resolve to.

The package set is unchanged at 21 entries: no additions, no removals, only
versions. The header comment is untouched, including the note that the filename
is load-bearing for Trivy detection.

setup.py's install_requires is untouched and stays as ranges. This file is the
test job's tree, not the SDK's dependency declaration.

Verified: pytest tests/ against the regenerated venv, 73 passed and 31 subtests
passed.
@scttfrdmn
scttfrdmn enabled auto-merge (squash) September 16, 2026 00:15
@scttfrdmn
scttfrdmn merged commit 875476a into main Sep 16, 2026
43 checks passed
@scttfrdmn
scttfrdmn deleted the deps/regenerate-python-sdk-frozen-tree branch September 20, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant