test(rivetkit): cover metrics endpoint#5009
Conversation
|
🚅 Deployed to the rivet-pr-5009 environment in rivet-frontend
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code Review: test(rivetkit): cover metrics endpointOverviewThis PR adds test coverage for the Prometheus metrics endpoint by:
The implementation is clean and follows existing patterns well. A few items worth considering: Issues / Suggestions1. No startup wait for the metrics endpoint (potential flakiness)
Consider extending await waitForEngineHealth(engine, logs, endpoint, 90_000);
// Also wait for the metrics endpoint to be ready.
await waitForMetricsHealth(engine, logs, metricsEndpoint, 10_000);2. Asymmetric value assertions in the test The test checks the actual numeric value for 3. Both functions do exactly 4. Backward-compatibility guard is correct
5. Port exclusion list is correct
VerdictSmall, well-scoped addition that follows the established test-infrastructure patterns. The only concrete concern is item 1 (startup race for the metrics port) — the same class of startup sequencing that |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: