Skip to content

fix: add retry logic to integration test for httpbin.org flakiness#96

Merged
donbader merged 4 commits into
mainfrom
fix/integration-test-flake
Jun 4, 2026
Merged

fix: add retry logic to integration test for httpbin.org flakiness#96
donbader merged 4 commits into
mainfrom
fix/integration-test-flake

Conversation

@dorey-agent
Copy link
Copy Markdown
Contributor

@dorey-agent dorey-agent Bot commented Jun 4, 2026

Problem

The integration test calls httpbin.org to verify credential injection. httpbin.org occasionally returns 503, causing CI to fail on transient errors unrelated to our code.

This has caused false failures on multiple PRs (#94, #95).

Fix

Add a retry loop (3 attempts, 5s delay) around the curl call. If the first attempt gets a non-matching response (e.g. 503), it retries before declaring failure.

Changes

  • tests/integration/sandbox/run.sh: wrap credential injection check in retry loop

dorey-agent[bot] added 4 commits June 4, 2026 08:53
httpbin.org occasionally returns 503, causing CI to fail on transient
errors. Retry up to 3 times with 5s delay between attempts.
httpbin.org has been unreliably returning 503, causing persistent CI
failures. Replace it with mccutchen/go-httpbin running locally in the
test compose stack.

Changes:
- Add compose-override.yml with go-httpbin container aliased as httpbin.org
- Add GATEWAY_INSECURE_UPSTREAM env var to forward upstream as HTTP
  (local echo server doesn't need TLS)
- Remove retry logic (no longer needed with local server)
- run.sh uses -f compose-override.yml to merge with generated compose
go-httpbin image is a scratch/minimal image without wget or nc,
so healthcheck doesn't work. Use service_started instead — the Go
server starts instantly anyway. Also use command flag to set port 80.
@donbader donbader merged commit a09b6cc into main Jun 4, 2026
6 checks passed
@donbader donbader deleted the fix/integration-test-flake branch June 4, 2026 10:45
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