Skip to content

Pin the PyPI Docker fixture to the tested PDM lock format - #2388

Draft
Mikola Lysenko (mikolalysenko) wants to merge 7 commits into
mainfrom
fix/pin-pdm-docker-fixture
Draft

Mikola Lysenko (mikolalysenko) wants to merge 7 commits into
mainfrom
fix/pin-pdm-docker-fixture

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

The PyPI Docker image installed the latest PDM on each rebuild. PDM 2.29.8 generates lock format 4.6.0, which the rewriter rejects. Both the end-to-end and coverage Docker jobs failed before the fresh-checkout install and revert assertions could run. Failing Docker job

Pin the image to PDM 2.29.7, the last release that writes the supported 4.5.1 format. I built the image, initialized a fresh project and ran pdm add six==1.16.0. Installation succeeded and the generated lock declared 4.5.1. The existing Docker suites still exercise vendoring, offline installation and rollback.

This PR is stacked on #2278 so the full matrix exercises the Windows test fix and the Docker image change together. Full CI run

Claude (claude) and others added 7 commits November 26, 2026 09:23
Refs #2276.

Assisted-by: Claude Code:claude-fable-5-2
Two gem_refresh unit tests built the expected `rm -rf ... && bundle
install` command from Path::display(), but the code renders each path
of that command through shell_word, which single-quotes a path holding
a character outside its safe set. A Windows temp path holds a
backslash, so both tests failed on the Windows nightly. A temp dir
with a space in its path fails them the same way on Linux.

Build the expected commands with shell_word. The warning detail lists
the paths unquoted, so its assertions stay as they are.

Fixes #2276.

Assisted-by: Claude Code:claude-fable-5-2
a_copy_no_ruby_owns_is_removed_with_its_gem_dir joined
`specifications/json-1.0.0.gemspec` onto the gem home as one
component. The code joins the directory and the file name apart, so on
Windows the test's path kept a `/` where the remedy has a `\\`, and
the expected command and detail would still not match there.

the_rm_remedy_quotes_a_path_the_shell_would_split wrapped display() in
literal quotes, which breaks under a temp dir with a `'` in its path.
It now uses shell_word too.

Refs #2276.

Assisted-by: Claude Code:claude-fable-5-2
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.

2 participants