feat: add k6 load/performance tests and CI workflow (#71)#85
Merged
Merged
Conversation
- Add test/load/health-smoke.js: GET /health at 1000 RPS for 30s - Add test/load/profile-reads.js: GET /profiles/:username at 200 RPS for 5min with ramp-up/down - Add test/load/auth-rate-limit.js: verify 10 req/min rate limit on auth endpoints - Add test/load/tip-creation.js: burst POST /tips at 50 RPS for 5min with ramp-up/down - Add .github/workflows/load-test.yml: CI job using grafana/k6-action with JSON artifact upload - Add docs/PERFORMANCE.md: load envelope, thresholds, and usage documentation Thresholds: p95 < 200ms, error rate < 1% Closes StellarTips#71
Contributor
|
K6 load tests with proper thresholds and a CI workflow is going to catch regressions early. Nicely done — merged. |
8 tasks
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
Closes #71
Adds k6 load/performance tests to establish API throughput baselines and catch regressions in CI.
Changes
Load Test Scripts (
test/load/)health-smoke.jsGET /healthprofile-reads.jsGET /profiles/:usernameauth-rate-limit.jsPOST /auth/logintip-creation.jsPOST /tipsAll scripts use
check()andTrendmetrics from k6, output to JSON for trend tracking, and apply ramp-up/down phases where applicable.CI Workflow (
.github/workflows/load-test.yml)grafana/k6-action@v0.3.1(Docker-based k6)k6-load-test-resultsartifact (retained 30 days)main(load test file changes) andworkflow_dispatchDocumentation (
docs/PERFORMANCE.md)Documents the load envelope, thresholds, and local/CI usage instructions.
Thresholds