Repository navigation
test(windows): repair four native Windows test failures (#15601) - #16074
Conversation
- 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
|
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 3 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
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 fullripr 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-cilabel requests that lane on this head. - Provider review: CodeRabbit and Gemini returned quota notices.
Generated by Claude Code
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…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
left a comment
There was a problem hiding this comment.
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 addsnot(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: theripr status --rootexpectation uses the/spelling. The native log shows the product printingD:/a/...there while the test expectedD:\\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 --testsandxtask --tests,--keep-going): exit 0. The same check failed before the repair. cargo xtask precommitandcargo 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
|
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
left a comment
There was a problem hiding this comment.
REVIEW_READY
Final published-head review of 10eda0a by the owning session.
Subject
- Test code only, seven files. The source review on this head (pullrequestreview-6011594668) and the one on 67780a5 cover the complete diff; the head has not moved since.
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: cleanagainstmain.- 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_envelopepassed in both samples; the config-refusal test passed its validate assertions and failed on theripr status --rootexpectation, 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_packagerepair 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
|
Post-merge native evidence readback for exact head |
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 spellingsis unused on Windows; the list is now built withoutmut.app/receipt.rstests:legacy_nested_basehas onlycfg(unix)callers and is nowcfg(unix)itself.python_nested_project_verify_cwd: every test isnot(windows), so the whole target is unconfigured on Windows.json_refusal_next_steps: theripr status --rootexpectation uses the same/spelling as the validate command.cli_smoke::json_refusal_next_steps::invalid_config_json_refusals_carry_the_human_next_stepC:\...); the product prints//cli_smoke::missing_root_refusal::diff_json_refuses_a_missing_root_with_a_json_envelope\is\\suppressions_manifest_tests::a_control_byte_in_the_manifest_path_is_escaped_on_success#[cfg(unix)], with the reasonsource_fixture::installed_candidate_runs_the_admitted_help_harness_outside_its_package\\?\)Swarm / Source Boundary
dependency, or repo-ops development for
ripr-swarmSource-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-g0lev4Stack 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.
mainhas not changed these files since.Scope
#[cfg(test)]module ofapp/receipt.rs).tests::policy_checker_facade_runs_current_repo_checks, the fifth failure in that comment, is Windows: check-covered-by fails because the contabo_product_proof example tests are Linux-only #15045 and not in scope.Scope Classification
Production delta:
Evidence/support delta:
crates/ripr/tests/output_names_input_refusal.rs,crates/ripr/tests/python_nested_project_verify_cwd.rs, the test module ofcrates/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:
windows-latest.Non-goals:
unstabletemp-directory failures and Windows: check-covered-by fails because the contabo_product_proof example tests are Linux-only #15045.Support-tier Impact
Policy Impact
Proof
Result, failures, or skipped proof:
python_nested_project_verify_cwd(17 dead-code errors); the native run 45003182433 failed on the other two.cargo xtask precommitand Clippy ran on the second commit's tree before its last edit, a two-line expectation change injson_refusal_next_steps.rs;cargo fmt --checkand the cli_smoke run cover that edit.missing_root_refusal::diff_json_refuses_a_missing_root_with_a_json_envelopepassed;invalid_config_json_refusals_carry_the_human_next_stepgot past the validate assertions and failed on theripr status --rootexpectation repaired in the second commit.repo-policydocs_gate::scoped_docs_gate_checks_unchanged_document_roles_in_the_subject_treefails in both samples, and the subset job's VS Code fixture-producer count is 39 tests where the workflow expects 38.Claim Boundary
Rollback
Spec-Test-Code Traceability
Static Language Check
killed,survived,untested,proven, andadequate.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
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo xtask precommithttps://claude.ai/code/session_01SvmPmp6xDLA9aVLQobFHZC
Generated by Claude Code