Skip to content

fix(windows): printed-path rendering and UTF-8 reads in nightly-failing tests (#11260) - #11291

Merged
EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-rpfj48
Oct 31, 2026
Merged

EffortlessSteven merged 8 commits into
mainfrom
claude/project-thread-rpfj48

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

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 existing rendered_path.
  • installed_python_typescript_journeys: printed_shell_arg renders / separators on Windows before quoting, matching git -C text 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 the gh stub are written as bytes so no CRLF reaches a shebang or the byte-compared bundle; gh.cmd shim uses sys.executable.

Not changed

Evidence

  • Local (Linux): cargo xtask precommit pass; test_trusted_bundle.py --self-test passes. 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

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven self-assigned this Oct 30, 2026
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 148 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 63b04d32-279a-49a5-b09d-2508c0816981
Commits

Reviewing files that changed from the base of the PR and between 018a7d8 and c3d03f7.

Files selected for processing: 6
  • .github/actions/pr-candidate-admission/test_trusted_bundle.py
  • crates/ripr/src/cli/commands/ci_packet.rs
  • crates/ripr/tests/cli_smoke/selector_language_recovery.rs
  • crates/ripr/tests/installed_python_typescript_journeys.rs
  • crates/ripr/tests/task_first_facade.rs
  • editors/vscode/test/suite/extension.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven added full-ci Run required, advisory, and release-like CI lanes. merge-ready labels Oct 30, 2026 — with Claude

Copy link
Copy Markdown
Member Author

CI note on head 0074256: two failures that look unrelated to this test-only diff.

  • vscode (run 41146565119, Linux): 2 Extension Smoke tests timed out waiting for a seam hover (480 pass). I'll re-run once the run finishes.
  • rust-tests-junit (Test Analytics, not the required check): one test failed, chaos_interrupted_runs managed_producer::interruption::second_sigint_escapes_blocked_interruption_diagnostics (5.0s), 16770 others pass. Re-run queued.
    If either repeats I'll file an issue with the run link.

Generated by Claude Code

Copy link
Copy Markdown
Member Author

Ripr Rust Small Result is red only because goldens check failed on python_trailing_whitespace_in_multiline_string human.txt. That fixture was added by #11210, and this PR changes no output. The fix is open as #11301 and already labeled merge-ready. Once it lands I'll merge main into this branch and re-apply the labels. No code change is needed here.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLTtc4JMF21GsiaiQX2
@EffortlessSteven EffortlessSteven added full-ci Run required, advisory, and release-like CI lanes. merge-ready and removed full-ci Run required, advisory, and release-like CI lanes. merge-ready labels Oct 31, 2026 — with Claude
…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
@EffortlessSteven EffortlessSteven added full-ci Run required, advisory, and release-like CI lanes. merge-ready and removed full-ci Run required, advisory, and release-like CI lanes. merge-ready labels Oct 31, 2026 — with Claude

Copy link
Copy Markdown
Member Author

Head moved to 8018ac0. The vscode failure was deterministic and came from main, not flaky: #11013 renamed the hover headings, but two Extension Smoke tests still waited for **ripr** behavioral seam and **ripr** gap decision. The hover was present the whole time (the log shows **ripr** changed behavior and **ripr** test gap), so the tests timed out. The vscode job only runs with full-ci, which is why it slipped. This head updates those two expectations to the current headings. It is the same family as the fixes this PR already carries, and I don't see an open PR fixing it. Labels re-applied.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

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
@EffortlessSteven EffortlessSteven added full-ci Run required, advisory, and release-like CI lanes. merge-ready and removed full-ci Run required, advisory, and release-like CI lanes. merge-ready labels Oct 31, 2026 — with Claude

Copy link
Copy Markdown
Member Author

Thanks for the reconciliation. It was right that the bundle failure is a shell-launch failure (bare bash resolving to the WSL launcher), not an encoding failure. Head 4254d5f adds a bash() resolver to test_trusted_bundle.py. On Windows it uses Git for Windows bash under ProgramFiles or ProgramFiles(x86) and ignores PATH. Elsewhere it stays bash. All four bare calls use it, and the 7 self-test methods pass on Linux. The UTF-8 and LF-bytes changes stay, since they address separate Windows hazards. Main is merged in and the labels are re-applied. The Windows advisory run on this head will be the native proof. I'll report the result per row, and a remaining encoding error would show up there separately.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Ripr Rust Small Result on 4254d5f is red only on check-user-text (golden-human discriminator 3264 vs ceiling 3255, seam 594 vs 593). I reproduced it locally on unmodified origin/main, and this PR changes no goldens. The fix is open as #11339 (merge-ready). Once it lands I'll merge main in and re-apply the labels. Other lanes on this head: see the earlier notes and #11299.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@EffortlessSteven EffortlessSteven added full-ci Run required, advisory, and release-like CI lanes. merge-ready and removed full-ci Run required, advisory, and release-like CI lanes. merge-ready labels Oct 31, 2026 — with Claude

Copy link
Copy Markdown
Member Author

The Windows advisory on 4254d5f found a bigger blocker than the four rows. Both runs ended compile_or_harness_failure: cargo test on Windows fails to build the ripr lib tests with E0425: cannot find function recording_run at ci_packet.rs:2932. #11187 added capture_error, which compiles on every host, on top of recording_run, which was #[cfg(unix)]. So no Windows test ran at all on this head. Head 1d7bcf0 removes the stray cfg(unix); the helper only builds a PacketRun. The 29 ci_packet tests pass on Linux. This compile break would have hidden the four nightly rows even after their fixes.

Main is also still red on check-user-text (the golden-human ceiling moved again; #11339 was closed unmerged), so the required lane will stay red here until that is fixed on main. I'm using this head's Windows advisory run to verify the four rows.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 bash launcher 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
@EffortlessSteven EffortlessSteven added full-ci Run required, advisory, and release-like CI lanes. merge-ready and removed full-ci Run required, advisory, and release-like CI lanes. merge-ready labels Oct 31, 2026 — with Claude
@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Member Author

rust-tests-junit failed on c3d03f7 with one test, xtask tests::fixture_variants::perl_variant_build_never_rewrites_shared_debug_binary (the other 24,324 passed). This is not this PR's: the test is the Perl fixture_variants flake already tracked on #11299, where the shared target/debug/ripr was rewritten mid-suite while a variant build waited on cargo locks. This PR touches no xtask or Perl code. The required Ripr Rust Small shards are still running, so I re-ran the failed job once to confirm.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit f444b7a into main Oct 31, 2026
79 of 83 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-rpfj48 branch October 31, 2026 08:29
EffortlessSteven added a commit that referenced this pull request Oct 31, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Run required, advisory, and release-like CI lanes. merge-ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants