@iterativeflow/conformance 2.2.0 → 2.3.0
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.
- package/dist/index.mjs +21 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -615,6 +615,27 @@ const storeConformance = (label, makeStore) => {
|
|
|
615
615
|
const again = await s.retryRun(runId);
|
|
616
616
|
expect(again.retried).toBe(false);
|
|
617
617
|
});
|
|
618
|
+
it("retryRun clears the spent attempt budget, so a dead-lettered run gets dispatched again", async () => {
|
|
619
|
+
const s = await makeStore();
|
|
620
|
+
const { runId } = await s.startRun({
|
|
621
|
+
name: "f",
|
|
622
|
+
version: 1,
|
|
623
|
+
input: {}
|
|
624
|
+
});
|
|
625
|
+
await s.markRunning(runId);
|
|
626
|
+
await s.markRunning(runId);
|
|
627
|
+
expect(await s.markRunning(runId)).toBe(3);
|
|
628
|
+
await s.markTerminal(runId, {
|
|
629
|
+
status: "failed",
|
|
630
|
+
error: {
|
|
631
|
+
code: "X",
|
|
632
|
+
message: "boom"
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
await s.retryRun(runId);
|
|
636
|
+
expect((await s.loadRunRow(runId))?.attempts).toBe(0);
|
|
637
|
+
expect(await s.markRunning(runId)).toBe(1);
|
|
638
|
+
});
|
|
618
639
|
it("runStats counts runs per status", async () => {
|
|
619
640
|
const s = await makeStore();
|
|
620
641
|
const a = await s.startRun({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iterativeflow/conformance",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@iterativeflow/core": "2.
|
|
28
|
+
"@iterativeflow/core": "2.3.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"vitest": ">=3"
|