Repository navigation
Add a job timeout to the shared test matrix workflow - #3762
Merged
Merged
Conversation
Motivation: Linux nightly-main legs that run through swift_test_matrix.yml can stall mid-build and are only stopped by the 6-hour job limit. In apple/swift-nio-quic alone, 139 such jobs ran 340+ minutes between 2026-09-27 and 2026-10-10. Modifications: Add a `timeout_minutes` input (default 120) and use it as the `execute-matrix` job timeout. Result: Stalled matrix jobs are cancelled after 2 hours instead of 6. The longest successful matrix job seen across swift-nio and grpc-swift-2 PR runs was 81 minutes, so current workloads fit, and callers can raise the limit if needed. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
gjcairo
approved these changes
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a configurable job timeout to
swift_test_matrix.yml.Motivation:
Matrix jobs have no timeout, so a stalled nightly toolchain build runs until the 6-hour limit. From Sep 27 to Oct 10, apple/swift-nio-quic had 139 such jobs (about 50,000 runner minutes), all on Linux nightly-main legs.
Modifications:
Add a
timeout_minutesinput (default 120) and use it as theexecute-matrixjob timeout.Result:
Stalled jobs are cancelled after 2 hours instead of 6. The longest successful matrix job I found was 81 minutes (grpc-swift-2 Examples), so current callers fit, and they can raise the limit if needed.