Skip to content

Commit 5cf9c9c

Browse files
authored
ci: extend watchdog for cold migration proofs (#120700)
1 parent a26959b commit 5cf9c9c

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,9 @@ jobs:
11961196
- name: Verify built Doctor plugin index persistence
11971197
run: |
11981198
if [[ -f test/scripts/doctor-config-preflight-plugin-index.built-cli.e2e.test.ts ]]; then
1199-
node scripts/run-vitest.mjs run \
1199+
# Cold hosted runners can spend over five minutes in E2E setup before
1200+
# this proof's own bounded test can report a result.
1201+
env OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=660000 node scripts/run-vitest.mjs run \
12001202
--config test/vitest/vitest.e2e.config.ts \
12011203
test/scripts/doctor-config-preflight-plugin-index.built-cli.e2e.test.ts
12021204
else
@@ -2611,7 +2613,9 @@ jobs:
26112613
if [ ! -f test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.ts ]; then
26122614
echo "[skip] SQLite sessions/transcripts flip proof is not present in this checkout"
26132615
else
2614-
run_check "sqlite sessions/transcripts flip proof" node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.ts
2616+
# This lane owns a 420-second E2E case plus cold hosted-runner setup;
2617+
# keep the global watchdog strict and scope compatibility headroom here.
2618+
run_check "sqlite sessions/transcripts flip proof" env OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=660000 node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.ts
26152619
fi
26162620
;;
26172621
extension-package-boundary)

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5174,10 +5174,27 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
51745174
expect(proofStep.run).toContain(
51755175
"test/scripts/doctor-config-preflight-plugin-index.built-cli.e2e.test.ts",
51765176
);
5177+
expect(proofStep.run).toContain(
5178+
"env OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=660000 node scripts/run-vitest.mjs run",
5179+
);
51775180
expect(proofStep.run).toContain("--config test/vitest/vitest.e2e.config.ts");
51785181
expect(proofStep.run).toContain("Selected target predates");
51795182
});
51805183

5184+
it("scopes cold-runner watchdog headroom to the SQLite flip proof", () => {
5185+
const workflow = readCiWorkflow();
5186+
const additionalJob = workflow.jobs["check-additional-shard"];
5187+
const runStep = additionalJob.steps.find(
5188+
(step: WorkflowStep) => step.name === "Run additional check shard",
5189+
);
5190+
5191+
expect(runStep.run).toContain("sqlite-session-flip-proof)");
5192+
expect(runStep.run).toContain(
5193+
'run_check "sqlite sessions/transcripts flip proof" env OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=660000 node scripts/run-vitest.mjs run',
5194+
);
5195+
expect(runStep.env.OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS).toBeUndefined();
5196+
});
5197+
51815198
it("restores the dist build cache before building and saves only cache misses", () => {
51825199
const workflow = readCiWorkflow();
51835200
const buildArtifactSteps = workflow.jobs["build-artifacts"].steps;

0 commit comments

Comments
 (0)