Skip to content

ci: cap the test job at 15 minutes#58

Open
ppkarwasz wants to merge 1 commit into
apache:2.2.Xfrom
ppkarwasz:ci/build-timeout
Open

ci: cap the test job at 15 minutes#58
ppkarwasz wants to merge 1 commit into
apache:2.2.Xfrom
ppkarwasz:ci/build-timeout

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

What

Adds a job-level timeout-minutes: 15 to the test job in the Java CI workflow.

Why

The test job had no timeout, so a hung or deadlocked test runs until GitHub's 6-hour default before the job fails (as seen on #57, where a test got into a deadlock). Tests normally finish in 2-4 minutes, so 15 minutes fails fast on a hang while leaving comfortable margin for the slowest matrix cells.

The cap is job-level, so it applies to every OS/JDK matrix combination. When it fires, the if: always() "Upload test reports" step still runs, preserving whatever surefire output exists to help locate the hang.

The test job had no timeout, so a hung or deadlocked test ran until GitHub's
6-hour default before failing. Tests normally finish in 2-4 minutes, so cap
the job at 15 minutes to fail fast while leaving comfortable margin.

Assisted-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant