Skip to content

test(windows): repair four native Windows test failures (#15601) - #16074

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-g0lev4
Nov 22, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-g0lev4

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Four tests fail on native Windows and pass on Linux. Each is a test defect: the product behavior is the documented one. This repairs the tests. No production code changes.

The Windows advisory run on the first head (45003182433) found three test targets that do not compile on Windows when warnings are denied, and a second expectation in the config-refusal test. The second commit repairs those:

  • output_names_input_refusal: let mut spellings is unused on Windows; the list is now built without mut.
  • app/receipt.rs tests: legacy_nested_base has only cfg(unix) callers and is now cfg(unix) itself.
  • python_nested_project_verify_cwd: every test is not(windows), so the whole target is unconfigured on Windows.
  • json_refusal_next_steps: the ripr status --root expectation uses the same / spelling as the validate command.
Test Windows failure Repair
cli_smoke::json_refusal_next_steps::invalid_config_json_refusals_carry_the_human_next_step expected command built from the native root (C:\...); the product prints / build the expected text with /
cli_smoke::missing_root_refusal::diff_json_refuses_a_missing_root_with_a_json_envelope searched the serialized JSON, where every \ is \\ search the decoded string values
suppressions_manifest_tests::a_control_byte_in_the_manifest_path_is_escaped_on_success Windows refuses a control byte in a file name (os error 123), so the fixture cannot exist #[cfg(unix)], with the reason
xtask source_fixture::installed_candidate_runs_the_admitted_help_harness_outside_its_package the freeze slot's parent was the plain temp path while the capture root is canonical (\\?\) canonicalize the owned root in the fixture

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: n/a
Spec: n/a
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #15601 (the four failures #15894 listed as unclaimed in #15894 (comment))
Acceptance delta (one sentence): these four tests stop failing in the Windows Advisory lane and keep passing on Linux.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-g0lev4
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): n/a

Equivalent-claim search: open and merged PRs for the four test names returned no repair. #15894 (merged) names them as not claimed. main has not changed these files since.

Scope

Scope Classification

  • Test/evidence only

Production delta:

  • none

Evidence/support delta:

  • crates/ripr/tests/output_names_input_refusal.rs, crates/ripr/tests/python_nested_project_verify_cwd.rs, the test module of crates/ripr/src/app/receipt.rs, crates/ripr/tests/cli_smoke/json_refusal_next_steps.rs, crates/ripr/tests/cli_smoke/missing_root_refusal.rs, crates/ripr/src/cli/commands/config/suppressions_manifest_tests.rs, xtask/src/policy/release_targets/candidate_registry/tests/source_fixture.rs.

Single acceptance criterion:

  • The four named tests pass on windows-latest.

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • none

Proof

cargo test -p ripr --test cli_smoke -- json_refusal_next_steps missing_root_refusal   # 11 passed (Linux, 10eda0ad)
cargo test -p ripr --test output_names_input_refusal                                  # 9 passed
cargo test -p ripr --test python_nested_project_verify_cwd                            # 7 passed
cargo test -p xtask installed_candidate_runs_the_admitted_help_harness                # 1 passed (67780a51)
RUSTFLAGS="-D warnings" cargo check -p ripr --lib --tests --keep-going --target x86_64-pc-windows-gnu   # exit 0
RUSTFLAGS="-D warnings" cargo check -p xtask --tests --keep-going --target x86_64-pc-windows-gnu        # exit 0
cargo clippy -p ripr --all-targets -- -D warnings                                     # exit 0
cargo clippy -p xtask --all-targets -- -D warnings                                    # exit 0 (67780a51; xtask unchanged since)
cargo xtask precommit                                                                 # exit 0

Result, failures, or skipped proof:

  • Negative control for the Windows build: the same Windows-target check on the tree before the second commit failed on python_nested_project_verify_cwd (17 dead-code errors); the native run 45003182433 failed on the other two.
  • cargo xtask precommit and Clippy ran on the second commit's tree before its last edit, a two-line expectation change in json_refusal_next_steps.rs; cargo fmt --check and the cli_smoke run cover that edit.
  • Native Windows, first head 67780a5 (run 45003182433, both samples): missing_root_refusal::diff_json_refuses_a_missing_root_with_a_json_envelope passed; invalid_config_json_refusals_carry_the_human_next_step got past the validate assertions and failed on the ripr status --root expectation repaired in the second commit.
  • Native Windows on 10eda0a: manual dispatch 45010014298; result recorded in a comment.
  • The control-byte test is a lib unit test; the lib test binary cannot be built in the cloud container, so on Linux it is covered by hosted shards.
  • Seen in the Windows run and not in scope: repo-policy docs_gate::scoped_docs_gate_checks_unchanged_document_roles_in_the_subject_tree fails in both samples, and the subset job's VS Code fixture-producer count is 39 tests where the workflow expects 38.

