From 13760968bbdec44c2bf234fde79f8ef0e5bbe254 Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Mon, 11 Nov 2024 14:28:15 -0800 Subject: [PATCH] ci: set timeout based on runner (#33991) * timeout * 20 --- .github/workflows/selfdrive_tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index e6b5950cbb1b93..509e4e2f31d779 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -174,7 +174,7 @@ jobs: timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 10 || 30) }} # allow more time when we missed the scons cache run: ${{ env.RUN }} "scons -j$(nproc)" - name: Run unit tests - timeout-minutes: 1 + timeout-minutes: ${{ contains(runner.name, 'nsc') && 1 || 20 }} run: | ${{ env.RUN }} "source selfdrive/test/setup_xvfb.sh && \ MAX_EXAMPLES=1 $PYTEST --timeout 60 -m 'not slow' && \ @@ -266,7 +266,7 @@ jobs: - name: Build openpilot run: ${{ env.RUN }} "scons -j$(nproc)" - name: Test car models - timeout-minutes: 2 + timeout-minutes: ${{ contains(runner.name, 'nsc') && 2 || 20 }} run: | ${{ env.RUN }} "FILEREADER_CACHE=1 MAX_EXAMPLES=1 $PYTEST selfdrive/car/tests/test_models.py && \ chmod -R 777 /tmp/comma_download_cache"