Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(workflow-recipes): pin that a non-404 coordinator read is never reported absent
Alfredo Lopez825dbf7bd4ba
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex a1a98981f..90496da1a 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.459",+ "version": "0.1.460","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.459",+ "version": "0.1.460","license": "SEE LICENSE IN LICENSE","dependencies": {"@aws-sdk/client-s3": "^3.1009.0",diff --git a/workflow-recipes/package.json b/workflow-recipes/package.jsonindex 085a788bf..ac7b81a9a 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.459",+ "version": "0.1.460","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/src/workflow/crashRecovery.test.ts b/workflow-recipes/src/workflow/crashRecovery.test.tsindex d6be309f7..2ee83cede 100644--- a/workflow-recipes/src/workflow/crashRecovery.test.ts+++ b/workflow-recipes/src/workflow/crashRecovery.test.ts@@ -132,6 +132,19 @@ describe('getPodPresence', () => {})})++ it.each([403, 500])('rethrows a GET %i instead of reporting the pod absent', async code => {+ const readNamespacedPod = vi.fn().mockRejectedValueOnce({ code })+ const coreApi = { readNamespacedPod } as unknown as Parameters<typeof getPodPresence>[0]++ await expect(+ getPodPresence(coreApi, 'recipe-coordinator', 'sandbox-recipes')+ ).rejects.toMatchObject({ code })+ expect(readNamespacedPod).toHaveBeenCalledWith({+ name: 'recipe-coordinator',+ namespace: 'sandbox-recipes',+ })+ })})describe('waitForPodDeletion', () => {diff --git a/workflow-recipes/tests/unit/workflow/workflowReconciler.test.ts b/workflow-recipes/tests/unit/workflow/workflowReconciler.test.tsindex 00fed0544..bf5228fe1 100644--- a/workflow-recipes/tests/unit/workflow/workflowReconciler.test.ts+++ b/workflow-recipes/tests/unit/workflow/workflowReconciler.test.ts@@ -3876,6 +3876,9 @@ describe('WorkflowReconciler — reconcile loop', () => {const result = await reconciler.reconcile('test-wf', 'uid-123', SANDBOX, makeSpec())expect(result.workflowPhase).toBe('failed')+ // The 403 stops the reconcile at the first coordinator read; a 403+ // mapped to absent would continue to a second read.+ expect(podReads(coreApi, COORDINATOR)).toBe(1)expect(podDeletes(coreApi, COORDINATOR)).toBe(0)})