Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(wrc): pin recovery diagnostics and veto error types
Alfredo Lopez50da8c4d186e
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex ea302c968..3ba32f781 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.349",+ "version": "0.1.350","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.349",+ "version": "0.1.350","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 58d13b083..602cd213c 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.349",+ "version": "0.1.350","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/src/reconciler/reconciler.test.ts b/workflow-recipes/src/reconciler/reconciler.test.tsindex f51dfa40e..a47ff5874 100644--- a/workflow-recipes/src/reconciler/reconciler.test.ts+++ b/workflow-recipes/src/reconciler/reconciler.test.ts@@ -674,9 +674,15 @@ describe('WorkflowRecipeReconciler', () => {namespace,recipeName: 'test-recipe',})- ).rejects.toThrow(- lifecycle === 'terminating' ? 'terminating' : 'owner-reference-mismatch'- )+ ).rejects.toMatchObject({+ name:+ lifecycle === 'terminating'+ ? 'RetryableReconcileError'+ : 'NetworkPolicyOwnershipConflictError',+ message: expect.stringContaining(+ lifecycle === 'terminating' ? 'terminating' : 'owner-reference-mismatch'+ ),+ })expect(mockNetworkingApi.replaceNamespacedNetworkPolicy).toHaveBeenCalledTimes(1)expect(mockNetworkingApi.deleteNamespacedNetworkPolicy).not.toHaveBeenCalled()})@@ -711,9 +717,15 @@ describe('WorkflowRecipeReconciler', () => {? null: build(operation === 'replace' ? [443] : [443, 8443]),})- ).rejects.toThrow(- lifecycle === 'terminating' ? 'terminating' : 'owner-reference-mismatch'- )+ ).rejects.toMatchObject({+ name:+ lifecycle === 'terminating'+ ? 'RetryableReconcileError'+ : 'NetworkPolicyOwnershipConflictError',+ message: expect.stringContaining(+ lifecycle === 'terminating' ? 'terminating' : 'owner-reference-mismatch'+ ),+ })expect(mockNetworkingApi.replaceNamespacedNetworkPolicy).not.toHaveBeenCalled()expect(mockNetworkingApi.deleteNamespacedNetworkPolicy).not.toHaveBeenCalled()})@@ -2088,6 +2100,16 @@ describe('WorkflowRecipeReconciler', () => {}).body.metadata?.resourceVersion).toBe('9')+ expect(captured.entries).toContainEqual(+ expect.objectContaining({+ level: 'info',+ msg: 'network policy replaced',+ policy: desired.metadata!.name,+ namespace: NS,+ family: 'workload-ingress',+ reason: 'read-recovery',+ })+ )const warning = captured.entries.find(entry => entry.msg === 'network policy read unavailable; retrying once')diff --git a/workflow-recipes/src/reconciler/uiEgressMetadata.test.ts b/workflow-recipes/src/reconciler/uiEgressMetadata.test.tsindex 0ed23dae3..5580e5ca9 100644--- a/workflow-recipes/src/reconciler/uiEgressMetadata.test.ts+++ b/workflow-recipes/src/reconciler/uiEgressMetadata.test.ts@@ -163,9 +163,15 @@ describe('UI egress dedicated writer metadata and lifecycle', () => {return raced})- await expect(fixture.reconcile()).rejects.toThrow(- lifecycle === 'terminating' ? 'terminating' : 'owner-reference-mismatch'- )+ await expect(fixture.reconcile()).rejects.toMatchObject({+ name:+ lifecycle === 'terminating'+ ? 'RetryableReconcileError'+ : 'NetworkPolicyOwnershipConflictError',+ message: expect.stringContaining(+ lifecycle === 'terminating' ? 'terminating' : 'owner-reference-mismatch'+ ),+ })expect(fixture.read).toHaveBeenCalledTimes(2)expect(fixture.create).toHaveBeenCalledTimes(1)expect(fixture.replace).not.toHaveBeenCalled()