Repository navigation
Pin the PyPI Docker fixture to the tested PDM lock format - #2388
Draft
Mikola Lysenko (mikolalysenko) wants to merge 7 commits into
Draft
Mikola Lysenko (mikolalysenko) wants to merge 7 commits into
Mikola Lysenko (mikolalysenko) wants to merge 7 commits into
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
Base automatically changed from
agent/fix-gem-remedy-tests-shell-quoting
to
main
November 30, 2026 20:35
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.
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