Repository navigation
ci(py): gate PRs on oldest supported deps and document dependency policy - #156
Merged
huangjeff5 merged 7 commits intoNov 30, 2026
Merged
Conversation
This was referenced Nov 19, 2026
huangjeff5
force-pushed
the
ci/py-lowest-deps-and-docs
branch
3 times, most recently
from
November 19, 2026 02:39
752f35b to
28a98fb
Compare
huangjeff5
force-pushed
the
ci/py-lowest-deps-and-docs
branch
from
November 19, 2026 02:49
28a98fb to
d2d7a20
Compare
…nd document policy
huangjeff5
force-pushed
the
ci/py-lowest-deps-and-docs
branch
from
November 19, 2026 03:01
d2d7a20 to
b8121fe
Compare
The root comment said published packages keep floor-only bounds, but check_consistency.py requires caps on REQUIRED_CAPS / SCOPED_CAPS deps.
…together Two bugs surfaced re-deriving #154's floors with this script: - Test envs skipped optional extras, so genkit-google-cloud's firestore tests failed even at uv.lock versions and the search aborted. - opentelemetry-sdk pins opentelemetry-api with ==, so bisecting api alone paired it with the locked sdk and returned 1.45.0 instead of 1.39.0.
MichaelDoyle
approved these changes
Nov 19, 2026
…t and add just test-min-deps
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.
Part 3 of 4 in the dependency hygiene stack: #153 -> #154 -> #156 -> #157.
CI only tested
uv.lock, which holds the newest versions. A PR could start calling an SDK API newer than the declared>=floor and pass every check, while users resolved inside that floor hitImportErrororAttributeErrorat runtime. This PR adds a required job that tests every direct dep at its declared floor, prints a self-contained copy-paste prompt on failure, and documents the policy.Developer Experience (when a PR breaks an old floor)
Say a PR starts passing
instructions=toopenai(added in1.68.0), whilepackages/genkit-openai/pyproject.tomlstill declaresopenai>=1.60.0:Tests (Python 3.10–3.14)pass onuv.lock, andTests (oldest supported deps, Python 3.10)fails.Run testslog. Right at the bottom (no scrolling, no doc-hopping — and also in a 1-click Copy block on the Actions Summary tab), CI prints a pre-filled prompt:just test-min-depssnapshots and restoresuv.lock+.venvon exit viatrap, so you can't accidentally commit a downgraded lockfile.Main Changes
Tests (oldest supported deps, Python 3.10)is a required gate: Runs the full suite on Python 3.10 afteruv lock --resolution lowest-direct, which drops every direct dep to its declared>=floor and leaves transitive deps free. On failure, prints the pre-filled, self-contained agent prompt above directly in the failedRun testslog and in$GITHUB_STEP_SUMMARY(no bespoke helper scripts to maintain).just test-min-deps [pytest-args]: Local wrapper injustfilethat runsuv lock --resolution lowest-direct && uv sync --frozen && uv run --no-sync pytest ...and restores the originaluv.lockand.venvon exit.Lint and Formatfails if apy-minor-and-patch(or legacypy-dependencies) Dependabot PR edits anypackages/*/pyproject.toml. Routine bumps should only touchuv.lock; raising a floor users resolve against is a deliberate change.docs/dependencies.md: One page for the cap policy from fix(py): enforce dependency bounds policy and raise declared floors #154, floor rules (including how to triagetests-minimum-depsfailures), workspace-only deps, and lockfile updates with the manualpip-auditworkflow. Linked fromREADME.md.