Skip to content

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

ci: bound tinymold cache save to five minutes

Steven Enamakel55646ba31e55
diff --git a/.github/workflows/ci-lanes.yml b/.github/workflows/ci-lanes.yml
index abf868a9b4..c82dd9cfc7 100644
--- a/.github/workflows/ci-lanes.yml
+++ b/.github/workflows/ci-lanes.yml
@@ -167,6 +167,8 @@ jobs:
- name: Save Tinymold cache
if: ${{ always() && steps.tinymold.outcome == 'success' }}
continue-on-error: true
+ # Bound remote cache uploads so lane artifacts still get their turn.
+ timeout-minutes: 5
uses: tinyhumansai/tinymold/save@b7c4c26f184acdbf7133487b158062fc610d2f28
- name: Record cache statistics and save time
diff --git a/scripts/__tests__/private-runner-contract.test.mjs b/scripts/__tests__/private-runner-contract.test.mjs
index 1e15ab471d..8c63d8c6aa 100644
--- a/scripts/__tests__/private-runner-contract.test.mjs
+++ b/scripts/__tests__/private-runner-contract.test.mjs
@@ -159,14 +159,22 @@ test("membership gate routes mixed identities, outsiders and bots away from EX63
});
test("private cache save has a five-minute budget and cannot suppress artifact upload", () => {
- const workflow = readFileSync(new URL("../../.github/workflows/ci-lanes.yml", import.meta.url), "utf8").split(" # ── hosted:")[0];
+ const workflow = readFileSync(
+ new URL("../../.github/workflows/ci-lanes.yml", import.meta.url),
+ "utf8",
+ ).split(" # ── hosted:")[0];
const saveStart = workflow.indexOf(" - name: Save Tinymold cache");
const saveEnd = workflow.indexOf("\n - name:", saveStart + 1);
const save = workflow.slice(saveStart, saveEnd);
assert.match(save, /timeout-minutes: 5/);
assert.match(save, /continue-on-error: true/);
- const upload = workflow.slice(workflow.indexOf(" - name: Upload lane logs, timings and coverage"));
+ const upload = workflow.slice(
+ workflow.indexOf(" - name: Upload lane logs, timings and coverage"),
+ );
assert.match(upload, /if: always\(\)/);
- assert.ok(workflow.indexOf(" - name: Upload lane logs, timings and coverage") > saveEnd);
+ assert.ok(
+ workflow.indexOf(" - name: Upload lane logs, timings and coverage") >
+ saveEnd,
+ );
assert.doesNotMatch(upload, /tinymold\.outcome|success\(\)/);
});