Skip to content

fix(ci): improve Stellar network startup detection and timeout#1161

Open
AttissNgo wants to merge 3 commits into
mainfrom
fix/stellar-network-setup
Open

fix(ci): improve Stellar network startup detection and timeout#1161
AttissNgo wants to merge 3 commits into
mainfrom
fix/stellar-network-setup

Conversation

@AttissNgo

@AttissNgo AttissNgo commented Nov 12, 2025

Copy link
Copy Markdown
Contributor
  • Increase timeout from 120s to 180s for slower CI runners
  • Add container status check before health polling
  • Improve response detection (check for 'friendbot' or 'status')
  • Add diagnostic output showing response and elapsed time
  • Dump container logs on timeout for debugging

why

how


Note

Increase wait robustness for local Stellar network (longer timeout, broader readiness check, better diagnostics) and include the setup action in CI path filters.

  • CI / GitHub Action setup-stellar:
    • Increase wait timeout MAX_WAIT from 120 to 180 seconds and poll interval from 2s to 3s.
    • Broaden readiness check to accept Friendbot responses containing "status" or "friendbot".
    • Improve logging: clearer ready/timeout messages, show elapsed time, and dump stellar network container logs local | tail -50 on timeout.
  • Workflow test-stellar.yaml:
    • Update paths-filter to also watch .github/actions/setup-stellar/** so tests run when the action changes.

Written by Cursor Bugbot for commit c57c4be. This will update automatically on new commits. Configure here.

- Increase timeout from 120s to 180s for slower CI runners
- Add container status check before health polling
- Improve response detection (check for 'friendbot' or 'status')
- Add diagnostic output showing response and elapsed time
- Dump container logs on timeout for debugging
@AttissNgo AttissNgo marked this pull request as ready for review November 12, 2025 18:38
@AttissNgo AttissNgo requested a review from a team as a code owner November 12, 2025 18:38
Comment thread .github/actions/setup-stellar/action.yaml Outdated
Comment thread .github/actions/setup-stellar/action.yaml Outdated
Comment thread .github/actions/setup-stellar/action.yaml
echo "✅ Stellar Network is ready"
exit 0

if curl -s "${{ steps.env.outputs.friendbot }}" | grep -q '"status"\|"friendbot"'; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fix doesn't really make sense. Is the output now indicating friendbot as a readiness signifier? If so, then let's remove status? Otherwise behaviour needs to be understood and clarified in the code

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.

3 participants