From d0eaf954bebd3ba841a2f247774a6b03778c7bd3 Mon Sep 17 00:00:00 2001 From: Ammar Date: Sun, 23 Nov 2025 18:33:55 -0600 Subject: [PATCH] ci: set integration test timeout to 10m --- .github/workflows/ci.yml | 1 + jest.config.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c3b2a233..d8eca356c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,7 @@ jobs: integration-test: name: Integration Tests + timeout-minutes: 10 runs-on: ${{ github.repository_owner == 'coder' && 'self-hosted' || 'ubuntu-latest' }} steps: - name: Checkout code diff --git a/jest.config.js b/jest.config.js index 6851fc4b1..c39fe26fa 100644 --- a/jest.config.js +++ b/jest.config.js @@ -35,6 +35,8 @@ module.exports = { maxWorkers: "50%", // Force exit after tests complete to avoid hanging on lingering handles forceExit: true, + // 10 minute timeout for integration tests, 10s for unit tests + testTimeout: process.env.TEST_INTEGRATION === "1" ? 600000 : 10000, // Detect open handles in development (disabled by default for speed) // detectOpenHandles: true, };