Repository navigation
fix(windows): printed-path rendering and UTF-8 reads in nightly-failing tests (#11260) - #11291
Conversation
…tests (#11260) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 49 minutes. View limit details
|
|
CI note on head 0074256: two failures that look unrelated to this test-only diff.
Generated by Claude Code |
|
Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
…ged smoke tests (#11260) The two Extension Smoke tests still waited for the old '**ripr** behavioral seam' and '**ripr** gap decision' headings, so the vscode job (full-ci only) timed out waiting for a hover that was already present. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
|
Head moved to 8018ac0. The Generated by Claude Code |
There was a problem hiding this comment.
Refuted
- Normalizing backslashes could conceal a Windows product-rendering defect.; refuted because: The affected values are test-side expected renderings, and the diff does not touch the production code that emits paths or repair commands.
- The Python fixture's gh.cmd shim could invoke a different Python installation or fail when the path contains Windows quoting characters.; refuted because: The change intentionally uses sys.executable and the existing Windows batch convention, while the stub itself is LF-only and invoked through the repository's bash harness; no changed-line architecture violation is established.
Evidence gaps
- Windows-specific path rendering remains unverified on the target platform.
- Model proof intent was rejected by deterministic validation.
- The supplied evidence does not independently establish the Windows-specific fixes.
|
Independent Windows-row reconciliation: retained nightly artifact12963201847 has7 Python methods/13 failing subcases, not13 independent tests. Twelve failure blocks show UTF-16/NUL-interleaved 'Windows Subsystem for Linux has no installed distributions' from bare ['bash','-euo','pipefail','-c',...]; first expected0/actual1 at test_trusted_bundle.py:196. Wrong-selector mutant separately reports it never reached the poisoned wrapper. This establishes shell-launch failure before intended admission assertions, not a demonstrated trust-policy defect; exact resolved executable path remains unverified. At8018ac0 the four bare bash calls remain. Repo precedent windows_shard_summary.rs already prefers Git for Windows Bash. An isolated test-only resolver experiment selected ProgramFiles/Git/bin/bash.exe, rejected missing ProgramFiles/executable, and bypassed poisoned PATH using a path-with-spaces control;7 Linux self-test methods passed. Existing owner can adapt this harness-only correction and run native Windows proof. No WSL installation/security/trust-policy changes requested. Separate current-head selector/TypeScript journey focused tests passed1 each on Linux; forced-Windows parser/path-renderer control supports forward-slash oracle corrections, not native Windows package acceptance. Preserve native qualification and any later encoding errors separately. |
…s bash, not the WSL launcher (#11260) On the Windows runner a bare bash resolves to the System32 WSL launcher, which reports no installed distributions, so every shell-launched case failed before its assertion. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
|
Thanks for the reconciliation. It was right that the bundle failure is a shell-launch failure (bare Generated by Claude Code |
|
Generated by Claude Code |
There was a problem hiding this comment.
Verification questions
- Confirm the failed ripr sensor prevents this packet from supplying independent successful Rust proof.
Refuted
- The Rust path assertions are proven red/green by the available Linux test runs.; refuted because: They are not: cfg!(windows) branches are inactive on Linux, so the Linux results do not exercise the changed behavior.
- The path-normalization changes should be centralized into one shared production helper.; refuted because: They implement separate test contracts in separate integration-test modules, and the PR does not change product behavior. A shared helper would add cross-module coupling without reducing meaningful duplication.
- The test-side separator normalization conceals a product-level Windows path rendering defect.; refuted because: The diff changes only expected values in tests; it does not alter the production code that prints paths or repair commands. The seeded review independently identifies these as host-rendered expectations.
- Windows path normalization in the Rust tests could conceal a production path-rendering defect.; refuted because: The diff changes only expected test values to match the product's printed representation; it does not modify production path rendering or repair-command generation.
- The gh.cmd shim might select the wrong Python interpreter or break with quoting.; refuted because: The changed shim explicitly invokes sys.executable, while the stub itself is written as UTF-8/LF bytes; this is consistent with the harness-only Windows correction described in the thread.
Evidence gaps
- The trusted-bundle harness's Windows bash resolver is also untested by the available Linux evidence.
- Native Windows execution is not established by the available evidence; Linux checks cannot prove the resolver, UTF-8 behavior, and slash rendering on the target platform.
- Windows bash resolution covers all four changed bare-bash launches, but target-platform execution remains unverified.
- Model proof intent was rejected by deterministic validation.
- The Windows path-rendering assertions are compile-time platform-specific and therefore cannot be distinguished from the old expectations by a Linux-only run.
- Native Windows execution remains the only convincing proof that the Bash resolver, UTF-8 handling, path rendering, and gh.cmd shim work together.
…run (#11260) #11187 added capture_error, which every host compiles, on top of recording_run, which was cfg(unix). On Windows the ripr lib test target failed with E0425, so the Windows advisory ran no tests at all (both runs: compile_or_harness_failure). recording_run only builds a PacketRun and has nothing Unix-specific. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
|
The Windows advisory on 4254d5f found a bigger blocker than the four rows. Both runs ended Main is also still red on Generated by Claude Code |
There was a problem hiding this comment.
Verification questions
- Confirm the Rust changes alter expected rendered forms but do not alter production path rendering.
- Confirm the task-first assertion strips both quote characters before matching the root, which may permit a false positive if the printed command quotes or otherwise alters the root rather than rendering it exactly.
Refuted
- Linux test success proves the changed Windows behavior.; refuted because: Linux cannot exercise cfg!(windows) branches or validate Windows bash resolution; seeded thread explicitly calls for a native Windows advisory run.
- Available Linux test runs prove the changed Windows expectations are red/green-correct.; refuted because: They do not: the modified cfg!(windows) behavior is inactive on Linux, and the PR thread explicitly identifies native Windows proof as pending.
- The failed ripr sensor means the changed Rust behavior has no independent successful proof.; refuted because: This is still materially true as a proof limitation, but it is recorded as an open evidence gap rather than a source defect; Linux cfg-gated tests cannot prove Windows branches.
- A shared cross-module path-rendering helper is required to prevent harmful duplication.; refuted because: These are small, independently owned test contracts. Centralizing them into production code would broaden scope and couple separate test modules without removing meaningful duplication.
Evidence gaps
- Native Windows execution remains necessary to validate the changed Windows branches and Git-for-Windows bash resolution.
- The Windows path assertions are not red/green-proven on Linux because their changed branches are inactive there.
- The Python harness now bypasses the Windows WSL
bashlauncher and selects Git for Windows Bash from standard install roots. - The failed ripr sensor does not provide independent successful Rust proof for the changed routes.
- Model proof intent was rejected by deterministic validation.
- The ripr sensor failed, so this packet contains no independent successful Rust proof.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Generated by Claude Code |
…11260) (#11443) The long action step passed as one bash -c argument is re-parsed by the Windows/MSYS command line and failed with 'unexpected end of file' in the native Windows advisory run on #11291. Write each step to an LF script file. Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2 Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steven Zimmerman · project thread
Governing issue or accepted claim: #11260
Acceptance delta (one sentence): The four repeated Windows nightly rows (selector recovery replay, trusted-bundle selftest, TypeScript journey commit string, task-first bound root) compare against the host-rendered printed form and read UTF-8 explicitly, instead of native paths and locale encoding.
What changed (test-side only, no product change)
selector_language_recovery: supplied-diff replay expects the printed (/) rendering of the patch path, via the existingrendered_path.installed_python_typescript_journeys:printed_shell_argrenders/separators on Windows before quoting, matchinggit -Ctext the product prints.task_first_facade: bound-root assertion compares the/-rendered root with quotes stripped.test_trusted_bundle.py: explicit UTF-8 for all file reads, writes and subprocess text (workflow/action files contain non-ASCII; cp1252 default breaks on Windows); copies and theghstub are written as bytes so no CRLF reaches a shebang or the byte-compared bundle;gh.cmdshim usessys.executable.Not changed
Evidence
cargo xtask precommitpass;test_trusted_bundle.py --self-testpasses. No Windows runner here, so Windows confirmation needs the next windows-advisory run; causes were derived from the code, not reproduced.Generated by Claude Code