Claim Boundary

  • May be claimed: the diagnosis of each failure from the Windows Advisory log of run 44949720021, and Linux results above.
  • Not claimed until run 45010014298 reports: that the config-refusal test, the xtask fixture test and the three compile repairs hold on native Windows.

Rollback

  • Revert the squash commit.

Spec-Test-Code Traceability

  • Spec: n/a
  • Tests: the four tests named above
  • Code: none
  • Golden outputs: none
  • Metrics: none
  • ADR/learning: none

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

Two manual Windows Advisory dispatches (the first was cancelled once it had shown the remaining defects), to observe the platform-specific claim.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason. (none)
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented. (none)

Gates

  • cargo xtask precommit

https://claude.ai/code/session_01SvmPmp6xDLA9aVLQobFHZC


Generated by Claude Code

- json_refusal_next_steps: the printed validate command spells the root with
  forward slashes; the expectation used the native spelling.
- missing_root_refusal: search decoded JSON strings; the serialized document
  escapes each backslash of a Windows path.
- suppressions_manifest_tests: the control-byte file name cannot exist on
  Windows (os error 123); the test is Unix-only.
- candidate_registry source_fixture: join the freeze slot onto the canonical
  owned root, which is the verbatim spelling on Windows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmp6xDLA9aVLQobFHZC
@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 Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 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 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 146 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: a5ca04c2-e963-4d8e-a91b-b22b6762eb6b
Commits

Reviewing files that changed from the base of the PR and between e7eff2a and 10eda0a.

Files selected for processing: 7

  • crates/ripr/src/app/receipt.rs
  • crates/ripr/src/cli/commands/config/suppressions_manifest_tests.rs
  • crates/ripr/tests/cli_smoke/json_refusal_next_steps.rs
  • crates/ripr/tests/cli_smoke/missing_root_refusal.rs
  • crates/ripr/tests/output_names_input_refusal.rs
  • crates/ripr/tests/python_nested_project_verify_cwd.rs
  • xtask/src/policy/release_targets/candidate_registry/tests/source_fixture.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven added the windows-ci Run the advisory Windows lane on a pull request without opting into every full-ci lane. label Nov 22, 2026 — with Claude

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Source review of 67780a5 by the owning session.

Inspected

  • The complete diff: four test files, no production code.
  • json_refusal_next_steps: the product prints the root with / (human-path rule), so the expected command is built with /. The assertion still requires the full ripr config validate --root <root> text, so it keeps its grip on Linux, where the replace is a no-op.
  • missing_root_refusal: the search moves from the serialized document to its decoded string values. It still fails when no string value carries the missing root.
  • suppressions_manifest_tests: #[cfg(unix)] on the control-byte path test. Windows cannot create that file name (os error 123), so the stimulus does not exist there. The Unix test is unchanged.
  • xtask source_fixture: the owned root is canonicalized after creation, matching the canonical capture root the product compares against. The product check is untouched.

Proof on this head

  • cargo test -p ripr --test cli_smoke -- json_refusal_next_steps missing_root_refusal: 9 passed (Linux).
  • cargo test -p xtask installed_candidate_runs_the_admitted_help_harness: 1 passed (Linux).
  • cargo xtask precommit, cargo clippy -p ripr --all-targets -- -D warnings, cargo clippy -p xtask --all-targets -- -D warnings: exit 0.

Not established yet

  • Windows execution of the four tests. The diagnosis comes from the Windows Advisory log of run 44949720021; the windows-ci label requests that lane on this head.
  • Provider review: CodeRabbit and Gemini returned quota notices.

Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 22, 2026 07:49
@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!

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 potential issue.

Devin Review

