Skip to content

test: widen R9's receive window so a loaded run can't end the parent first - #451

Open
ChrisKrawczyk wants to merge 2 commits into
mainfrom
test/r9-receive-window
Open

ChrisKrawczyk wants to merge 2 commits into
mainfrom
test/r9-receive-window

Conversation

@ChrisKrawczyk

Copy link
Copy Markdown
Collaborator

R9 in workflow-child-runtime.test.js failed in a full Linux run of ./scripts/run-tests.sh: "Timed out waiting for run … to reach completed; last=cancelled". It passes alone.

Cause. The parent's after_recv step waits only 4 s for the child's WorkflowEnded@1 notice. Under full-suite load the released child can take longer to start, run its 1 s step and end. The window then elapses, the parent ends, and endWorkflowRunChildWorkflows correctly cancels the still-active child. This is a test timing bug, not a runtime bug.

Fix. Widen the window to 15 s. The step still elapses as the test expects, so R9 takes about 11 s longer.

Validation (Linux).

  • Delaying the child's release by 6 s reproduced the failure before this change; with it, R9 passes.
  • The whole file passes, 5 of 5.
  • Privacy check passes.

…first

R9's parent waits only 4 s for the child's WorkflowEnded notice. Under
full-suite load the released child can take longer to start and finish,
so the window elapses, the parent ends, and it correctly cancels its
still-active child. The test then times out with last=cancelled.

Widen the window to 15 s. Delaying the child's release by 6 s reproduced
the failure before this change and passes after it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cc944a13-3e0b-43de-8040-5863182bbdb0
Assert that the cut child's WorkflowEnded@1 was accepted while after_recv
could still take it (after it was entered and before its deadline), so a
late notice fails the test instead of letting step 5 pass without testing
anything. Give step 5 40 s to see the parent end.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cc944a13-3e0b-43de-8040-5863182bbdb0

This branch has not been deployed

No deployments
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.

2 participants