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

Set timeout-minutes in GitHub actions #2383

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Oct 6, 2024

Sometimes, build tests fail but don't raise an error. They get stuck in limbo and timeout after GitHub's limit of 6 hours. See https://github.com/mhammond/pywin32/actions/runs/11188366703/job/31107020384?pr=2321 for the latest example.

Jobs take up to 8m 30s to run. So I doubled that time and nicely rounded it up to 20 minutes.

A shorter timeout allows much quicker feedback on failing jobs. Especially when there's no error to track the breaking change. Of course it'd be nicer if we figured out why it gets stuck, but this is a nice bandaid patch.

Static checkers jobs don't have that issue, but just applied the timeout indiscriminately. See https://github.com/orgs/community/discussions/10690 for a feature request to be configurable at a workflow level (please take the time to upvote if you'd find this valuable)

@Avasam Avasam merged commit ca0b57f into mhammond:main Oct 7, 2024
31 checks passed
@Avasam Avasam deleted the Set-timeout-minutes-in-GitHub-actions branch October 7, 2024 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants