Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ RUN set -ex; \
FROM build-rootless AS test-pipenv-b

# Do not update minor
RUN install-tool python 3.10.17
RUN install-tool python 3.11.6

# make as latest
# renovate: datasource=github-releases packageName=containerbase/python-prebuild
Comment on lines +204 to 207

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Python 3.11.6 pin is overridden before the lock runs 🐞 Bug ≡ Correctness

The added RUN install-tool python 3.11.6 at line 204 is followed by `RUN install-tool python
3.14.10 at line 207, so the last install wins and pipenv lock in test-pipenv-b` runs on Python
3.14.10 rather than 3.11.6. The PR description's claim that the test now pins 3.11.6 is therefore
not what executes, and the change does not exercise the 3.11 path it is meant to cover.
Agent Prompt
## Issue description
In `test/python/Dockerfile`, the `test-pipenv-b` stage installs Python 3.11.6 and then, a few lines later, Python 3.14.10. The second `install-tool python` overrides the first, so `pipenv lock` in `pipenv-b` runs on 3.14.10 and the PR's claim that the test pins 3.11.6 is false.

## Fix Focus Areas
- test/python/Dockerfile[201-215]

## Recommended Fix
Decide which interpreter the lock must run on. If 3.11.6 is required, make the `install-tool python 3.11.6` the last python install before `install-tool pipenv` and `pipenv lock`, or move the 3.14.10 'latest' check into its own stage. Then verify with `python --version` inside the stage before `pipenv lock` runs.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Expand Down
2 changes: 1 addition & 1 deletion test/python/test/pipenv-b/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ twine = "*"
bleach = "==3.1.1"

[requires]
python_version = "3.10"
python_version = "3.11"
Loading
Loading