feat : feature/issue 90 load test validation#181
Merged
Mac-5 merged 16 commits intoSynapse-bridgez:developfrom Feb 26, 2026
Merged
feat : feature/issue 90 load test validation#181Mac-5 merged 16 commits intoSynapse-bridgez:developfrom
Mac-5 merged 16 commits intoSynapse-bridgez:developfrom
Conversation
- Created load_validation_test.rs with comprehensive test cases - Implemented k6 JSON output parser for metrics extraction - Added validation for p95/p99 latency, error rate, and throughput - Included tests for DB connections, memory, and CPU usage - Created performance thresholds for sustained, spike, and soak tests - Added run_validation.sh helper script for running tests - Added comprehensive VALIDATION_README.md documentation Tests validate: - P95 latency under threshold (500ms sustained, 1000ms spike) - P99 latency under threshold (1000ms sustained, 2000ms spike) - Error rate under threshold (5% sustained, 10% spike, 2% soak) - Throughput meets minimum (10 req/s sustained, 5 req/s spike) - Database connections within limits (200 max) - Memory usage stable (1024 MB max) - CPU usage reasonable (90% sustained, 95% spike) All code formatted with cargo fmt and ready for CI checks.
- Update Cargo.lock with correct checksums for displaydoc v0.2.5 - Fix percentile calculation using linear interpolation - Fix load validation tests to properly include http_reqs metrics - Add create_test_k6_output_with_time helper function for time-based tests - Fix clippy warning (unused variable) - All 11 load validation tests now pass
3882e94 to
8a7543f
Compare
Mac-5
approved these changes
Feb 26, 2026
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.
closes #167
summary
Load Test Validation Suite
Description
Implements automated validation of load testing results to ensure performance benchmarks are met and detect performance regressions.
Changes
tests/load_validation_test.rswith 11 test cases that parse k6 JSON outputtests/load/run_validation.shhelper script for running teststests/load/VALIDATION_README.mdandtests/load/QUICKSTART.mdFeatures
Validates Performance Metrics
Test Cases
test_p95_latency_under_threshold- Validates 95th percentile latencytest_p95_latency_exceeds_threshold- Tests failure detectiontest_error_rate_under_threshold- Validates error ratetest_error_rate_exceeds_threshold- Tests error detectiontest_throughput_meets_minimum- Validates throughputtest_db_connections_within_limits- Validates DB limitstest_memory_usage_stable- Validates memory stabilitytest_cpu_usage_reasonable- Validates CPU usagetest_percentile_calculation- Tests calculation logictest_spike_test_thresholds- Validates spike thresholdstest_soak_test_thresholds- Validates soak thresholdsUsage
Testing
All tests pass:
Code formatted and ready for CI:
cargo fmt --check # ✓ passesDocumentation
tests/load/VALIDATION_README.md- Full documentation with CI/CD examplestests/load/QUICKSTART.md- 5-minute getting started guide