Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_models: convert can data to namedtuple #34845

Merged
merged 12 commits into from
Mar 11, 2025
Merged

test_models: convert can data to namedtuple #34845

merged 12 commits into from
Mar 11, 2025

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Mar 11, 2025

moves the slow part into the setup, since accessing the same fields isn't cached in pycapnp

with 32 jobs, the time goes from 130s to 106s

@github-actions github-actions bot added CI / testing car vehicle-specific labels Mar 11, 2025
@sshane sshane merged commit 18db927 into master Mar 11, 2025
17 checks passed
@sshane sshane deleted the speedup-tm branch March 11, 2025 21:58
@@ -227,7 +227,7 @@ 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 || 20 }}
timeout-minutes: ${{ contains(runner.name, 'nsc') && (steps.routes-cache.outputs.cache-hit == 'true') && 1 || 3 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to keep it above 5 minutes, since this is also the timeout for non namespace runner. This PR form deanlee takes more than 4 minutes to run the test: https://github.com/commaai/openpilot/actions/runs/13748851002/job/38447203476?pr=34825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car vehicle-specific CI / testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants