Skip to content

feat(python-timefreeze): a /health route for readiness probes - #108

Merged
slayerjain merged 1 commit into
mainfrom
feat/timefreeze-health
Oct 18, 2026
Merged

slayerjain merged 1 commit into
mainfrom
feat/timefreeze-health

Conversation

@slayerjain

Copy link
Copy Markdown
Member

python-timefreeze has no route a readiness probe can GET for a 2xx: / returns 404, and every item route needs a token. So keploy's python-linux CI lane (keploy/enterprise .ci/scripts/python-linux.sh) can't use keploy test --health-url, and replays with a fixed --delay 30 instead. On a loaded runner, an app that takes longer than 30 s to start gets its tests fired before it is serving.

This adds GET /health, which returns 200 {"status": "ok"} once the app serves. It needs no token and touches no state, so if a probe gets recorded as a test case, it replays the same. apis.txt lists it.

The enterprise lane change that uses it follows. It needs this merged first, because CI clones samples-python main.

Tested locally: GET /health returns 200, and /register is unchanged.

keploy's python-linux CI lane replays this app with a fixed --delay 30: the app has no route a readiness probe can GET for a 2xx (/ is a 404, and every item route needs a token), so keploy test --health-url, which waits for a 2xx, cannot be used. On a loaded runner an app slower than 30 s to serve gets its tests fired before it is up.

GET /health answers 200 {"status": "ok"} once the app serves. It needs no token and touches no state, so a probe recorded as a test case replays the same. apis.txt lists it.

Signed-off-by: slayerjain <[email protected]>
@slayerjain
slayerjain merged commit 1a94bf6 into main Oct 18, 2026
1 check passed
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