…fig-refusal expectation (#15601)

The Windows advisory run on 67780a5 showed three more defects:

- output_names_input_refusal: `let mut` is unused on Windows, where the
  symlink spelling is not pushed.
- app/receipt tests: `legacy_nested_base` has only Unix callers.
- python_nested_project_verify_cwd: every test is not(windows), so the
  target's helpers were dead code there. All three fail a Windows build
  that denies warnings.
- json_refusal_next_steps: the `ripr status --root` expectation needed the
  same `/` spelling as the validate command.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmp6xDLA9aVLQobFHZC

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Source review of 10eda0a by the owning session. The review of 67780a5 stands for the first commit; this covers the second.

Inspected (second commit)

  • output_names_input_refusal.rs: the spellings list holds the absolute path and, on Unix, the symlink spelling. Same two stimuli on Unix as before; one on Windows as before. 9 tests pass on Linux.
  • app/receipt.rs: #[cfg(unix)] on a test helper whose four callers are all #[cfg(unix)]. No product line changes.
  • python_nested_project_verify_cwd.rs: the crate-level cfg adds not(windows). Every test in the file already carried #[cfg(not(windows))], so no Windows test is removed. 7 tests still run on Linux.
  • json_refusal_next_steps.rs: the ripr status --root expectation uses the / spelling. The native log shows the product printing D:/a/... there while the test expected D:\\a\\....

Proof on this head

  • Linux: the three touched integration targets pass (11, 9 and 7 tests).
  • Windows target type-check with warnings denied (x86_64-pc-windows-gnu, ripr --lib --tests and xtask --tests, --keep-going): exit 0. The same check failed before the repair.
  • cargo xtask precommit and cargo clippy -p ripr --all-targets -- -D warnings: exit 0, run before the final two-line expectation edit.

Not established yet

  • Native Windows execution on this head: run 45010014298 is in progress.
  • Provider review: CodeRabbit and Gemini returned quota notices. The one Devin note is answered and resolved.

Generated by Claude Code

Copy link
Copy Markdown
Member Author

windows-advisory-subset is red on this head (run 45010014298) for two reasons that are not this PR's:

  • the selector consumer cargo build -p ripr --bin ripr is ended by the workflow's 8 GB Job Object cap (peak 8,591,069,184 bytes), and
  • the VS Code fixture-producer suite reports 39 tests where the workflow pins 38.

Both are filed as #16121. This PR changes Rust test code only. What this PR did change in that job: the Rust test targets now compile on Windows with warnings denied (the lib test step ran, 2 passed; on 67780a5 it stopped at two compile errors).

The integration and unit jobs of the same run are still in progress; their result follows here.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY

Final published-head review of 10eda0a by the owning session.

Subject

Hosted results on this exact head

  • Admit PR Candidate: success. Ripr Rust Small Result: success, with Rust gates, both test shards and the shard verify green.
  • mergeable_state: clean against main.
  • Review threads: one Devin note, answered with source and resolved. CodeRabbit and Gemini returned quota notices, so provider review is missing rather than clean.

Windows evidence (advisory, not a required result)

  • Native run 45003182433 on 67780a5: missing_root_refusal::diff_json_refuses_a_missing_root_with_a_json_envelope passed in both samples; the config-refusal test passed its validate assertions and failed on the ripr status --root expectation, whose printed text (D:/a/...) is what the second commit now expects.
  • Native run 45010014298 on this head: the Rust test targets compile with warnings denied (the lib test step ran). The subset job is red for two workflow-owned causes filed as #16121. The integration and unit jobs have not reported yet.
  • Not yet observed on native Windows: the xtask installed_candidate_runs_the_admitted_help_harness_outside_its_package repair and the final config-refusal expectation. Their results go on #15601 when the run reports. This PR does not close #15601.

Judgment

  • The change cannot weaken Linux proof: the Unix stimuli and assertions are unchanged, and the hosted Linux suite is green on this head. The Windows repairs are either observed or pending an advisory run that does not gate merge.

Generated by Claude Code

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 5a0ad30 Nov 22, 2026
24 of 25 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-g0lev4 branch November 22, 2026 13:20

Copy link
Copy Markdown
Member Author

Post-merge native evidence readback for exact head 10eda0ad9e796ac2bf962f66a0ee41897290a0ab: in run 45010014298, both raw integration-a-c logs explicitly report ok for the invalid-config JSON and missing-root JSON cases; both unit logs explicitly report ok for the installed-help harness outside its package. The control-byte filename test is correctly not selected on Windows, not a native pass. I verified the published SHA-256 of the integration and verdict/unit ZIPs before reading. The composed verdict still reports exit 101 in both samples and ten repeats, all tracked by #16105. The separate red subset job remains #16121. No repointing of the release verdict or additional dispatch.

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

Labels

merge-ready windows-ci Run the advisory Windows lane on a pull request without opting into every full-ci lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants