Skip to content

test(windows): align root-spelling, suffix and trybuild expectations with the product - #10161

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/windows-rows-9272
Oct 25, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/windows-rows-9272

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

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-separator String, so ends_with("analysis/classify/reveal.rs") never matched a Windows \ path. It now compares path components.
  • task_first_facade::repair_human_paths_preserve_percent_root_identity and repeated_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 new product_root_spelling helper 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 precommit exit 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

… expectations with the product (#9272)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FrVWuPEQjhYo674kxG7wdc
@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!

@coderabbitai

coderabbitai Bot commented Oct 25, 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 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 162 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: e7a5cfac-dac7-45b5-82db-461a4abaf36e
Commits

Reviewing files that changed from the base of the PR and between 2bf36c1 and 4254b11.

Files selected for processing: 4
  • changelog.d/9272-windows-test-expectations-rows.md
  • crates/ripr/src/output/related_test_role_tests.rs
  • crates/ripr/tests/task_first_facade.rs
  • crates/ripr/tests/trybuild_fixture_disclosure.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@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 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.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 25, 2026 02:20
@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!

Copy link
Copy Markdown
Member Author

Native Windows receipt for head 4254b11 (Windows Advisory Shards run 40151528683, windows-latest, nextest 4 shards plus doctests).

My six rows pass natively:

  • related_test_role_tests::decision_helpers_never_branch_on_the_miss (the first push fixed the scanned-path lookup; shard 1 of the earlier run showed the miss-closure allowlist still compared strings, so 4254b11 matches it by path component)
  • task_first_facade::repair_human_paths_preserve_percent_root_identity
  • task_first_facade::repeated_repair_resumes_the_awaiting_attempt_instead_of_duplicating
  • trybuild_fixture_disclosure ×2

Doctests pass. The shards still fail on rows this PR does not touch and does not claim: real_unreadable_subtree (#10159), committed_ceilings_equal_the_blessed_missed_credit and wiring_accepts_the_committed_ledger (main's ceiling drift), cli_smoke (pr_evidence_with_missing_artifacts, check_from_a_package_source_dir, check_from_a_subcrate), cli_progress check_worktree, cache_clear_safety, stale_temp_sweep, hostile_repos shell-metacharacter root, doctor cache/probe rows, calibrate_missing_inputs, outcome_command_reports_read_failures, and agent_status gap_bound_attempt_status.

Changes are test-only; no product behavior changes. merge-ready applied; merging waits on the required result for this head.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants