revert: Mockserver readiness probe#1012
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Mockserver backend now merges its base environment with ChangesMockserver readiness configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
b247b08 to
989d00c
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@testsuite/backend/mockserver.py`:
- Line 79: The MockServer readiness probe is using the liveness path, which can
report ready before initialization data is loaded. Update the readiness setup in
mockserver.py so the probe waits on init completion when
MOCKSERVER_INITIALIZATION_JSON_PATH is configured, using /mockserver/ready (or
an equivalent init-aware readiness gate) in the Mockserver fixture/environment
handling.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d91a0d93-40f5-472c-9ef0-0e3d3d544b28
📒 Files selected for processing (1)
testsuite/backend/mockserver.py
989d00c to
911da5d
Compare
…)" This reverts commit 1185d1a. Signed-off-by: Alex Zgabur <azgabur@redhat.com>
911da5d to
d6c3905
Compare
Description
Previous PR #1010 added readiness probe for MockserverBackend but did not set configuration option for enabling it.
/mockserver/readyendpoint is only valid in newer versions of mockserver, but we are using older version without this endpoint. This went unnoticed due to test expectation which made every endpoint valid, even/mockserverprefixed ones. Testtestsuite/tests/singlecluster/gateway/dnspolicy/health_check/test_additional_headers.pydoes not use this test expectation so the readiness check never finished.After careful consideration and checking possibility of using newer Mockserver version 7.4.0 with the endpoint
/mockserver/readythe job of readiness check is done byinit-mockserverscript https://github.com/3scale-qe/mockserver-container/blob/main/init-mockserver . The script wont finish until new expectations are confirmed to be set by API.Only time the Mockserver behaves strangely with 503 responses is when CPU throttled. PR #1006 fixed that.
Changes
Reverted #1010
Verification
Summary by CodeRabbit
Bug Fixes
Chores