Skip to content

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

test: assert tinymold log path is exported before setup

Steven Enamakelb17a17ee61f8
diff --git a/scripts/__tests__/private-runner-contract.test.mjs b/scripts/__tests__/private-runner-contract.test.mjs
index 01adf150a8..adc7c761da 100644
--- a/scripts/__tests__/private-runner-contract.test.mjs
+++ b/scripts/__tests__/private-runner-contract.test.mjs
@@ -59,7 +59,14 @@ test("private workflow pins checkout, image and signed Tinymold without artifact
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,
+ /TINYMOLD_LOG=\$RUNNER_TEMP\/tinymold\.log.*GITHUB_ENV/s,
+ );
+ assert.ok(
+ privateJob.indexOf("TINYMOLD_LOG=$RUNNER_TEMP/tinymold.log") <
+ privateJob.indexOf("- name: Setup Tinymold"),
+ );
assert.match(privateJob, /backend: remote/);
assert.match(privateJob, /remote-signing-key:/);
assert.match(privateJob, /remote-trusted-keys:/);