Repository navigation
Fix Windows nightly: expect /-separated scan headings - #2061
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
Conversation
scan_hosted_paths_run_once_per_project_directory (added in #2052) built its expected `== apps\a ==` heading with Path::join, but `scan` names each project directory through shown_project_dir, which prints `/` separators on every OS. The test fails deterministically on windows-latest, so the nightly CI run on main went red on 2026-11-12. Assert the `/` form the CLI actually prints. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aePpg46bxXWCYNj6tAX
|
bugbot run Generated by Claude Code |
PR SummaryLow Risk Overview The test no longer builds expected headers with No product or CLI behavior changes—tests only. Reviewed by Cursor Bugbot for commit 467b616. 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 467b616. Configure here.
|
Ready for review at
Generated by Claude Code |
Final review briefWhat it does: Fixes the red Windows nightly. The new Risk: low. One assertion in one integration test plus an unused import removed. Look here:
Verified: read the full diff; confirmed that the scan heading path goes through Changes I made: none. Open questions: none. Auto-merge is armed, so approving sends it straight to the merge queue. Generated by Claude Code |
Problem
The scheduled CI run on main failed on 2026-11-12 (run 43163115418, job
test (windows-latest, 2)). It failed on one test:#2052 added this test. Windows legs run only nightly, so the PR and the merge queue never ran it on Windows. It fails every time on Windows, not now and then. The nightly had only just gone green after #2049 (2026-11-11), and this test turned it red again.
Root cause
The test built the expected heading with
Path::new("apps").join(app).display(), which givesapps\aon Windows. Butscannames each project directory throughprojects_below::shown_project_dir, which strips--cwdand prints/separators on every OS on purpose.listandrollbackprint their headings the same way. The product is right; the test's expectation was wrong.Fix
Assert
== apps/{app} ==, which is what the CLI prints on every OS, and drop thestd::path::Pathimport that is no longer used. No product code changes.Proof
cargo test -p socket-patch-cli --test scan scan_rendergives 41 passed, 0 failed.== apps/a ==and== apps/b ==. Those are exactly the strings the test now expects.rustfmtran on the touched file only.cargo clippy -p socket-patch-cli --test scan -- -D warningsreports nothing inscan_render.rs. It does reportneedless_borrowerrors intests/prebuilt_common/mod.rs, which this PR doesn't touch. Those come from the same clippy run on main's own commit and are not from this change.No tests are removed or moved.
Generated by Claude Code
Generated by Claude Code