Skip to content

fix(sqs-samples): add /healthz for replay readiness gating#236

Open
slayerjain wants to merge 1 commit into
mainfrom
fix/sqs-healthz-readiness
Open

fix(sqs-samples): add /healthz for replay readiness gating#236
slayerjain wants to merge 1 commit into
mainfrom
fix/sqs-healthz-readiness

Conversation

@slayerjain

Copy link
Copy Markdown
Member

Adds a 2xx GET /healthz to the sqs sample so the keploy enterprise CI's sqs-localstack replay can gate on real app readiness (--health-url) instead of a fixed --delay — fixing the flaky 'status_code got=0' failures when the app/localstack cold-start exceeds the delay under contention. Recording unaffected (route not exercised during record). Pairs with the enterprise sqs-localstack.sh --health-url change.

The sqs-localstack e2e step replays with a fixed --delay; under CI resource
pressure the app + its mongo/localstack deps can take longer than that to
start, so replayed requests hit a not-yet-serving app and fail with
"status_code got=0" (a flaky enterprise CI step). The app exposed no 2xx GET
endpoint to poll — only GET /:param (redirect/404) and POST /url.

Add a static GET /healthz returning 200; gin prioritises it over the
"/:param" wildcard. The replay driver can now gate on real readiness
(keploy --health-url) instead of a fixed delay. Recording is unaffected
(the route is never exercised during record).

Signed-off-by: slayerjain <shubhamkjain@outlook.com>
Copilot AI review requested due to automatic review settings June 23, 2026 10:01

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants