Repository navigation
test(windows): align root-spelling, suffix and trybuild expectations with the product - #10161
Conversation
… expectations with the product (#9272) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FrVWuPEQjhYo674kxG7wdc
|
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 17 minutes. View limit details
Comment |
There was a problem hiding this comment.
Verification questions
- Confirm the Windows expectations use a test-local helper that duplicates slash unification and
//?/drive-prefix folding; it does not directly assert against the product's canonicalization routine. - Confirm the trybuild normalizer can normalize two spellings, but the report contract is not asserted independently of the normalization helper.
- Confirm the trybuild normalizer handles the slash-unified scratch root but does not normalize the same drive-letter
//?/prefix folding described in the changelog. - Confirm the trybuild normalizers add a slash-unified replacement but do not fold a drive-letter
//?/prefix, unlike product_root_spelling; whether report output can contain that prefix is unverified.
Refuted
- The new Windows helper is an unconditional product-behavior change.; refuted because: The helper returns the original text on non-Windows, and the changed expectations are test helpers only; the patch contains no product implementation change.
- The changed path suffix check or string normalization could expose an active-view/ArrayBuffer lifetime or detachment defect.; refuted because: The code uses Path::ends_with over immutable path strings and owned String replacements. It neither resizes nor transfers a buffer and keeps no borrowed view beyond the replacement expression.
- These changes could introduce UB at a JS-backed memory, worker, async-capture, GC, detach, or transfer boundary.; refuted because: No such boundary is changed: the diff only performs synchronous native path parsing/string normalization in Rust tests and test helpers.
- The Windows-specific prefix folding could create an ownership or memory-safety defect.; refuted because: strip_prefix returns a borrowed slice of the owned unified String, and rest.to_string() copies it before use; the original value remains owned and safely dropped.
- The diff might weaken disclosure checks by normalizing away paths that should remain visible.; refuted because: The normalization is applied only to captured test output before assertions; it does not modify the report generator, production output, or disclosure policy.
- The helper would over-normalize arbitrary //?/ paths or non-drive Windows roots.; refuted because: It slash-unifies all Windows text but strips //?/ only when followed by a drive-letter colon; other forms retain the prefix after slash unification.
Evidence gaps
- The ripr sensor failure is unexplained and limits confidence in route/behavior validation.
- Model proof intent was rejected by deterministic validation.
) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FrVWuPEQjhYo674kxG7wdc
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Native Windows receipt for head 4254b11 (Windows Advisory Shards run 40151528683, windows-latest, nextest 4 shards plus doctests). My six rows pass natively:
Doctests pass. The shards still fail on rows this PR does not touch and does not claim: Changes are test-only; no product behavior changes. Generated by Claude Code |
Plan item: n/a
Governing issue or accepted claim: #9272 (A3, Windows rows from run 40140809302)
Acceptance delta (one sentence): Six Windows test failures that were stale expectations rather than product defects now match the product's root spelling, so they stop reading as red.
What changed (tests only; no product behavior change)
output::related_test_role_tests::decision_helpers_never_branch_on_the_miss: the scanned path is a native-separatorString, soends_with("analysis/classify/reveal.rs")never matched a Windows\path. It now compares path components.task_first_facade::repair_human_paths_preserve_percent_root_identityandrepeated_repair_resumes_the_awaiting_attempt_instead_of_duplicating: the product slash-unifies printed and persisted roots and folds a drive-letter//?/prefix (Windows: tests compare paths with mixed/and\(xtask first_run, output::path, discarded_matcher, match_arm_geometry) #9660). A newproduct_root_spellinghelper gives the tests the same spelling.trybuild_fixture_disclosure(2 tests): the report echoes the scratch root slash-unified on Windows, so the normalizer now replaces both spellings.Not in this PR:
eval_sweep real_unreadable_subtree(owned by #10159), doctor/cache_clear_safety/cli_smoke (watchdog thread), quoting rows (#10109).Proof
Linux: the touched tests pass;
cargo xtask precommitexit 0; the Windows target type-checks (x86_64-pc-windows-gnu). Native proof: sharded Windows run dispatched on this branch (linked in a comment).Generated by Claude Code