Skip to content

test(submit): bound the gated fakes and reap children before asserting (RIG-8606) - #57

Merged
rigel-nemo[bot] merged 1 commit into
rigel-releasefrom
ci-pipelines/rig-8606-bound-the-gated-fakes-and-reap-children
Nov 17, 2026
Merged

rigel-nemo[bot] merged 1 commit into
rigel-releasefrom
ci-pipelines/rig-8606-bound-the-gated-fakes-and-reap-children

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this do

Fixes three low-severity review findings on the event-gated shared-deadline test in src/submit/stack_link.rs, which landed in #56.

Why do we need it

The review of #56 found three gaps. The test could hang if a release never came. A failed assertion could leave a child running while its temporary directory was deleted. And the comment did not say what happens if the budget is too small.

Summary

  • PHASE_BUDGET doc: the ungated jj calls must finish within it. An overrun fails the wrong stage loudly and cannot pass falsely.
  • The fake jj and gh-stack wait loops stop after 600 polls (about 30 s), matching the sleep 30 the other fakes in this file use.
  • The parent waits for every child before it checks any assertion.

Verification

Run with the pinned nightly toolchain:

  • cargo fmt --check: clean.
  • cargo clippy --all-targets: no new warnings in the changed lines.
  • cargo test --features no-e2e-tests: 473 passed, 0 failed, 6 ignored.
  • Red check: with a fresh gh-stack deadline, the test still fails with got Linked.

Risks

Test-only change.

Spec impact

Spec-impact: none

Checks skipped: jj-vine has no pre-push hook config on rigel-release; GitHub Actions ci.yml runs its checks (RIG-10545)

Refs RIG-8606

Co-authored-by: Matt Wilkinson matt@rigel.build

…g (RIG-8606)

Refs RIG-8606

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Nov 17, 2026

Copy link
Copy Markdown

RIG-8606

@rigel-mintaka

Copy link
Copy Markdown
Contributor Author

All-clear at 1a699a4
Base: rigel-release

All-clear at 1a699a4

This follows up the review of #56. The diff against the #56 merge (702004a) is exactly the three low findings:

  • L1: the PHASE_BUDGET doc now says the ungated jj calls must finish within it.
  • L2: both fake expired wait loops are capped at 600 polls (about 30s).
  • L3: every child is reaped before any assertion.

fmt is clean, and clippy shows only the existing warning class. The suite with --features no-e2e-tests is 473 pass, 0 fail. The fresh-budget mutation still fails the test.

@rigel-nemo

rigel-nemo Bot commented Nov 17, 2026

Copy link
Copy Markdown

Checks read:

@rigel-nemo
rigel-nemo Bot merged commit 30b6183 into rigel-release Nov 17, 2026
12 checks passed
@rigel-nemo
rigel-nemo Bot deleted the ci-pipelines/rig-8606-bound-the-gated-fakes-and-reap-children branch November 17, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant