Skip to content

Fail fast in tests when container reports unhealthy - #971

Merged
fnando merged 2 commits into
mainfrom
fail-fast-unhealthy-container
Aug 18, 2026
Merged

Fail fast in tests when container reports unhealthy#971
fnando merged 2 commits into
mainfrom
fail-fast-unhealthy-container

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Aug 18, 2026

Copy link
Copy Markdown
Member

What

Make the "Wait for container to be healthy" step in action.yml exit immediately with the container logs when docker reports the container as unhealthy, instead of only checking for "healthy" and looping forever otherwise.

Why

A recent CI run hung for ~40 minutes before being cancelled because the wait loop never reacted to docker's unhealthy status. Docker will initially show a state of starting, then after many failed checks eventually move the container to unhealthy. If a container ends up in unhealthy it is unlikely to recover in the test so it should fail then.

Copilot AI balanced review requested due to automatic review settings August 18, 2026 03:24
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Aug 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fails fast when Docker marks the Stellar container unhealthy, avoiding indefinite CI waits.

Changes:

  • Detects the unhealthy container status.
  • Prints container logs and exits with failure immediately.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@leighmcculloch
leighmcculloch requested a review from a team August 18, 2026 03:29
@leighmcculloch leighmcculloch changed the title Fail fast when stellar container reports unhealthy Fail fast in tests when container reports unhealthy Aug 18, 2026
@fnando
fnando enabled auto-merge (squash) August 18, 2026 13:34
@fnando
fnando merged commit 63665b9 into main Aug 18, 2026
103 checks passed
@fnando
fnando deleted the fail-fast-unhealthy-container branch August 18, 2026 13:55
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants