Repository navigation
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
Open
ChrisKrawczyk wants to merge 2 commits into
ChrisKrawczyk wants to merge 2 commits into
Conversation
…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
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.
R9 in
workflow-child-runtime.test.jsfailed 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_recvstep waits only 4 s for the child'sWorkflowEnded@1notice. 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, andendWorkflowRunChildWorkflowscorrectly 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).