Repository navigation
test: pin requires-python in the uv build fixture and refresh its lock - #9443
Merged
Merged
Conversation
The PythonPyProject fixture sets no requires-python, so uv defaults it to the build interpreter's version and the committed uv.lock (locked against >=3.11) never matches. aws-lambda-builders 1.70.0 exports with --locked and rejects the stale lock, failing test_with_default_requirements for every runtime. Set requires-python = ">=3.9" (the lowest runtime tested) and regenerate uv.lock.
🧪 Hands-on test: No problems observed in 6 scenariosCommit Scenarios
Runner's notes in full
🤖 Automated hands-on test — not a review approval · model claude-opus-5.5 · Kiro kiro-cli 2.33.1 · build History (1)
|
vicheey
approved these changes
Nov 17, 2026
licjun
approved these changes
Nov 17, 2026
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.
Which issue(s) does this change fix?
Unblocks #9442 (update aws_lambda_builders to 1.70.0).
Why is this change necessary?
On #9442,
integ-buildcmd-pythonand the Docker-disabled tests failtest_with_default_requirementsfor thePythonPyProjectfixture on every runtime (3.9, 3.10, 3.12, 3.13, 3.14, 3.15):The fixture's
pyproject.tomlhas norequires-python, so uv defaults it to the build interpreter's version. The committeduv.lockwas locked against>=3.11, so it never matches. aws-lambda-builders 1.69.0 ranuv exportwithout--lockedand quietly re-resolved. 1.70.0 passes--locked(aws-lambda-builders#954) and rejects the stale lock.How does it address the issue?
Sets
requires-python = ">=3.9"in the fixture (the lowest runtime the test covers) and regeneratesuv.lockwith uv 0.13.9. The pinned versions are unchanged: numpy 2.0.0 / 2.1.3 / 2.3.4 / 2.5.4 by Python version, and cryptography 3.3.2. The lock gains the 3.9 and 3.10 resolution branches it was missing.Checked locally:
uv lock --checkpasses for Python 3.9, 3.10, 3.12, 3.13, 3.14 and 3.15 (it failed before this change).uv export --lockedwith the flags aws-lambda-builders uses succeeds for 3.9, 3.12 and 3.15.python_uv, python3.12) installs numpy 2.1.3 and cryptography 3.3.2.What side effects does this change have?
None outside the test fixture. With this merged first, #9442 should go green without other changes.
Mandatory Checklist
PRs will only be reviewed after checklist is complete
make prpassesmake update-reproducible-reqsif dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.