-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Honor all non-completion commands (#569)
* Honor commands generated after the first completion command
- Loading branch information
1 parent
a839196
commit 50914c4
Showing
6 changed files
with
453 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Submodule sdk-core
updated
17 files
+1 −1 | Cargo.toml | |
+42 −15 | client/src/lib.rs | |
+10 −6 | client/src/raw.rs | |
+4 −3 | core/Cargo.toml | |
+3 −3 | core/src/abstractions.rs | |
+1 −1 | core/src/core_tests/determinism.rs | |
+87 −21 | core/src/core_tests/workflow_tasks.rs | |
+17 −7 | core/src/internal_flags.rs | |
+1 −10 | core/src/pollers/poll_buffer.rs | |
+3 −3 | core/src/test_help/mod.rs | |
+1 −4 | core/src/worker/activities/local_activities.rs | |
+1 −4 | core/src/worker/mod.rs | |
+7 −1 | core/src/worker/workflow/machines/workflow_machines.rs | |
+214 −14 | core/src/worker/workflow/managed_run.rs | |
+1 −11 | core/src/worker/workflow/mod.rs | |
+8 −0 | sdk-core-protos/src/history_builder.rs | |
+131 −5 | tests/integ_tests/client_tests.rs |
This file contains 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
This file contains 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
113 changes: 113 additions & 0 deletions
113
tests/worker/test_replayer_command_reordering_backward_compatibility.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"eventId": "1", | ||
"eventTime": "2024-08-02T23:35:00.061520Z", | ||
"eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", | ||
"taskId": "1049558", | ||
"workflowExecutionStartedEventAttributes": { | ||
"workflowType": { | ||
"name": "UpdateCompletionAfterWorkflowReturn" | ||
}, | ||
"taskQueue": { | ||
"name": "tq", | ||
"kind": "TASK_QUEUE_KIND_NORMAL" | ||
}, | ||
"workflowTaskTimeout": "10s", | ||
"originalExecutionRunId": "a32ce0cb-b50e-4734-b003-784dda811861", | ||
"identity": "[email protected]", | ||
"firstExecutionRunId": "a32ce0cb-b50e-4734-b003-784dda811861", | ||
"attempt": 1, | ||
"firstWorkflowTaskBackoff": "0s", | ||
"workflowId": "wf-dd1e2267-d1bf-4822-be38-2a97a499331e" | ||
} | ||
}, | ||
{ | ||
"eventId": "2", | ||
"eventTime": "2024-08-02T23:35:00.070867Z", | ||
"eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", | ||
"taskId": "1049559", | ||
"workflowTaskScheduledEventAttributes": { | ||
"taskQueue": { | ||
"name": "tq", | ||
"kind": "TASK_QUEUE_KIND_NORMAL" | ||
}, | ||
"startToCloseTimeout": "10s", | ||
"attempt": 1 | ||
} | ||
}, | ||
{ | ||
"eventId": "3", | ||
"eventTime": "2024-08-02T23:35:00.155562Z", | ||
"eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", | ||
"taskId": "1049564", | ||
"workflowTaskStartedEventAttributes": { | ||
"scheduledEventId": "2", | ||
"identity": "[email protected]", | ||
"requestId": "b03f25fb-b2ab-4b93-b2ad-0f6899f6e2e2", | ||
"historySizeBytes": "260" | ||
} | ||
}, | ||
{ | ||
"eventId": "4", | ||
"eventTime": "2024-08-02T23:35:00.224744Z", | ||
"eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", | ||
"taskId": "1049568", | ||
"workflowTaskCompletedEventAttributes": { | ||
"scheduledEventId": "2", | ||
"startedEventId": "3", | ||
"identity": "[email protected]", | ||
"workerVersion": { | ||
"buildId": "17647b02191ec9e4e58b623a9c71f20a" | ||
}, | ||
"sdkMetadata": { | ||
"coreUsedFlags": [ | ||
1, | ||
2 | ||
] | ||
}, | ||
"meteringMetadata": {} | ||
} | ||
}, | ||
{ | ||
"eventId": "5", | ||
"eventTime": "2024-08-02T23:35:00.242507Z", | ||
"eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED", | ||
"taskId": "1049569", | ||
"workflowExecutionUpdateAcceptedEventAttributes": { | ||
"protocolInstanceId": "my-update", | ||
"acceptedRequestMessageId": "my-update/request", | ||
"acceptedRequestSequencingEventId": "2", | ||
"acceptedRequest": { | ||
"meta": { | ||
"updateId": "my-update", | ||
"identity": "[email protected]" | ||
}, | ||
"input": { | ||
"name": "my_update" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"eventId": "6", | ||
"eventTime": "2024-08-02T23:35:00.258465Z", | ||
"eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", | ||
"taskId": "1049570", | ||
"workflowExecutionCompletedEventAttributes": { | ||
"result": { | ||
"payloads": [ | ||
{ | ||
"metadata": { | ||
"encoding": "anNvbi9wbGFpbg==", | ||
"encodingDecoded": "json/plain" | ||
}, | ||
"data": "workflow-result" | ||
} | ||
] | ||
}, | ||
"workflowTaskCompletedEventId": "4" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.