pull/35686/head
Maxime Desroches 2 weeks ago
parent 9bd7e3e36d
commit 0f1d580958
  1. 3
      .github/workflows/selfdrive_tests.yaml
  2. 15
      .github/workflows/setup-with-retry/action.yaml

@ -154,10 +154,11 @@ jobs:
with: with:
submodules: true submodules: true
- uses: ./.github/workflows/setup-with-retry - uses: ./.github/workflows/setup-with-retry
id: setup-step
- name: Build openpilot - name: Build openpilot
run: ${{ env.RUN }} "scons -j$(nproc)" run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Run unit tests - name: Run unit tests
timeout-minutes: ${{ contains(runner.name, 'nsc') && 1 || 20 }} timeout-minutes: ${{ (steps.setup-step.outputs.duration < 19) && 1 || 2 }}
run: | run: |
${{ env.RUN }} "$PYTEST --collect-only -m 'not slow' &> /dev/null && \ ${{ env.RUN }} "$PYTEST --collect-only -m 'not slow' &> /dev/null && \
MAX_EXAMPLES=1 $PYTEST -m 'not slow' && \ MAX_EXAMPLES=1 $PYTEST -m 'not slow' && \

@ -10,9 +10,17 @@ inputs:
required: false required: false
default: 30 default: 30
outputs:
duration:
description: 'Duration of the setup process in seconds'
value: ${{ steps.get_duration.outputs.duration }}
runs: runs:
using: "composite" using: "composite"
steps: steps:
- id: start_time
shell: bash
run: echo "START_TIME=$(date +%s)" >> $GITHUB_ENV
- id: setup1 - id: setup1
uses: ./.github/workflows/setup uses: ./.github/workflows/setup
continue-on-error: true continue-on-error: true
@ -35,3 +43,10 @@ runs:
uses: ./.github/workflows/setup uses: ./.github/workflows/setup
with: with:
is_retried: true is_retried: true
- id: get_duration
shell: bash
run: |
END_TIME=$(date +%s)
DURATION=$((END_TIME - START_TIME))
echo "Total duration: $DURATION seconds"
echo "duration=$DURATION" >> $GITHUB_OUTPUT

Loading…
Cancel
Save