Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(tests): add check for per-compile log in private workflow

Steven Enamakelcf103ad784ff
diff --git a/scripts/__tests__/private-runner-contract.test.mjs b/scripts/__tests__/private-runner-contract.test.mjs
index 4a86da3483..950f30cce9 100644
--- a/scripts/__tests__/private-runner-contract.test.mjs
+++ b/scripts/__tests__/private-runner-contract.test.mjs
@@ -58,6 +58,8 @@ test("private workflow pins checkout, image and signed Tinymold without artifact
assert.match(privateJob, /allow-unsafe-pr-checkout: true/);
assert.match(privateJob, /tinyhumansai\/tinymold@[a-f0-9]{40}/);
assert.match(privateJob, /install: none/);
+ // The per-compile log is what ranks misses and uncacheable compiles.
+ assert.match(privateJob, /TINYMOLD_LOG: \$\{\{ runner\.temp \}\}\/tinymold\.log/);
assert.match(privateJob, /backend: remote/);
assert.match(privateJob, /remote-signing-key:/);
assert.match(privateJob, /remote-trusted-keys:/);