Skip to content

ci: name the test where a job of the matrix stops - #6

Merged
sorge-it merged 1 commit into
mainfrom
ci/name-a-hanging-test
Nov 21, 2026
Merged

sorge-it merged 1 commit into
mainfrom
ci/name-a-hanging-test

Conversation

@sorge-it

Copy link
Copy Markdown
Owner

What

In the matrix of tests.yml:

  • The test step runs the steps of composer test one by one, and Pest with
    --log-events-text, which PHPUnit writes as each event happens.
  • The test step stops after 10 minutes, 5 before the limit of the job.
  • After a failure, a new step shows the last tests that started or finished, and the FrankenPHP,
    Go reference, Pest and Chrome processes that still run.

Why

The macOS job hung twice until the job's timeout of 15 minutes: on #2 in the GoNetHttp suite,
and on #5, where GitHub kept no log. 11 other macOS runs took 201 to 236 seconds. Pest prints a
test file only once each of its tests has ended, so the log names no test, and a timeout of the job
leaves no time for a step after it. #3 ended FrankenPHP with SIGKILL, which fits the first hang, but
#5 hung after it. The next hang now names its test.

Tests

The whole suite with the event log on macOS: 631 tests green; the log ends with the last test.
zizmor and actionlint: no findings.

The macOS job hung twice until its timeout, and Pest prints a file only
once each of its tests ends. The test step now has a limit of 10 minutes
and an event log; after a failure, a step shows the last test that
started and the processes that still run.
@sorge-it
sorge-it marked this pull request as ready for review November 21, 2026 16:30
@sorge-it
sorge-it merged commit af438ce into main Nov 21, 2026
11 checks passed
@sorge-it
sorge-it deleted the ci/name-a-hanging-test branch November 21, 2026 16:30
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