Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

test(runtime): show the execution state behind a Build that stopped

rpone0493794143d0
diff --git a/packages/runtime-local/test/local.test.ts b/packages/runtime-local/test/local.test.ts
index 2cc3f41c..9cbef1c5 100644
--- a/packages/runtime-local/test/local.test.ts
+++ b/packages/runtime-local/test/local.test.ts
@@ -897,7 +897,14 @@ test("one local Worker admits later Builds while preserving shared Endpoint capa
assert.fail(`Builds reached ${state}`);
}
if (Date.now() > deadline) {
- assert.fail(`Builds did not complete within 30s: ${state}`);
+ // A Build with no Result at all has not failed, it has stopped being scheduled. `wakeAt`
+ // absent means it is waiting for a resource release, and the Operations say whether one is
+ // still outstanding; both are what distinguishes a lost wake-up from ordinary waiting.
+ const executions = await fixture.executionStore.list();
+ const operations = await Promise.all(ids.map(async (id) => await fixture.operationStore.list({ build: id })));
+ assert.fail(`Builds did not complete within 30s: ${state}`
+ + `; executions ${JSON.stringify(executions)}`
+ + `; operations ${JSON.stringify(operations)}`);
}
await new Promise((resolve) => setTimeout(resolve, 5));
}