Repository navigation
deps(python): regenerate the SDK's frozen tree in one resolution - #507
Merged
Merged
Conversation
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
enabled auto-merge (squash)
September 16, 2026 00:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: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-pythonin thesdk-metricsjob: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
requirements-ci.txtand friends are invisible to it).setup.py'sinstall_requiresuntouched 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.