diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 12fa88dfae..26558ea4c7 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -158,7 +158,7 @@ jobs: - name: Build openpilot run: ${{ env.RUN }} "scons -j$(nproc)" - name: Run unit tests - timeout-minutes: ${{ (steps.setup-step.outputs.duration < 19) && 1 || 2 }} + timeout-minutes: ${{ contains(runner.name, 'nsc') && ((steps.setup-step.outputs.duration < 18) && 1 || 2) || 6 }} run: | ${{ env.RUN }} "$PYTEST --collect-only -m 'not slow' &> /dev/null && \ MAX_EXAMPLES=1 $PYTEST -m 'not slow' && \ @@ -190,7 +190,7 @@ jobs: run: | ${{ env.RUN }} "scons -j$(nproc)" - name: Run replay - #timeout-minutes: ${{ contains(runner.name, 'nsc') && (steps.dependency-cache.outputs.cache-hit == 'true') && 1 || 20 }} + timeout-minutes: ${{ contains(runner.name, 'nsc') && (steps.routes-cache.outputs.cache-hit == 'true') && ((steps.setup-step.outputs.duration < 18) && 1 || 2) || 6 }} timeout-minutes: ${{ (steps.setup-step.outputs.duration < 19) && 1 || 2 }} run: | ${{ env.RUN }} "selfdrive/test/process_replay/test_processes.py -j$(nproc) && \ @@ -243,11 +243,10 @@ jobs: - name: Build openpilot run: ${{ env.RUN }} "scons -j$(nproc)" - name: Test car models - #timeout-minutes: ${{ contains(runner.name, 'nsc') && (steps.routes-cache.outputs.cache-hit == 'true') && 1 || 6 }} - timeout-minutes: ${{ (steps.setup-step.outputs.duration < 19) && 1 || 2 }} + timeout-minutes: ${{ contains(runner.name, 'nsc') && (steps.routes-cache.outputs.cache-hit == 'true') && ((steps.setup-step.outputs.duration < 18) && 1 || 2) || 6 }} run: | ${{ env.RUN }} "MAX_EXAMPLES=1 $PYTEST selfdrive/car/tests/test_models.py && \ - sleep 15 && \ + sleep 90 && \ chmod -R 777 /tmp/comma_download_cache" env: NUM_JOBS: 4 @@ -327,11 +326,10 @@ jobs: run: | ${{ env.RUN }} "scons -j$(nproc)" - name: Driving test - timeout-minutes: ${{ (steps.setup-step.outputs.duration < 19) && 1 || 2 }} + timeout-minutes: ${{ (steps.setup-step.outputs.duration < 18) && 1 || 2 }} run: | ${{ env.RUN }} "source selfdrive/test/setup_xvfb.sh && \ source selfdrive/test/setup_vsound.sh && \ - sleep 15 && \ CI=1 pytest -s tools/sim/tests/test_metadrive_bridge.py" create_ui_report: