From d373ecb8f7b19582f65188436ceae1811abbcfdb Mon Sep 17 00:00:00 2001 From: Mrityunjay Raj Date: Sat, 7 Feb 2026 17:02:20 +0530 Subject: [PATCH] Add missing timeout configurations to CI workflows Fixes #2396 - Add 15-minute timeout to lint job - Add 5-minute timeout to prepare-matrix job - Add 60-minute timeout to tmate debug steps Without proper timeouts, jobs default to 360 minutes and can waste CI runner resources if they hang. These timeouts prevent indefinite hangs while providing sufficient buffer for legitimate slow runs. --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31c67c2a5..90c97cee7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,7 @@ concurrency: jobs: lint: + timeout-minutes: 15 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -32,6 +33,7 @@ jobs: run: uv run pre-commit run --all-files --show-diff-on-failure prepare-matrix: + timeout-minutes: 5 runs-on: ubuntu-latest outputs: matrix-unit: ${{ steps.set-matrix-unit.outputs.matrix }} @@ -82,6 +84,7 @@ jobs: - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }} + timeout-minutes: 60 - name: Run Unit Tests with pytest (Linux) if: runner.os == 'Linux' @@ -130,6 +133,7 @@ jobs: - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true'}} + timeout-minutes: 60 - name: Run Integration Tests with pytest (Linux) if: runner.os == 'Linux'