Repository navigation
fix(runner): report a runtime's crash output instead of waiting for the startup timeout - #276
Merged
Merged
Conversation
…he startup timeout
…overed runtimes serve
🟢 Tier S · Ready to mergeThe runner now checks Docker container state during readiness polling and returns startup-crash errors with bounded runtime output, while using a shorter readiness connection timeout. The restart-policy E2E fixture now exits from a Node function after returning 500; the prior PHP fixture and startup-crash/recovery E2E cases are removed. Latest changes: The newest commit removes the startup-crash and restart-after-recovery E2E cases while leaving the restart-policy test in place.
Couldn't attach to a lineThese findings could not be placed on a changed line, so they were not posted as inline comments.
📂 Walkthrough · 6
Reviewed the commits since |
…startPolicy PHP runtimes from open-runtimes 0.13.45 catch exit() inside the timeout coroutine and answer 500 instead of dying, so the php-exit fixture no longer brings the container down.
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a runtime's server exits before it starts listening, an execution now fails fast with
runtime_failedand the tail of the runtime's output. Before, the executor kept pinging the port until the startup timeout, then returned "Timed out waiting for runtime." with nothing about why.docker container inspect) and treatsrestarting,exitedordeadas a crash.runningcontainer is never reported, so a runtime that crashed once and recovered underrestartPolicy: alwayskeeps serving.docker logsfails, only the sentence is used.testRestartPolicynow uses a Node function that answers 500 and then ends its process. Its old PHP fixture relied onexit()killing the server, which open-runtimes 0.13.45 no longer allows (it answers 500 and keeps serving).mainfails this test since then.PHPStan (
composer analyze), Pint and Rector are clean, and E2E passes in CI.