@workflow/world-testing 4.1.29 → 4.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -53249,7 +53249,7 @@ init_dist();
|
|
|
53249
53249
|
init_node();
|
|
53250
53250
|
|
|
53251
53251
|
// ../core/dist/version.js
|
|
53252
|
-
var version2 = "4.8.
|
|
53252
|
+
var version2 = "4.8.15";
|
|
53253
53253
|
|
|
53254
53254
|
// ../core/dist/runtime/world.js
|
|
53255
53255
|
var import_node_module = require("node:module");
|
|
@@ -72275,9 +72275,9 @@ var stepHandler = createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
72275
72275
|
stepName,
|
|
72276
72276
|
message: stepFailErr.message
|
|
72277
72277
|
});
|
|
72278
|
-
|
|
72278
|
+
} else {
|
|
72279
|
+
throw stepFailErr;
|
|
72279
72280
|
}
|
|
72280
|
-
throw stepFailErr;
|
|
72281
72281
|
}
|
|
72282
72282
|
span?.setAttributes({
|
|
72283
72283
|
...StepStatus("failed"),
|
|
@@ -72322,9 +72322,9 @@ var stepHandler = createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
72322
72322
|
stepName,
|
|
72323
72323
|
message: err.message
|
|
72324
72324
|
});
|
|
72325
|
-
|
|
72325
|
+
} else {
|
|
72326
|
+
throw err;
|
|
72326
72327
|
}
|
|
72327
|
-
throw err;
|
|
72328
72328
|
}
|
|
72329
72329
|
span?.setAttributes({
|
|
72330
72330
|
...StepStatus("failed"),
|
|
@@ -72357,10 +72357,9 @@ var stepHandler = createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
72357
72357
|
}
|
|
72358
72358
|
}, { requestId });
|
|
72359
72359
|
} catch (failErr) {
|
|
72360
|
-
if (EntityConflictError.is(failErr)) {
|
|
72361
|
-
|
|
72360
|
+
if (!EntityConflictError.is(failErr)) {
|
|
72361
|
+
throw failErr;
|
|
72362
72362
|
}
|
|
72363
|
-
throw failErr;
|
|
72364
72363
|
}
|
|
72365
72364
|
await queueMessage(world, getWorkflowQueueName(workflowName, stepNamespace), {
|
|
72366
72365
|
runId: workflowRunId,
|
|
@@ -72477,9 +72476,9 @@ var stepHandler = createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
72477
72476
|
stepName,
|
|
72478
72477
|
message: stepFailErr.message
|
|
72479
72478
|
});
|
|
72480
|
-
|
|
72479
|
+
} else {
|
|
72480
|
+
throw stepFailErr;
|
|
72481
72481
|
}
|
|
72482
|
-
throw stepFailErr;
|
|
72483
72482
|
}
|
|
72484
72483
|
span?.setAttributes({
|
|
72485
72484
|
...StepStatus("failed"),
|
|
@@ -72521,9 +72520,9 @@ var stepHandler = createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
72521
72520
|
stepName,
|
|
72522
72521
|
message: stepFailErr.message
|
|
72523
72522
|
});
|
|
72524
|
-
|
|
72523
|
+
} else {
|
|
72524
|
+
throw stepFailErr;
|
|
72525
72525
|
}
|
|
72526
|
-
throw stepFailErr;
|
|
72527
72526
|
}
|
|
72528
72527
|
span?.setAttributes({
|
|
72529
72528
|
...StepStatus("failed"),
|
|
@@ -72637,12 +72636,21 @@ var stepHandler = createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
72637
72636
|
serializeTraceCarrier()
|
|
72638
72637
|
]);
|
|
72639
72638
|
if (stepCompleted409) {
|
|
72640
|
-
|
|
72639
|
+
span?.setAttributes({
|
|
72640
|
+
...StepSkipped(true),
|
|
72641
|
+
...StepSkipReason("completed")
|
|
72642
|
+
});
|
|
72643
|
+
span?.addEvent?.("step.skipped", {
|
|
72644
|
+
"skip.reason": "terminal_state",
|
|
72645
|
+
"step.name": stepName,
|
|
72646
|
+
"step.id": stepId
|
|
72647
|
+
});
|
|
72648
|
+
} else {
|
|
72649
|
+
span?.setAttributes({
|
|
72650
|
+
...StepStatus("completed"),
|
|
72651
|
+
...StepResultType(typeof result)
|
|
72652
|
+
});
|
|
72641
72653
|
}
|
|
72642
|
-
span?.setAttributes({
|
|
72643
|
-
...StepStatus("completed"),
|
|
72644
|
-
...StepResultType(typeof result)
|
|
72645
|
-
});
|
|
72646
72654
|
await queueMessage(world, getWorkflowQueueName(workflowName, stepNamespace), {
|
|
72647
72655
|
runId: workflowRunId,
|
|
72648
72656
|
traceCarrier,
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"steps": {
|
|
4
|
-
"workflows/
|
|
5
|
-
"
|
|
6
|
-
"stepId": "step//./workflows/
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
"workflows/event-limit.ts": {
|
|
10
|
-
"tick": {
|
|
11
|
-
"stepId": "step//./workflows/event-limit//tick"
|
|
4
|
+
"workflows/null-byte.ts": {
|
|
5
|
+
"nullByteStep": {
|
|
6
|
+
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
12
7
|
}
|
|
13
8
|
},
|
|
14
9
|
"workflows/retriable-and-fatal.ts": {
|
|
@@ -19,14 +14,9 @@
|
|
|
19
14
|
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
20
15
|
}
|
|
21
16
|
},
|
|
22
|
-
"workflows/
|
|
23
|
-
"
|
|
24
|
-
"stepId": "step//./workflows/
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"workflow/dist/stdlib.js": {
|
|
28
|
-
"fetch": {
|
|
29
|
-
"stepId": "step//workflow@4.8.14//fetch"
|
|
17
|
+
"workflows/addition.ts": {
|
|
18
|
+
"add": {
|
|
19
|
+
"stepId": "step//./workflows/addition//add"
|
|
30
20
|
}
|
|
31
21
|
},
|
|
32
22
|
"workflow/dist/internal/builtins.js": {
|
|
@@ -40,28 +30,38 @@
|
|
|
40
30
|
"stepId": "__builtin_response_text"
|
|
41
31
|
}
|
|
42
32
|
},
|
|
43
|
-
"workflows/
|
|
44
|
-
"
|
|
45
|
-
"stepId": "step//./workflows/
|
|
33
|
+
"workflows/event-limit.ts": {
|
|
34
|
+
"tick": {
|
|
35
|
+
"stepId": "step//./workflows/event-limit//tick"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"workflow/dist/stdlib.js": {
|
|
39
|
+
"fetch": {
|
|
40
|
+
"stepId": "step//workflow@4.8.15//fetch"
|
|
46
41
|
}
|
|
47
42
|
},
|
|
48
43
|
"workflows/noop.ts": {
|
|
49
44
|
"noop": {
|
|
50
45
|
"stepId": "step//./workflows/noop//noop"
|
|
51
46
|
}
|
|
47
|
+
},
|
|
48
|
+
"workflows/hooks.ts": {
|
|
49
|
+
"writeEvent": {
|
|
50
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"workflows": {
|
|
55
|
-
"workflows/
|
|
56
|
-
"
|
|
57
|
-
"workflowId": "workflow//./workflows/
|
|
55
|
+
"workflows/null-byte.ts": {
|
|
56
|
+
"nullByteWorkflow": {
|
|
57
|
+
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
58
58
|
"graph": {
|
|
59
59
|
"nodes": [
|
|
60
60
|
{
|
|
61
61
|
"id": "start",
|
|
62
62
|
"type": "workflowStart",
|
|
63
63
|
"data": {
|
|
64
|
-
"label": "Start:
|
|
64
|
+
"label": "Start: nullByteWorkflow",
|
|
65
65
|
"nodeKind": "workflow_start"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"id": "node_0",
|
|
70
70
|
"type": "step",
|
|
71
71
|
"data": {
|
|
72
|
-
"label": "
|
|
72
|
+
"label": "nullByteStep",
|
|
73
73
|
"nodeKind": "step",
|
|
74
|
-
"stepId": "step//./workflows/
|
|
74
|
+
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
{
|
|
@@ -100,16 +100,16 @@
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"workflows/
|
|
104
|
-
"
|
|
105
|
-
"workflowId": "workflow//./workflows/
|
|
103
|
+
"workflows/retriable-and-fatal.ts": {
|
|
104
|
+
"retryableAndFatalErrorWorkflow": {
|
|
105
|
+
"workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
|
|
106
106
|
"graph": {
|
|
107
107
|
"nodes": [
|
|
108
108
|
{
|
|
109
109
|
"id": "start",
|
|
110
110
|
"type": "workflowStart",
|
|
111
111
|
"data": {
|
|
112
|
-
"label": "Start:
|
|
112
|
+
"label": "Start: retryableAndFatalErrorWorkflow",
|
|
113
113
|
"nodeKind": "workflow_start"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
@@ -117,12 +117,9 @@
|
|
|
117
117
|
"id": "node_0",
|
|
118
118
|
"type": "step",
|
|
119
119
|
"data": {
|
|
120
|
-
"label": "
|
|
120
|
+
"label": "stepThatThrowsRetryableError",
|
|
121
121
|
"nodeKind": "step",
|
|
122
|
-
"stepId": "step//./workflows/
|
|
123
|
-
},
|
|
124
|
-
"metadata": {
|
|
125
|
-
"loopId": "loop_0"
|
|
122
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
126
123
|
}
|
|
127
124
|
},
|
|
128
125
|
{
|
|
@@ -135,12 +132,6 @@
|
|
|
135
132
|
}
|
|
136
133
|
],
|
|
137
134
|
"edges": [
|
|
138
|
-
{
|
|
139
|
-
"id": "e_node_0_back_node_0",
|
|
140
|
-
"source": "node_0",
|
|
141
|
-
"target": "node_0",
|
|
142
|
-
"type": "loop"
|
|
143
|
-
},
|
|
144
135
|
{
|
|
145
136
|
"id": "e_start_node_0",
|
|
146
137
|
"source": "start",
|
|
@@ -157,16 +148,16 @@
|
|
|
157
148
|
}
|
|
158
149
|
}
|
|
159
150
|
},
|
|
160
|
-
"workflows/
|
|
161
|
-
"
|
|
162
|
-
"workflowId": "workflow//./workflows/
|
|
151
|
+
"workflows/addition.ts": {
|
|
152
|
+
"addition": {
|
|
153
|
+
"workflowId": "workflow//./workflows/addition//addition",
|
|
163
154
|
"graph": {
|
|
164
155
|
"nodes": [
|
|
165
156
|
{
|
|
166
157
|
"id": "start",
|
|
167
158
|
"type": "workflowStart",
|
|
168
159
|
"data": {
|
|
169
|
-
"label": "Start:
|
|
160
|
+
"label": "Start: addition",
|
|
170
161
|
"nodeKind": "workflow_start"
|
|
171
162
|
}
|
|
172
163
|
},
|
|
@@ -174,9 +165,9 @@
|
|
|
174
165
|
"id": "node_0",
|
|
175
166
|
"type": "step",
|
|
176
167
|
"data": {
|
|
177
|
-
"label": "
|
|
168
|
+
"label": "add",
|
|
178
169
|
"nodeKind": "step",
|
|
179
|
-
"stepId": "step//./workflows/
|
|
170
|
+
"stepId": "step//./workflows/addition//add"
|
|
180
171
|
}
|
|
181
172
|
},
|
|
182
173
|
{
|
|
@@ -205,16 +196,16 @@
|
|
|
205
196
|
}
|
|
206
197
|
}
|
|
207
198
|
},
|
|
208
|
-
"workflows/
|
|
209
|
-
"
|
|
210
|
-
"workflowId": "workflow//./workflows/
|
|
199
|
+
"workflows/event-limit.ts": {
|
|
200
|
+
"runawayWorkflow": {
|
|
201
|
+
"workflowId": "workflow//./workflows/event-limit//runawayWorkflow",
|
|
211
202
|
"graph": {
|
|
212
203
|
"nodes": [
|
|
213
204
|
{
|
|
214
205
|
"id": "start",
|
|
215
206
|
"type": "workflowStart",
|
|
216
207
|
"data": {
|
|
217
|
-
"label": "Start:
|
|
208
|
+
"label": "Start: runawayWorkflow",
|
|
218
209
|
"nodeKind": "workflow_start"
|
|
219
210
|
}
|
|
220
211
|
},
|
|
@@ -222,22 +213,12 @@
|
|
|
222
213
|
"id": "node_0",
|
|
223
214
|
"type": "step",
|
|
224
215
|
"data": {
|
|
225
|
-
"label": "
|
|
226
|
-
"nodeKind": "step",
|
|
227
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"id": "node_1",
|
|
232
|
-
"type": "step",
|
|
233
|
-
"data": {
|
|
234
|
-
"label": "writeEvent",
|
|
216
|
+
"label": "tick",
|
|
235
217
|
"nodeKind": "step",
|
|
236
|
-
"stepId": "step//./workflows/
|
|
218
|
+
"stepId": "step//./workflows/event-limit//tick"
|
|
237
219
|
},
|
|
238
220
|
"metadata": {
|
|
239
|
-
"loopId": "loop_0"
|
|
240
|
-
"loopIsAwait": true
|
|
221
|
+
"loopId": "loop_0"
|
|
241
222
|
}
|
|
242
223
|
},
|
|
243
224
|
{
|
|
@@ -251,26 +232,20 @@
|
|
|
251
232
|
],
|
|
252
233
|
"edges": [
|
|
253
234
|
{
|
|
254
|
-
"id": "
|
|
255
|
-
"source": "
|
|
235
|
+
"id": "e_node_0_back_node_0",
|
|
236
|
+
"source": "node_0",
|
|
256
237
|
"target": "node_0",
|
|
257
|
-
"type": "default"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"id": "e_node_1_back_node_1",
|
|
261
|
-
"source": "node_1",
|
|
262
|
-
"target": "node_1",
|
|
263
238
|
"type": "loop"
|
|
264
239
|
},
|
|
265
240
|
{
|
|
266
|
-
"id": "
|
|
267
|
-
"source": "
|
|
268
|
-
"target": "
|
|
241
|
+
"id": "e_start_node_0",
|
|
242
|
+
"source": "start",
|
|
243
|
+
"target": "node_0",
|
|
269
244
|
"type": "default"
|
|
270
245
|
},
|
|
271
246
|
{
|
|
272
|
-
"id": "
|
|
273
|
-
"source": "
|
|
247
|
+
"id": "e_node_0_end",
|
|
248
|
+
"source": "node_0",
|
|
274
249
|
"target": "end",
|
|
275
250
|
"type": "default"
|
|
276
251
|
}
|
|
@@ -278,16 +253,16 @@
|
|
|
278
253
|
}
|
|
279
254
|
}
|
|
280
255
|
},
|
|
281
|
-
"workflows/
|
|
282
|
-
"
|
|
283
|
-
"workflowId": "workflow//./workflows/
|
|
256
|
+
"workflows/noop.ts": {
|
|
257
|
+
"brokenWf": {
|
|
258
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
284
259
|
"graph": {
|
|
285
260
|
"nodes": [
|
|
286
261
|
{
|
|
287
262
|
"id": "start",
|
|
288
263
|
"type": "workflowStart",
|
|
289
264
|
"data": {
|
|
290
|
-
"label": "Start:
|
|
265
|
+
"label": "Start: brokenWf",
|
|
291
266
|
"nodeKind": "workflow_start"
|
|
292
267
|
}
|
|
293
268
|
},
|
|
@@ -295,9 +270,18 @@
|
|
|
295
270
|
"id": "node_0",
|
|
296
271
|
"type": "step",
|
|
297
272
|
"data": {
|
|
298
|
-
"label": "
|
|
273
|
+
"label": "noop",
|
|
299
274
|
"nodeKind": "step",
|
|
300
|
-
"stepId": "step//./workflows/
|
|
275
|
+
"stepId": "step//./workflows/noop//noop"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": "node_1",
|
|
280
|
+
"type": "step",
|
|
281
|
+
"data": {
|
|
282
|
+
"label": "noop",
|
|
283
|
+
"nodeKind": "step",
|
|
284
|
+
"stepId": "step//./workflows/noop//noop"
|
|
301
285
|
}
|
|
302
286
|
},
|
|
303
287
|
{
|
|
@@ -317,8 +301,14 @@
|
|
|
317
301
|
"type": "default"
|
|
318
302
|
},
|
|
319
303
|
{
|
|
320
|
-
"id": "
|
|
304
|
+
"id": "e_node_0_node_1",
|
|
321
305
|
"source": "node_0",
|
|
306
|
+
"target": "node_1",
|
|
307
|
+
"type": "default"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "e_node_1_end",
|
|
311
|
+
"source": "node_1",
|
|
322
312
|
"target": "end",
|
|
323
313
|
"type": "default"
|
|
324
314
|
}
|
|
@@ -326,16 +316,16 @@
|
|
|
326
316
|
}
|
|
327
317
|
}
|
|
328
318
|
},
|
|
329
|
-
"workflows/
|
|
330
|
-
"
|
|
331
|
-
"workflowId": "workflow//./workflows/
|
|
319
|
+
"workflows/hooks.ts": {
|
|
320
|
+
"collectWithHook": {
|
|
321
|
+
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
332
322
|
"graph": {
|
|
333
323
|
"nodes": [
|
|
334
324
|
{
|
|
335
325
|
"id": "start",
|
|
336
326
|
"type": "workflowStart",
|
|
337
327
|
"data": {
|
|
338
|
-
"label": "Start:
|
|
328
|
+
"label": "Start: collectWithHook",
|
|
339
329
|
"nodeKind": "workflow_start"
|
|
340
330
|
}
|
|
341
331
|
},
|
|
@@ -343,18 +333,22 @@
|
|
|
343
333
|
"id": "node_0",
|
|
344
334
|
"type": "step",
|
|
345
335
|
"data": {
|
|
346
|
-
"label": "
|
|
336
|
+
"label": "writeEvent",
|
|
347
337
|
"nodeKind": "step",
|
|
348
|
-
"stepId": "step//./workflows/
|
|
338
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
349
339
|
}
|
|
350
340
|
},
|
|
351
341
|
{
|
|
352
342
|
"id": "node_1",
|
|
353
343
|
"type": "step",
|
|
354
344
|
"data": {
|
|
355
|
-
"label": "
|
|
345
|
+
"label": "writeEvent",
|
|
356
346
|
"nodeKind": "step",
|
|
357
|
-
"stepId": "step//./workflows/
|
|
347
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
348
|
+
},
|
|
349
|
+
"metadata": {
|
|
350
|
+
"loopId": "loop_0",
|
|
351
|
+
"loopIsAwait": true
|
|
358
352
|
}
|
|
359
353
|
},
|
|
360
354
|
{
|
|
@@ -373,6 +367,12 @@
|
|
|
373
367
|
"target": "node_0",
|
|
374
368
|
"type": "default"
|
|
375
369
|
},
|
|
370
|
+
{
|
|
371
|
+
"id": "e_node_1_back_node_1",
|
|
372
|
+
"source": "node_1",
|
|
373
|
+
"target": "node_1",
|
|
374
|
+
"type": "loop"
|
|
375
|
+
},
|
|
376
376
|
{
|
|
377
377
|
"id": "e_node_0_node_1",
|
|
378
378
|
"source": "node_0",
|