Skip to content

test(submit): event-gate the stack_link shared-deadline test (RIG-8606) - #56

Merged
rigel-nemo[bot] merged 1 commit into
rigel-releasefrom
ci-pipelines/rig-8606-event-gate-the-stack-link-shared
Nov 17, 2026
Merged

rigel-nemo[bot] merged 1 commit into
rigel-releasefrom
ci-pipelines/rig-8606-event-gate-the-stack-link-shared

Conversation

@rigel-mintaka

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

Copy link
Copy Markdown
Contributor

What does this do

Rewrites graph_jj_calls_and_gh_stack_share_one_deadline so it no longer depends on wall-clock sleeps. The fake jj and gh-stack scripts block until the test releases them, which happens only after the shared deadline has passed.

Why do we need it

The old test used 0.4 s jj sleeps and a 3.5 s gh-stack sleep inside a 4 s budget. Under load, the graph rebuild used the whole budget, and the test saw the wrong warning.

Summary

  • graph mode gates the second graph jj call. gh mode gates gh-stack. A thread creates an expired file at the deadline to release them.
  • The shared deadline is 5 s. The runner's budget is 1 h, so a component given a fresh budget would succeed and fail the test.
  • The test still checks that gh-stack and its descendant are killed. Both modes run in parallel. The kill tests in process.rs stay as they are.

Verification

Run with the pinned nightly toolchain:

  • cargo fmt --check: clean.
  • cargo clippy --all-targets: only the existing too_many_lines class.
  • cargo test --features no-e2e-tests: 473 passed, 0 failed. The forge e2e tests need credentials and were not run.
  • 50 runs of the target test, started together with three full background cargo test runs: 50/50 passed.
  • Red check: with a fresh gh-stack deadline, the test fails with got Linked. Reverted.

Risks

Test-only change. The test waits out a 5 s budget once.

Stepped up from implement-rust after 14 min of reading with no edits.

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

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-nemo

rigel-nemo Bot commented Nov 17, 2026

Copy link
Copy Markdown

Checks read:

@rigel-nemo
rigel-nemo Bot merged commit 702004a into rigel-release Nov 17, 2026
12 checks passed
@rigel-nemo
rigel-nemo Bot deleted the ci-pipelines/rig-8606-event-gate-the-stack-link-shared branch November 17, 2026 16:41
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