-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ci: don't timeout if the runner is slow to pick up the job #1521
Conversation
.github/workflows/tests.yml
Outdated
@@ -51,3 +56,7 @@ jobs: | |||
restore-keys: | | |||
${{ runner.os }}-pre-commit- | |||
- run: uv run pre-commit run --all | |||
- uses: ./.github/workflows/timeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other actions have something like a "Post checkout" that runs at the end. can we do that here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only possible with JS actions. Created a really simple one here: https://github.com/commaai/timeout
We now only have to do this once:
- uses: commaai/timeout@v1
or to specify a timeout other than 60 seconds:
- uses: commaai/timeout@v1
with:
timeout: 20
No description provided.