Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for child wf cancel and update #1214

Merged

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

@Quinn-With-Two-Ns Quinn-With-Two-Ns commented Aug 29, 2023

@alexshtin Reported a non determinism in a test tool. The failings workflow event history was very long, but the section that failed was similar to child-workflow-cancel-with-update.json. Specifically the sequence of events WorkflowTaskCompleted ,RequestCancelExternalWorkflowExecutionInitiated, WorkflowExecutionUpdateAccepted, ActivityTaskScheduled was causing non determinism about activity ID mismatch. The root cause was a Go SDK counting bug because the SDK was not accounting for the command that resulted in RequestCancelExternalWorkflowExecutionInitiated because the command was not being generated when the workflow was cancelling.

I already, unintentionally, fixed this bug in this commit. If you try to run this history on an older SDK release it will fail because the SDK is not counting the command that resulted in RequestCancelExternalWorkflowExecutionInitiated

I created this test as a replay test because I could not reliably generate the scenario that causes this sequence of events with an integration test so I manually wrote this history.

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner August 29, 2023 04:25
@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit a7f9cdf into temporalio:master Aug 29, 2023
6 checks passed
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