Repository navigation
ci(windows): build test binaries before run 1 so both nightly samples observe one subject set (#9272) - #13922
Conversation
… observe one subject set (#9272) Nightlies 42342172389 and 42450272038 spent ~22 minutes of run 1's 110-minute deadline on the cold test-profile compile, so run 1 was cut at status 124 about 4 minutes before the end, 10 targets short of run 2 (316/325, 318/328). A new advisory step builds every workspace test binary under its own deadline before run 1. Run 2's deadline moves from 70 to 90 minutes (68.2 minutes observed on 2026-11-08) and the job limit to the 360-minute hosted maximum, with the real step-deadline sum stated. The summarizer is unchanged. The recommended-start stub test now splits the renderer's Windows console quoting (double quotes, doubled interior quotes, halved trailing backslash run) as well as the POSIX form; its POSIX-only split fused a quoted spaced Windows root into two broken words.
|
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 1 minute. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The Windows double-quote parser mishandles a doubled backslash immediately before a closing quote.
Verification questions
- Confirm the pre-run build and subsequent cargo test may compile different binary sets or configurations.
- Confirm the Windows console parser handles doubled quotes and closing-quote backslash runs, but does not model a doubled quote followed by another quote.
- Confirm the advisory build step catches all failures with
\|\| echo ...; exit 0, so a failed compile does not fail this step; run 1 is expected to rebuild and report the failure, but this weakens the stated boundary that build outcome is advisory only. - Confirm the job timeout is set to 360 minutes while the documented step-deadline sum is 395 minutes; a run that reaches all cargo deadlines cannot complete, although the comment explicitly treats cancellation as failure.
Parked follow-ups
- The Rust helper remains test-local and duplicates renderer-specific quoting semantics instead of sharing the renderer parser; the added tests pin the accepted forms but do not establish parity for every emitted Windows path.
Evidence gaps
- The workflow changes have no successful local lint or test receipt in the supplied evidence.
- The central same-subject-set workflow claim lacks a terminal hosted run and has failed automated sensor receipts.
- Model proof intent was rejected by deterministic validation.
ripr static exposure checkCommit Took 19s. |
…gelog for the advisory prebuild (#9272)
|
Response to the automated review at 3a2ca66. The head is now c85e187. "The Windows double-quote parser mishandles a doubled backslash immediately before a closing quote": refuted, with pins added.
The native Windows run Verification questions:
|
There was a problem hiding this comment.
Confirmed findings
- The prebuild is documented as the boundary that gives both samples the same subject set, but
\|\| echo ...; exit 0makes a compile failure indistinguishable from a successful advisory build until a later run happens to rebuild and report it. Make the prebuild failure visible as a status/error (or explicitly document that only a successful build establishes the shared-subject-set guarantee), otherwise the implementation does not enforce its stated acceptance boundary. (.github/workflows/windows-advisory.yml:214). - The advisory prebuild converts compile failures into successful steps, so its stated same-subject-set guarantee is not enforced at that boundary.
Verification questions
- Confirm the new prebuild suppresses every cargo failure, so a compile failure can consume its 40-minute budget before run 1 rebuilds and reports the failure.
- Confirm the workflow deliberately suppresses prebuild failure, so build outcome is not independently a required gate.
- Confirm the advisory build command masks the inner runner failure with echo and exit 0, so its recorded shell result cannot distinguish a successful prebuild from a failed one.
- Confirm no test oracle establishes that run 1 and run 2 consume exactly the same test-binary set after the advisory prebuild.
- Confirm the prebuild uses
cargo test --workspace --no-run, while run 1 still invokes workspace tests; therefore the prebuild is not proof that both samples execute the identical binary set. - Confirm the prebuild step is advisory and explicitly exits successfully after a compile failure, so its success does not establish that all test binaries were built.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- The acceptance claim that both samples observe one subject set still depends on hosted execution evidence, which is absent from the supplied receipts.
Parked follow-ups
- The test-local shell_split duplicates Windows renderer quoting semantics, creating a parity boundary that may drift from the production parser.
- The Rust helper adds Windows-console parsing semantics in test code rather than reusing the renderer implementation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head review (head c85e187)
Reviewed; no blocking findings. Three non-blocking notes (one low-severity doc-precision item, two confirmations of the automated receipts against the head tree). For the record: the only prior reviews on this PR are two bot reviews at the previous head (3a2ca66) plus the author's thread replies at this head, so this is the first substantive inspection of this exact head.
Verified (executed at this head; native Windows, Git Bash, cargo 1.95.0 per the toolchain pin; detached worktree at c85e187)
- Parser/emitter parity via an independent oracle. Extracted both functions verbatim from this head — the emitter
windows_console_quote(crates/ripr/src/agent/loop_commands.rs:633-638) and the newshell_split(crates/ripr/tests/repair_check_recommended_start.rs:1049-1118) — into a scratch crate and checked the round tripshell_split(&windows_console_quote(v)) == vec![v]: 17 pinned values (every edge this PR's test pins, plusa"," ", trailing/leading spaces, unicode) and 200,000 pseudo-random strings over the path-safe alphabet (space,\,.,:,-,_,/, letters/digits,é,汉) all round-trip: 0 failures. Form pins confirm the emitter doubles only the trailing backslash run (C:\work dir\renders"C:\work dir\\") and doubles interior"(a"renders"a"""); the parser'scloseslookahead (crates/ripr/tests/repair_check_recommended_start.rs:1086-1090) halves exactly that closing run while preserving interior runs and runs before a doubled literal quote. This resolves the sensor receipt's verification question on doubled quotes and closing-quote backslash runs, including the doubled-quote-then-close case pinned atcrates/ripr/tests/repair_check_recommended_start.rs:1176. - Tests green at this head.
cargo test -p ripr --test repair_check_recommended_start→test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 336.03s, exit 0, includingshell_split_reads_both_bound_root_quoting_forms ... okanda_refused_field_seam_names_the_stub_or_why_there_is_none ... ok— matching the body's claimed counts. The discriminator is real, not a compile/setup proxy: the seam test both splits the rendered stub command and then executes it (crates/ripr/tests/repair_check_recommended_start.rs:423-431), so a mis-split fails the parse assert and the stub run; the base red witness (the root must keep its space) is recorded in the body. - Deadline arithmetic. Summed the head file's cargo step deadlines: 15+15+45+15+45+115+95+25+25 = 395 (
.github/workflows/windows-advisory.yml:152,169,176,183,214,230,241,261,303), exactly as the new comment states at:95-97; job limit 360 at:101; run 2 is 95 step / 90 inner (:241,:248). - Fail-closed preserved. The summarizer step is untouched by any diff hunk and still fails the job on a missing log, missing status, or unusable run (
windows-advisory.yml:291-295). The new build step is advisory (... || echo "windows-advisory-run failed ($?); run 1 rebuilds and reports what is missing"; exit 0,:217), and run 1 still runs the fullcargo test --workspace, so a broken compile still surfaces in run 1 and the summary — the in-file claim "a compile failure is still reported by run 1 itself" (:215-216) holds. - Artifacts and changelog. Build log/status added to the upload (
:393-394), matching the step's--log/--statustargets.changelog.d/9272-windows-advisory-prebuild.md:1-2matches the diff (prebuild step, run 2 70→90, job limit 360). - Known main-health note: the E0063 breakage is not in this tree —
owner_opt_outsdoes not occur incrates/ripr/src/output/human.rsat this head (head is based onab93e28c66), so no local patch ofhuman.rs:9236was applied or needed, and the local build compiled clean.
Findings (all non-blocking)
- Low — doc precision,
crates/ripr/tests/repair_check_recommended_start.rs:1039-1040: "Splits a command line the way the bound-root quoting writes it, in either host form the renderer emits (agent::loop_commands::shell_arg_for)".shell_arg_forcan emit a third form — the ANSI-C"$(printf '\ooo')"escape for control/bidi values — whichshell_splitwould not parse. Unreachable from this test's inputs (roots arestd::env::temp_dir().join(...)plus label/pid,:74; the helper is test-local), so this is wording, not behavior: narrowing the doc to "for path-like values" (or an explicit out-of-scope note) would make the claim exactly as wide as the code. - Note — job limit 360 sits below the 395 step-deadline sum (
windows-advisory.yml:95-101). The in-file comment discloses this and a night that exhausts the deadlines is job-cancelled, which fails red rather than reporting green; confirming here, with the head file's numbers, the arithmetic question the automated receipt raised. This does not block on it. - Note — currentness of the hosted witness. The dispatched Windows Advisory run 42540419977 on this head is
in_progress(checked at review time), so "both samples observe the same subject set" is established structurally and locally but not yet by a terminal hosted run; the first scheduled nightly after merge remains the steady-state witness. The body already states this ("The result is added below when the run is terminal").
…; fix(proxy): block on accepted sockets in the rejecting distribution
The self-test's D:/ and C:\ examples are real local drive paths, and
check-local-context (part of the file-policy facade and count_policy_gates)
scans test sources too, so run 1 on the PR head failed those gates with
"local absolute Windows path" at four added lines. The examples keep the
same quoting edges with //example.test spellings.
The rejecting distribution accepted sockets in the listener's non-blocking
mode, so the 4096-byte read returned WouldBlock before the request bytes
arrived, went uncounted, and the early 503 aborted the rustup client
(os error 10053). Run 1 of the 2026-11-09 dispatched advisory run failed
absent_pin_refuses_all_offline_proxies_without_installation that way
("online preparation did not reach the rejecting server"); run 2 passed.
Accepted sockets are now switched to blocking before the bounded read.
The test's panic text no longer embeds the child stdout/stderr, whose
multiline failure block is what the summarizer's provenance parser saw
interleaved with the xtask completion summary.
…9272) The self-test's local expect closure is ten call-kind panic-family sites in one container; one governed entry covers them (count = 10). Found on the 2026-11-09 dispatched advisory run: check-no-panic-family failed inside the file-policy facade and count_policy_gates, which made the file-policy evidence step fail the job.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for the current published head
Scope: .github/workflows/windows-advisory.yml (the nightly's subject-set defect) and crates/ripr/tests/repair_check_recommended_start.rs (the quoting row), plus the governance files the change touched. The single acceptance is: the advisory lane's two stability samples observe the same subject set, and the recommended-start stub test runs the renderer-emitted Windows command.
Semantic review performed on the exact head:
- The new build step selects the same packages, targets, profile and features as the two runs, and its captured status flows to the same summarizer contract as the other advisory steps. A compile failure surfaces in run 1 and fails the lane there; the step itself stays exit-0 like the two existing check steps.
- The summarizer is untouched: the two commits here never edit
xtask/src/windows_advisory.rs; the stability comparison and the unobserved-control refusal stay exactly as they were. - The deadline changes are grounded in the retained nightly logs: run 2 had 1.8 minutes of margin at 70 minutes on the 2026-11-08 nightly, so 90 restores the margin class run 1 keeps; the 360 job limit is the hosted maximum and a night that reaches it is cancelled and fails.
shell_splitnow models both renderer forms. The four backslash-run edge cases are pinned, including the odd trailing run and the run before a doubled literal quote; the reader halves only a run directly before a real closing quote.- The self-test moved to
//example.testspellings because check-local-context scans test sources and a real drive path is a local-context finding; the stub command the test executes is produced by the binary under test, not by these examples. - The no-panic entry covers exactly the ten call sites the probe showed (one closure container, callee expect, count 10), so a new expect in that test would refuse as
count exceeded. - The rejecting-distribution fix blocks accepted sockets before the bounded read, matching how the non-blocking listener hands sockets to the worker; the request-count assertion stays.
Residuals, all named with owners and outside this diff: the file-fact spelling row (active PR #13899, #13887), classified_reference_budget_rejects_single_and_late_shard_without_a_prefix (#13897), dx_scoreboard, agent budget, routed-dispatch and pending-terminal rows. The outstanding steady-state witness for the nightly is the next scheduled run after merge.
Validation: cargo xtask check-workflows, check-no-panic-family, check-local-context, check-changelog-fragments all pass at this head; workflow_action_pins 8/8, windows_subset_admission_contract 6/6, the xtask windows_advisory filter 80/80 locally; the dispatched run 42723720444 at this head is green with identical 340-target subject sets in both runs.
The first scheduled nightly to reach check_clean_base_branch_with_parent_analyzes_last_commit_in_human_only on Windows (run 42761400655, head 9735b86, #9272 witness) failed its oracle: the renderer quotes --base for the host shell (#8152, agent::loop_commands::shell_arg), so Windows prints --base "HEAD~1" while the oracle demanded the POSIX single-quote form. The #13922 dispatch proof (42723720444, head 5998f08) predates #13704 and never exercised this test, so the Windows-only redness shipped unnoticed. Keep the discriminator: the drill-in must stay on the analyzed last-commit range, under the host spelling. Red witness reproduced locally on Windows at a61b1e6 (exit 101, byte-identical message to the nightly); green after the one-assertion repair (ok, 30.8s, --no-default-features --features lang-rust).
…14058) The first scheduled nightly to reach check_clean_base_branch_with_parent_analyzes_last_commit_in_human_only on Windows (run 42761400655, head 9735b86, #9272 witness) failed its oracle: the renderer quotes --base for the host shell (#8152, agent::loop_commands::shell_arg), so Windows prints --base "HEAD~1" while the oracle demanded the POSIX single-quote form. The #13922 dispatch proof (42723720444, head 5998f08) predates #13704 and never exercised this test, so the Windows-only redness shipped unnoticed. Keep the discriminator: the drill-in must stay on the analyzed last-commit range, under the host spelling. Red witness reproduced locally on Windows at a61b1e6 (exit 101, byte-identical message to the nightly); green after the one-assertion repair (ok, 25.3s on the rebased head, --no-default-features --features lang-rust).
Governing issue or accepted claim: #9272
Acceptance delta (one sentence): The scheduled Windows Advisory nightly's two stability samples observe the same subject set because run 1 is no longer cut by its deadline during the cold compile, and the recommended-start stub test parses the renderer's Windows double-quoted root.
Witness
Scheduled nightlies 42342172389 (2026-11-07, head
96d0acf9d9) and 42450272038 (2026-11-08, head8e1d63b9b6) both failedSummarize verdicts and repeated-run stabilitywithrun 1 is incomplete_evidence(cargo exit 124).A. Run 1 cut by its own deadline (cap truncation confirmed). From the retained job logs (jobs 128312040858 and 128637787272):
testprofile compileTIMEOUT after 6600sTIMEOUT after 6600sBoth nights run 1 was killed about 4 minutes before the end (run 2 needed 3.9 minutes from run 1's last-started target to its own end). The 10 missing targets were the same both nights: 7 tail test binaries (
windows_advisory_identity..xtask_bin_spawn_contract) and the 3 doctest targets. The kill point did not move between nights. Run 2 had under 2 minutes of margin on 2026-11-08.C. Test-side argv parser.
repair_check_recommended_start::a_refused_field_seam_names_the_stub_or_why_there_is_nonefails locally at base withthe root must keep its space: [.., "--root", "\"F:/.../ripr-recstart-field", "hint-199696\"", ..]. The test's POSIX-onlyshell_splitdoes not read the renderer's Windows console form (windows_console_quote,crates/ripr/src/agent/loop_commands.rs).Implementation
.github/workflows/windows-advisory.yml:Build workspace test binaries (advisory, before run 1)step runscargo test --workspace --no-rununderwindows-advisory-run(40-minute inner deadline, 45-minute step limit). Neither stability sample spends its deadline on the cold compile any more.changelog.d/9272-windows-advisory-prebuild.md(Internal / CI).crates/ripr/tests/repair_check_recommended_start.rs:shell_splitreads both renderer forms: POSIX'..'with'\'', and Windows".."with""and the doubled trailing backslash run halved. A new self-test,shell_split_reads_both_bound_root_quoting_forms, pins both forms and refuses an unterminated quote.Not in this PR: the file-fact cache spelling row
The third nightly row (
native_path_roots::{spaced,unicode}_root_check_and_file_fact_cache_round_trip,hits_2_misses_0) is reproduced: a manualripr checkatab93e28c66wroterepo-file-facts/1.58entries for bothsrc/lib.rsandsrc\lib.rs, and the payloads differ only in that spelling. Its key-owner fix is already in flight in #13899 (#13887), whose writer is active, so this PR does not open a rival implementation. That row stays advisory in the summarizer: a failing control is observed, not missing.Measured proof
Native Windows, Git Bash, this worktree, Rust 1.95.0, base
ab93e28c66. Main moved to3da4e00c90before the push without touching either file.cargo test -p ripr --test repair_check_recommended_start -- a_refused_field_seam_names_the_stub_or_why_there_is_nonewith the base test file:FAILED,the root must keep its space: [.., "\"F:/code/Rust/ripr-rel2-nightly-green/target/ripr-recstart-field", "hint-199696\"", ..].cargo test -p ripr --test repair_check_recommended_startgave13 passed; 0 failed, includingshell_split_reads_both_bound_root_quoting_forms ... okanda_refused_field_seam_names_the_stub_or_why_there_is_none ... ok.cargo xtask check-workflowspassed (target/ripr/reports/workflows.md).c85e187966):shell_split_reads_both_bound_root_quoting_formsanda_refused_field_seam_names_the_stub_or_why_there_is_nonegave2 passed; 0 failed.workflow_action_pins8/8,windows_subset_admission_contract6/6, xtaskwindows_advisoryfilter 80/80.rust_only_routingselected 0 tests on this Windows host, so it is not evidence here; Linux CI owns it.cargo xtask check-changelog-fragmentspassed.5998f08122: the job succeeded. Run 1 reached 340 targets, run 2 340; the sets are identical (prefix-equal, 0 missing, 0 extra). Both runs reported 341 result lines. Run 1 took 67.0 minutes of its 110-minute deadline, run 2 55.4 of 90.Admit retained file-policy evidencepassed ("admitted retained file-policy evidence for head 5998f08... facade cargo status 0"),a_refused_field_seam_names_the_stub_or_why_there_is_none ... okin both runs, all 15 release-seam controls observed in both runs, and the summarizer produced a full verdict (27767/12 and 27768/11 pass/fail) without its refusal. Earlier dispatches on this PR: 42537765083 (cancelled after head change), 42540419977 (run 1 provenance interleave, fixed in c85e187), 42574623409 (drive paths in the self-test + the rejecting-distribution 503 race, fixed in fdc1f7d and 5998f08).Non-goals## Non-goals
classified_reference_budget_rejects_single_and_late_shard_without_a_prefix(test(seam-cache): classified_reference_budget test fails on Windows (reason path does not contain display path) #13897) is not touched here.