Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

ci: fail a hung Windows server test step after 15 minutes instead of cancelling the job (#10415)

Adam Eivy5e1812157d7b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 83e917fab5..8ac3b3c9d9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -839,6 +839,10 @@ jobs:
run: node --check server/index.js
- name: Run server tests on Windows
+ # A step timeout FAILS the step (log kept, `if: failure()` reporting
+ # runs); the job-level timeout would cancel the job and lose the log
+ # (#10415). Observed healthy runs take 2-10 minutes.
+ timeout-minutes: 15
env:
CI_TEST_MODE: ${{ needs.impact.outputs.windows_mode }}
CI_TEST_FILES: ${{ needs.impact.outputs.windows_files }}
diff --git a/scripts/workflow-timeouts.test.js b/scripts/workflow-timeouts.test.js
index 0f5c1cbbf0..cd47cb8fac 100644
--- a/scripts/workflow-timeouts.test.js
+++ b/scripts/workflow-timeouts.test.js
@@ -16,3 +16,18 @@ describe.each(['ci.yml', 'release.yml'])('%s job timeouts', (file) => {
expect(missing).toEqual([]);
});
});
+
+// A step-level timeout fails the step and keeps its log; only the job-level
+// timeout cancels the job and loses it (#10415).
+describe('ci.yml Windows server test step', () => {
+ const body = workflowJobs(readFileSync(new URL('../.github/workflows/ci.yml', import.meta.url), 'utf8'));
+ const text = Object.values(body).find((b) => b.includes('name: Run server tests on Windows'));
+
+ it('has its own timeout-minutes below the job timeout', () => {
+ const step = text.split('- name: Run server tests on Windows')[1].split(/\n {6}- name:/)[0];
+ const stepMin = Number(/^ {8}timeout-minutes:\s*(\d+)\s*$/m.exec(step)?.[1]);
+ const jobMin = Number(/^ {4}timeout-minutes:\s*(\d+)\s*$/m.exec(text)?.[1]);
+ expect(stepMin).toBeGreaterThan(0);
+ expect(stepMin).toBeLessThan(jobMin);
+ });
+});