Skip to content

Commit

Permalink
ci: set timeout based on runner (#33991)
Browse files Browse the repository at this point in the history
* timeout

* 20
  • Loading branch information
maxime-desroches authored Nov 11, 2024
1 parent a683b7d commit 1376096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/selfdrive_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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' && \
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 1376096

Please sign in to comment.