Repository navigation
Bound release-test children and reap escaped Harness descendants - #1063
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release fixtures now fail with captured stdout/stderr when fake CI never finishes, and clean up every owned descendant even if the fixture process is killed. Production release polling and rerun resumption are unchanged.
The shared child-lifetime helper from #736 supplies the immediate child's parent-death signal. Release commands, sourced script functions and release-note scripts now use a 120-second test deadline. File-backed stdio keeps input writes and inherited output descriptors from blocking the deadline.
Closes #737
Evidence
cargo test --test release lifetime::missing_workflows_fail_with_captured_output_within_five_seconds -- --exact --nocapturefailed after 5.04s because the release fixture was still polling.After: the retained full-script lifecycle tests cover missing and pending runs at both CI and release-workflow waits, with a 500ms deadline and a five-second supervisor bound. Normal completion, assertion unwinding and fixture SIGKILL also pass.
release summary CLI 1798286 survived fixture timeout).After: the guardian adopts descendants across process groups.
cargo test --test release lifetime::release_summary_harness_ -- --nocaptureindependently passed both retained regressions, including fixture SIGKILL.cargo test --test release lifetime:: -- --nocapture: 9 passed, 2 ignored.cargo clippy --all-targets -- -D warningsand formatting checks passed./usr/bin/time -p scripts/affected-tests mainselectedcargo nextest run: 2,237 passed, 50 skipped. Test execution took 1,062.658s; total wall time was 1,101.46s (18m21s), including 37.54s compilation. The full suite includesfailing_checks_leave_the_pr_open_with_no_tagand the existing release resumption cases.27aaa13: Linux full Rust suite, formatting, clippy, release-generator checks, site, Console, and the macOS gate.Test seams
Review coverage
Independent Standards and Spec reviews used
mainas the fixed point, then reviewed the descendant-cleanup correction. Both read all four changed files:docs/testing.md,tests/release.rs,tests/release/lifetime.rs, andtests/support/child_lifetime.rs. Unread changed files: none. Generated-output exclusions: none.Spec S1 was reproduced as written, fixed, and retained as timeout/SIGKILL regressions. No remaining Spec findings.
Unaddressed findings
Standards
tests/support/child_lifetime.rs. The follow-up Standards reviewer agreed this deferral is reasonable and identified no behavior defect or required correction. This implementation-scope decision needs no Spec or Day shift ruling.Spec
None.
Security
None.
Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Test infrastructure and documentation only; production release code is unchanged.
Blast Radius: tests
The new descendant guardian runs only for Linux release fixtures. Existing setup lifetime enforcement remains unchanged.
Built with codex · gpt-6.1-sol · xhigh