Repository navigation
Fix path separators in three Windows test groups (#2177) - #2179
Conversation
Refs #2177. Assisted-by: Claude Code:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aeSxwTj97uP4xQonHdq
Three groups of tests failed on Windows in the nightly run. Each one built the path it expects from a '/'-separated string and compared it as text with a path made component by component: - gem_refresh: the rm command of a shared gem home joined "specifications/rack-1.0.0.gemspec" in one piece, where the product joins the directory and the file name. - Java gem e2e: vendor_rel kept the '/' of the strings gem_dir was joined from, where the directory walk yields '\'. - get update summary e2e: the save line names the manifest as --cwd joined with the manifest path, '.\.socket/manifest.json' on Windows. The tests now build their expected paths the way the other side does. No product code changes. Fixes #2177 Assisted-by: Claude Code:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aeSxwTj97uP4xQonHdq
|
bugbot run Generated by Claude Code |
|
[agent] Generated by Claude Code |
PR SummaryLow Risk Overview In In In No production code changes—only test expectations aligned with existing behavior. Reviewed by Cursor Bugbot for commit 15fbac0. Configure here. |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 15fbac0. Configure here.
|
[agent] PR shepherd: review brief for the approver What it does Risk: low. Three test files, +21/-11. Nothing that ships to users changes. The worst case is a test that still fails on Windows, which only the nightly Windows legs run. Look here
Verified
Changes I made: none. Open questions: none for this PR. The description lists two Windows output follow-ups (mixed separators in Generated by Claude Code |
LLM Description written by Claude Code:claude-fable-5-2
Fixes #2177
Summary
Three groups of tests failed on Windows in the nightly run. All three are
test-side: each built the path it expects from a
/-separated string andcompared it, as text, with a path made component by component. This PR
changes only those tests (3 files, +21/-11). No product code changes.
Root cause and fix
gem_refresh::tests::an_unwind_names_no_rerun_for_a_shared_home"specifications/rack-1.0.0.gemspec"in one piece; the product joins the directory and the file name, so it prints...\specifications\rack-1.0.0.gemspec.e2e_gem_native_ext_buildJavaGem::vendor_relkept the/of the stringsgem_dirwas joined from (bundle/jruby/3.1.0\gems/...); the directory walk it is compared with yields\throughout. The product wrote the right files once; the "duplicate" entries in the diff were the two spellings of one path.get_update_summary_e2e--cwdjoined with the manifest path:.\.socket/manifest.jsonon Windows,./.socket/manifest.jsonelsewhere. The test hard-coded the Unix form.Evidence
main's scheduled run 44682782099 and the dispatch run 44711932605(both Windows
testlegs) fail these 11 tests.os=windowsdispatch run 44745615345 on this head (15fbac0).test (windows-latest, 1)passes, including thegem_refreshtest.In
test (windows-latest, 2)all 8 Java gem tests and bothgetsummarytests pass.
test (windows-latest, 2)fails on one test,
scan_project_discovery_e2e::agent_scan_names_a_python_project_below_with_its_own_venv.That is Windows: agent_scan_names_a_python_project_below_with_its_own_venv fails (test builds a Unix venv layout) #2149, which Fix the Windows venv layout of a scan discovery test (#2149) #2176 fixes.
ci-ok (windows only)is red for thatreason alone. With both PRs merged, the Windows legs should be green.
cargo clippy --locked -p socket-patch-cli --all-features -- -D warningsis clean. With
--all-targets, clippy fails the same way onorigin/mainwithout this change (lints in test targets CI does notrun clippy on), so I left that alone.
/code-review highfound no defect in the diff.Follow-ups (not in this PR; both change CLI output, so they need a maintainer's call)
get --save-onlyprintsSaved 1 patch to .\.socket/manifest.json:mixed separators and a redundant
.\. Cosmetic; the file is writtencorrectly. The test now matches what the product prints.
(
rm -f '<path>' ... && bundle install), whichcmd.execannot run.https://claude.ai/code/session_011f9aeSxwTj97uP4xQonHdq
Generated by Claude Code