Skip to content

Add a job timeout to the shared test matrix workflow - #3762

Merged
gjcairo merged 1 commit into
apple:mainfrom
austenstone:matrix-job-timeout
Oct 12, 2026
Merged

gjcairo merged 1 commit into
apple:mainfrom
austenstone:matrix-job-timeout

Conversation

@austenstone

Copy link
Copy Markdown
Contributor

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_minutes input (default 120) and use it as the execute-matrix job 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.

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 gjcairo added the πŸ”¨ semver/patch No public API change. label Oct 12, 2026
@gjcairo
gjcairo merged commit 7ea45a9 into apple:main Oct 12, 2026
129 of 132 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

πŸ”¨ semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants