test(e2e): add a cancel-fork test · zigflow/zigflow@11da2ca · GitHub
Skip to content

Commit 11da2ca

Browse files
YJ-928claude
andcommitted
test(e2e): add a cancel-fork test
Cancels a workflow while a non-competing fork's two branches are waiting, and checks the workflow and both branches close as CANCELED and the task after the fork never runs. On main both branches close as TERMINATED. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Yash B Joshi <68319416+YJ-928@users.noreply.github.com>
1 parent 0edd880 commit 11da2ca

3 files changed

Lines changed: 201 additions & 0 deletions

File tree

Lines changed: 179 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
document:
2+
dsl: 1.0.0
3+
taskQueue: cancel-fork
4+
workflowType: workflow
5+
version: 0.0.1
6+
do:
7+
- before:
8+
set:
9+
stage: before
10+
- parallel:
11+
fork:
12+
branches:
13+
- left:
14+
wait:
15+
minutes: 10
16+
- right:
17+
wait:
18+
minutes: 10
19+
- after:
20+
set:
21+
stage: after_fork_ran

‎tests/e2e/tests/tests.go‎

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)