Repository navigation
ci(windows): stream and bound the single-job advisory test steps (#9272) - #9840
Conversation
…treaming, deadline-enforcing runner (#9272) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PrRRMBXfD85Xo2kQ9La4AV
|
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 55 minutes. View limit details
Comment |
…r and bound its edge cases (#9272) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PrRRMBXfD85Xo2kQ9La4AV
|
Independent review of cc6cbb8 (read-only agent; correctness/edge cases and workflow/contract angles) found one blocker and several smaller points, all addressed in b373ced:
Not yet shown: the Windows behavior. I cancelled the hosted run on the old head and dispatched Generated by Claude Code |
There was a problem hiding this comment.
Confirmed findings
- Duplicate runner options silently overwrite earlier values rather than being rejected.
Verification questions
- Confirm linux tests exercise OwnedProcess through the implementation but cannot establish that Windows descendants are actually terminated as a tree.
- Confirm after the post-exit grace expires, the loop breaks and calls terminate_tree, then drains only queued lines; output written by descendants after that point can be intentionally truncated while the log is still marked usable.
- Confirm actionlint failure means workflow syntax or expression validity is not proven by this review packet.
- Confirm the leaked-descendant unit test expects status 0 although its POSIX shell normally exits 124 after the background sleep remains.
Evidence gaps
- Windows termination behavior remains the principal sibling-path gap: Linux tests use shell/background processes, while the claimed whole-tree guarantee depends on OwnedProcess::terminate_tree using a Job Object.
- The main security claim depends on OwnedProcess providing actual Windows Job Object containment; the supplied evidence is advisory and hosted Windows wiring is not shown.
- The claimed Windows Job Object termination and hosted workflow wiring remain unverified by the available evidence.
- Windows Job Object behavior and hosted step wiring are not demonstrated by the available review evidence.
- The PR explicitly lacks proof for the Windows Job Object path and hosted workflow wiring.
- The tests establish runner logic on Unix but do not directly exercise Windows OwnedProcess/Job Object assignment or descendant termination.
- The PR's strongest source-route claim still requires a hosted Windows execution witness.
|
Terminal observation for the existing Windows Advisory run 39866369241 / full job 120129769081, checked 2026-10-23 00:53 UTC. Subject and native outcome:
Runner/output evidence:
Reusable, bounded #9736 / #9660 row evidence:
The This is reusable native evidence for the listed #9736 subset on the executed descendant, for the canonical #9660 owner record. It does not rehabilitate cancelled original run 39836520247, close all of #9660, establish the later #9822 rows, or resolve the separate #9688 doctor/eval-sweep limitation. The latest #9660 owner update remains applicable to that later scope. No new dispatch, rerun, writer, label action, cancellation, merge or closure was performed for this observation. The already-produced full advisory artifact was finalized in the job log; no artifact was downloaded. |
|
Owner continuation for the remaining Windows evidence, 2026-10-23 03:48 UTC. Owner / governing claim: @EffortlessSteven, retain the existing #9840 author lane ( Candidate / review: #9840 remains Draft at Validation reused: paired receipt 6354750369 is terminal on actual raw checkout b373ced: Cargo 101/101, 16 repeated failures plus one unstable row. Its streamed output and 15-second post-exit drain branch are observed. No 70-minute deadline fired and no status 124 was recorded. Earlier #9736 rows pass/pass are reusable within their scope, not #9822 proof. The original #9822 cancelled receipt remains unchanged. New evidence reduces the requested work: the already-completed #9812 run 39873139606 checked out f81fd10, containing #9822 squash e0b147f with unchanged product/test blobs. The recovered native row receipt now supplies doctor injected-refusal, parity, gitfile, owner-pin and scoped printed-path PASS rows, plus the expected named ACL refusals. All four shards remain native 100 with 13 failures overall. There is no reason to repeat the full #9822 qualification merely to recover those rows. Next smallest proof action / canonical owner: one bounded synthetic native Windows forced-deadline control of this runner's real entry point, on the frozen candidate. Its CLI already accepts
A timeout banner, status 124 alone, or the prior post-exit-drain message is insufficient for descendant cleanup. Preserve failed/partial outcomes. Execute through the existing owner on an authorized native Windows executor; if a focused probe must be added to the candidate, keep it in this branch's repair wave and obtain independent exact-head review plus relevant integration checks before promotion. Source inspection confirms the existing synthetic deadline/leak tests are Unix-only, so rerunning Linux cannot close this gap. #9812's separate shell watchdog is not this runner's forced-deadline witness. Blocking / resume: native controlled execution and final-head independent review are pending; no owner acknowledgment is claimed. A repository-wide active-run CLI GET returned bare Forbidden (not a rate-limit diagnosis), and owner cloud-task listing failed at transport. Both outcomes were preserved without retry or credential changes. Named #9822, #9840 and #9812 runs were independently read as terminal through the connected GitHub tool; other active jobs remain unverified. Reconcile any same-claim running job before admitting the focused control. No new dispatch, rerun, cancellation, writer, label change, Ready transition, merge, artifact access or protection access was performed. Retain Draft until the claimed native bounds, findings and integration/review prerequisites are satisfied. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Scoped source review of PR #9840; inspected commit b373ced79915dc65db753bbd2d3aa92dc11ac056, tree b752880aed09e37ed4d781431ba1c987538e78c0, PR base 5a7f7eff1c16cf5358998a5c9d7e6c96c0d472b7. Observation: 2026-10-23 16:46 UTC. This is a source-bound review of the retrieved snapshot, not final current-head clearance.
Disposition: REPAIR_REQUIRED for the source findings below; merge review remains REVIEW_INCOMPLETE. Preserve the existing author lane and Draft. No replacement custody, candidate edit, build, dispatch, rerun, cancellation, runner change or merge was performed.
Three new source findings are attached inline: unbounded re-wait after termination error (P1), sink delivery blocking deadline observation (P1), and discarded output I/O failures (P2). They are source findings, not newly executed native Windows failures.
Existing evidence reused, independently inspected. Run 39866369241/job 120129769081 prints the actual checkout b373ced79915dc65db753bbd2d3aa92dc11ac056 at 22:39:12.793Z. Both repeats emitted the five platform-neutral runner test PASS rows; the Unix-only runner deadline/leak/order/exit controls were not selected on Windows. Raw verdict lines at 00:35:56Z report Cargo 101/101 and 19008 pass/16 fail, 19007 pass/17 fail. The 00:04:03.923Z message observes the 15-second post-exit drain branch. Artifact upload finalized ID 12469692767; its archive was not downloaded. These corroborate the existing paired receipt, including its explicit native-proof limits. No new full qualification is warranted to repeat these observations.
Cancellation and proof boundary. Workflow source uses !cancelled() for later tests/summaries and always() for log upload; that expresses partial-evidence retention intent, not an observed cancellation receipt. The runner has no cancellation observation/handler, and the process owner's comments explicitly state that Job Object kill-on-close is off. Normal Rust Drop cleanup cannot by itself establish abrupt runner-process termination behavior. GitHub's cancellation sequence uses signals/control events followed by external tree termination; that platform cleanup must not be credited as this runner's own forced-deadline proof. No leak on cancellation is asserted from source alone. Preserve the existing owner's pending native forced-deadline control and add controlled runner cancellation/termination to the native evidence denominator if cancellation containment is claimed.
Prior review dispositions. Duplicate options do overwrite earlier values; this is not exercised by the fixed single-occurrence workflow arguments and remains an explicit CLI-contract decision for the owner. The leaked-pipe test's expected shell status 0 is consistent with sh -c 'sleep 120 & echo finished': a local bounded shell control with only the sleep reduced to 1 second observed primary status 0 after 0.011s and pipe EOF at 1.002s. That refutes the claimed inherent shell status 124; it is only POSIX shell evidence. The post-grace drain intentionally takes queued lines and can truncate pipe bytes, as already disclosed; it does not prove an inventory of terminated Windows descendants. The hosted job demonstrates acceptance/execution of its workflow path; no actionlint result is claimed.
Checks and limits. All eight changed paths, full runner, command routing/catalog, OwnedProcess, summarizer, docs/changelog, process allowance and workflow retention/deadline guards were inspected from committed objects. git diff --check 5a7f7eff...b373ced7 passed. Existing connector reads returned two successful classic statuses and PR-triggered workflows with CI/Windows/other lanes skipped; these are not a complete required-check clearance. Rust/Cargo/actionlint/native Windows are unavailable on this cloud host; no installations or builds were attempted. The broader CLI read gh pr view ... --json ...statusCheckRollup returned Post "https://api.github.com/graphql": Forbidden; that denied operation was not retried or routed around. Consequently complete live required checks and a later posting-time head refresh are unverified. No final-current-head or merge eligibility claim is made.
Next executable step / custody. The existing integrating owner should accept or refute these source findings on the current candidate, repair through the same author lane, refresh affected focused review/proof, then use the already-described bounded native Windows deadline/descendant/sentinel receipt. Parent/lead coordinates custody and landing. A full paired Windows rerun, second writer or dispatch is not requested by this contribution.
…utput delivery and refuse incomplete output (#9272) Address the review of b373ced: bound the post-termination observation and report unconfirmed termination, deliver the job log from its own bounded queue, withhold the status when the pipe or log file failed, refuse duplicate options, and add a native Windows forced-deadline control behind a dispatch-only input. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PrRRMBXfD85Xo2kQ9La4AV
|
Owner disposition for the b373ced review, repaired at head
Local: Not yet established: the Windows result above, and a fresh exact-head independent review of this repair. Generated by Claude Code |
|
Native Windows forced-deadline control: PASS on head What this establishes: the real Not established: the descendant was checked by pid via Next: independent exact-head review of 31b4e11, then ready, Generated by Claude Code |
There was a problem hiding this comment.
Verification questions
- Confirm runner_probe_only gates the main and subset advisory jobs but does not gate every job in the workflow, so a probe dispatch may still execute unrelated jobs unless their conditions independently exclude workflow_dispatch.
- Confirm the Windows-native forced-deadline test is the decisive check for whole-tree termination and non-interference with an unrelated sentinel process.
- Confirm the workflow uses inputs.runner_probe_only in both full-lane job conditions, but GitHub inputs context is primarily populated for workflow_dispatch; the surrounding condition does not explicitly guard the event.
- Confirm no repository test proves the edited workflow passes the intended runner arguments and that only the native probe job runs in runner_probe_only mode.
- Confirm the Windows-native test proves that an auxiliary process dies, but not that it is a descendant retaining the runner's output pipe.
- Confirm the runner's status file is withheld on output faults, but the workflow still exits 0 and relies on a later summarizer to refuse missing evidence; this is intentional advisory behavior, not evidence of a passing test.
- Confirm the adjacent
windows-advisory-summarypath remains separate from the new runner: it consumes retained logs and status files, while the runner produces them. - Confirm the native test would pass even if Job Object termination killed the primary but not the auxiliary process if tasklist reported the PID incorrectly.
Refuted
- The shared output pipe may expose a stale or partially resized active view of the child's output.; refuted because: The reader sends owned Vec chunks over a channel, and the supervisor consumes each chunk before handling it. There is no ArrayBuffer/TypedArray, resize operation, detach/transfer, or shared backing store; the sink queue is bounded by dropping queued chunks rather than exposing a truncated buffer.
Evidence gaps
- Windows-native whole-tree termination remains an unproven sibling route: the repository provides a native probe, but this packet contains no successful probe receipt.
- The Windows forced-deadline control is the material executable evidence for whole-tree termination; Linux unit tests do not establish Job Object behavior.
- Model proof intent was rejected by deterministic validation.
…ounded reap cannot hang it (#9272) Address the exact-head review of 31b4e11: terminate_tree and OwnedProcess drop both end in an unbounded reap, so the call now runs on a thread that owns the child and is abandoned after twice the observation budget. Also withhold the status on the spawn-failure path after a log fault, wait briefly for in-flight output after terminating pipe holders, and make the native Windows test clean up its sentinel first. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PrRRMBXfD85Xo2kQ9La4AV
|
Review of record input for Prior findings: duplicate options fixed; job-log delivery off the deadline path fixed; output I/O faults fixed (gap below); termination bound partly fixed.
Local: Generated by Claude Code |
|
Native Windows forced-deadline control on head Same limits as the first native run: the descendant check is a Taking the PR out of draft and requesting the required check. 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! |
… action-count policies (#9272) The required Rust tests rejected the probe job's if: (every job must admit the merge-ready labeled event) and the third rust-cache and toolchain action in windows-advisory.yml. Reshape the guard and drop both actions; the pinned rust-toolchain.toml selects 1.95. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PrRRMBXfD85Xo2kQ9La4AV
|
|
|
Required check on Fixed at Generated by Claude Code |
…-wn73zi # Conflicts: # docs/CI.md
|
Required check on Generated by Claude Code |
|
Review of record, head Angles: two independent read-only reviews (correctness/edge cases; workflow/contract), a native Windows control, and local gates. Findings and resolutions:
Evidence: native Windows probe PASS on 31b4e11, cd85566 and 7b90b85 (status 124, Generated by Claude Code |
Governing issue or accepted claim: #9272 (evidence #9660)
Acceptance delta (one sentence): a hung or leaking test in the single-job Windows advisory lane ends at a runner-enforced deadline with the whole process tree terminated, the job log shows output as it arrives, and a timeout names the tests still running.
Problem
Two full
windows-advisoryjobs (119992784688, 120026188944) ran for hours past the 75-minute step limit with no output. The steps redirect cargo's output to a file andcatit afterwards, so a step that never ends publishes nothing, and the hostedtimeout-minutesdid not stop the process tree. (The redirect replaced| teebecause a leaked child holds a pipe open; that part stays.)Change
cargo xtask windows-advisory-run --timeout-minutes <n> --log <path> --status <path> -- <program> [args...]. It spawns the command under the repo'sOwnedProcess(a Job Object on Windows) and:--log;windows-advisory.yml: the three test steps (--no-default-featurestests, workspace run 1 and 2) use it with deadlines of 40, 70 and 70 minutes, below their 45/75/75 step limits, which stay as a backstop. A new "Build advisory step runner" step copiesxtask.exetotarget/advisory-run/first, becausecargo test --workspacerebuildsxtask.exeand Windows will not replace a running image. Job cap sum is still under 270.docs/CI.md, command catalog entry (ci_enforcedfalse: the lane shields it withexit 0), changelog fragment.Not in this PR
The sharded lane (
windows-advisory-shards.yml) and its watchdog belong to the Windows test verdict thread. No test is skipped or disabled. The failing-test clusters (#9659, #9660, #9661) are untouched.Proof
cargo test -p xtask windows_advisory_run: 7 pass on Linux, including a deadline kill that namesstuck::forever, a leaked descendant that would otherwise hold the step, a normal exit with streamed output identical to the log file, and a missing program.cargo xtask precommitpasses.Windows Advisorydispatch on this branch is the proof and will be posted here.Generated by Claude Code