Reframe resource usage test to measure remote response times#32
Draft
ian-flores wants to merge 1 commit intomainfrom
Draft
Reframe resource usage test to measure remote response times#32ian-flores wants to merge 1 commit intomainfrom
ian-flores wants to merge 1 commit intomainfrom
Conversation
…Prometheus check - Replace local os.getloadavg() checks with remote response time measurement - Generate concurrent API traffic to all products (4 workers, 10s duration) - Assert p95 response time < 5s and error rate < 10% - Add Prometheus metrics endpoint check (/metrics returns 200) - Update .feature file with new scenarios Fixes #25 - eliminates false positives from parallel test execution (xdist)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #25 —
test_resources_under_loadwas measuring localos.getloadavg()which caused false positives under parallel execution (xdist). The test now measures what actually matters: remote product performance.Changes
/metricsendpoint returns 200 for each product.featurefile with two new scenariosFiles changed
tests/performance/test_resource_usage.pytests/performance/test_resource_usage.feature