Skip to content

ci(release): tolerate the PHAR smoke-test timeout under errexit#7

Merged
math3usmartins merged 1 commit into
mainfrom
0.2.x
Jun 12, 2026
Merged

ci(release): tolerate the PHAR smoke-test timeout under errexit#7
math3usmartins merged 1 commit into
mainfrom
0.2.x

Conversation

@math3usmartins

Copy link
Copy Markdown
Member

GitHub runs run: steps with bash -eo pipefail, so the bare timeout 10s php var/xphp-lsp.phar </dev/null; status=$? aborted the Smoke-test step the instant timeout returned 124 (server stayed up the full window) -- before the "124 is a healthy boot" guard could run -- failing the release with exit 124.

Capture the exit code errexit-safely with || status=$? so the guard is honoured; a real boot failure (any other non-zero, e.g. an autoload fatal) still fails the job as intended.

GitHub runs `run:` steps with `bash -eo pipefail`, so the bare
`timeout 10s php var/xphp-lsp.phar </dev/null; status=$?` aborted the
Smoke-test step the instant `timeout` returned 124 (server stayed up the
full window) -- before the "124 is a healthy boot" guard could run --
failing the release with exit 124.

Capture the exit code errexit-safely with `|| status=$?` so the guard is
honoured; a real boot failure (any other non-zero, e.g. an autoload
fatal) still fails the job as intended.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@math3usmartins math3usmartins requested a review from a team June 12, 2026 11:04
@math3usmartins math3usmartins merged commit d48bd47 into main Jun 12, 2026
3 checks passed
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