Repository navigation
Pin the PyPI Docker fixture to the tested PDM lock format - #2388
Conversation
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
…M locks are refused The image pinned PDM but let PDM's own dependencies float, so a rebuild could still install a set that 2.29.7 never shipped with. PDM now gets its own venv and its `locked` extra. PDM_CHECK_UPDATE is off, so a log does not tell its reader to upgrade past the pin. The PDM compatibility guide said "2.8.1 - current" is supported. PDM 2.29.8 writes lock format 4.6.0, which hosted and vendored mode refuse (#2398): the guide now ends the supported range at 2.29.7 and lists the 4.6.0 row. The suite's header names the Dockerfile's pin and no longer repeats its version. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
PR SummaryLow Risk Overview
No application or rewriter code changes. Reviewed by Cursor Bugbot for commit 96b1a47. Configure here. |
Wenxin Jiang (Wenxin-Jiang)
left a comment
There was a problem hiding this comment.
[agent] Reviewed; LGTM.
Refs #2398.
The problem
The PyPI Docker image installed the latest PDM on each rebuild. PDM 2.29.8 writes lock format 4.6.0, which
vendorrefuses (pypi_pdm_lock_version_unsupported). Since then the nightlye2e-docker (pypi)andcoverage-docker (pypi)jobs fail onmaininpdm_vendor_fresh_checkout_install_and_revert, before its fresh-checkout install and revert assertions run. Failing nightly runThe change
lockedextra, so its dependencies are the 42 exact versions that release shipped with.PDM_CHECK_UPDATE=falsekeeps it from printing an upgrade notice on every command.docs/testing/pdm-compatibility.mdsaid PDM "2.8.1 – current" is supported. The supported range now ends at 2.29.7, and the lock table has a row for 4.6.0 (refused).No production code changes.
What it does not change
A user on PDM 2.29.8 or later is still refused in hosted and vendored mode: the rewriter does not read lock format 4.6.0 yet. That is the lasting fix and stays open on #2398. With the pin, no CI job runs the newest PDM any more, so the next lock format will not show up in CI by itself; #2398 is linked from the pin's comment for that reason.
Proof
PR runs skip the Docker jobs, so they were run by dispatch on this branch.
mainwas merged in (567b8fe58): run 46728890574 passed, all 204 jobs,e2e-docker (pypi)andcoverage-docker (pypi)among them.96b1a4709): run 46732473617 passed, all 204 jobs, both PyPI Docker jobs among them.pdm init -n,pdm add six==1.16.0(lock declares 4.5.1, the project's.venvis created from the system Python, not from PDM's venv),pdm install --check, then a freshpdm sync. PDM's venv holdsfilelock 3.29.0,hishel 2.0.0andunearth 0.19.0, the versions of thelockedextra.Review
/code-review highon the two-file diff returned six findings. Fixed: PDM's own dependencies floated under the pin (one important); the compatibility guide claimed "current" PDM is supported; the upgrade notice; the suite header repeated the pinned version. Answered without a code change: the four other tools are left unpinned on purpose, and the Dockerfile says why. Not done: a non-blocking job on the newest PDM; #2398 tracks the 4.6.0 format instead.🤖 Generated with Claude Code