Skip to content

Raise HeadlessMC total test timeout - #107

Merged
rubensworks merged 1 commit into
masterfrom
claude/happy-newton-c2ngqp
Oct 3, 2026
Merged

rubensworks merged 1 commit into
masterfrom
claude/happy-newton-c2ngqp

Conversation

@rubensworks

Copy link
Copy Markdown
Member

The server game test job in https://github.com/CyclopsMC/packtests/actions/runs/37048838231/job/110976870166 failed with exit code 137 even though all 1669 game tests passed.

Cause: when totalTimeout is not set in the test file, HeadlessMC (2.8.0, CommandTest) caps the whole test at 5 minutes. The per-step timeout: 600 does not raise that cap. The run took about 6.5 minutes, so the test was marked failed at 5:00 (CommandTest failed! Message: null). After a failure HeadlessMC waits 2 minutes for the process to exit and then calls destroyForcibly(). The server was still shutting down after stop at that point, so it got SIGKILLed (137).

Changes:

  • mc-server-test.json: set totalTimeout to 840s.
  • gametests.yml: raise the server test step timeout-minutes from 10 to 20. That covers 840s plus HeadlessMC's 2 minute kill grace period, so a real HeadlessMC timeout still shows its own error instead of being cut off by Actions.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FijMLTxvoihBnXk8pE2Z58


Generated by Claude Code

HeadlessMC defaults to a 5 minute total timeout when totalTimeout is unset,
which the full game test run now exceeds, causing the server to be killed
(exit 137) even though all tests passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FijMLTxvoihBnXk8pE2Z58
@rubensworks
rubensworks merged commit 45795b9 into master Oct 3, 2026
61 checks passed
@rubensworks
rubensworks deleted the claude/happy-newton-c2ngqp branch October 3, 2026 11:57
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