Add k6 load testing suite and CLAUDE.md #9

Merged
JoeBot merged 2 commits from claude/beautiful-gauss into main 2026-04-02 17:42:36 -04:00
Owner

Summary

  • Add k6 load test scenarios: auth-dashboard flow (login → profile → dashboard KPIs → parallel widget fetches → token refresh → logout) and CRUD flow (units, vendors, journal entries, payments, reports)
  • Add environment configs (staging/production/local) with p95 latency and error rate thresholds
  • Add parameterized test user pool CSV covering all app roles (treasurer, admin, president, manager, viewer, homeowner)
  • Add New Relic NRQL query library (25+ queries for auth latency, dashboard perf, CRUD ops, error analysis, DB duration, load test comparison)
  • Add empty baseline.json structure matching all tested endpoints for future regression tracking
  • Add CLAUDE.md documenting full stack, auth pattern, 180+ route map, key file paths, env vars, and conventions

Test plan

  • Replace placeholder org UUIDs in load-tests/config/user-pool.csv with real staging org IDs
  • Seed test users in staging environment matching the CSV
  • Run k6 run --env TARGET_ENV=local load-tests/scenarios/auth-dashboard-flow.js against local dev
  • Run k6 run --env TARGET_ENV=local load-tests/scenarios/crud-flow.js against local dev
  • Verify all k6 checks pass and thresholds are met
  • Run against staging and capture first baseline into baseline.json
  • Validate NRQL queries in New Relic dashboard

🤖 Generated with Claude Code

## Summary - Add k6 load test scenarios: **auth-dashboard flow** (login → profile → dashboard KPIs → parallel widget fetches → token refresh → logout) and **CRUD flow** (units, vendors, journal entries, payments, reports) - Add environment configs (staging/production/local) with p95 latency and error rate thresholds - Add parameterized test user pool CSV covering all app roles (treasurer, admin, president, manager, viewer, homeowner) - Add New Relic NRQL query library (25+ queries for auth latency, dashboard perf, CRUD ops, error analysis, DB duration, load test comparison) - Add empty baseline.json structure matching all tested endpoints for future regression tracking - Add CLAUDE.md documenting full stack, auth pattern, 180+ route map, key file paths, env vars, and conventions ## Test plan - [ ] Replace placeholder org UUIDs in `load-tests/config/user-pool.csv` with real staging org IDs - [ ] Seed test users in staging environment matching the CSV - [ ] Run `k6 run --env TARGET_ENV=local load-tests/scenarios/auth-dashboard-flow.js` against local dev - [ ] Run `k6 run --env TARGET_ENV=local load-tests/scenarios/crud-flow.js` against local dev - [ ] Verify all k6 checks pass and thresholds are met - [ ] Run against staging and capture first baseline into `baseline.json` - [ ] Validate NRQL queries in New Relic dashboard 🤖 Generated with [Claude Code](https://claude.com/claude-code)
JoeBot added 1 commit 2026-03-19 15:52:09 -04:00
Add comprehensive load testing infrastructure:
- k6 auth-dashboard flow (login → profile → dashboard KPIs → widgets → refresh → logout)
- k6 CRUD flow (units, vendors, journal entries, payments, reports)
- Environment configs with staging/production/local thresholds
- Parameterized user pool CSV matching app roles
- New Relic NRQL query library (25+ queries for perf analysis)
- Empty baseline.json structure for all tested endpoints
- CLAUDE.md documenting full stack, auth, route map, and conventions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
JoeBot added 1 commit 2026-04-02 17:42:26 -04:00
JoeBot merged commit 629d112850 into main 2026-04-02 17:42:36 -04:00
JoeBot deleted branch claude/beautiful-gauss 2026-04-02 17:42:36 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JoeBot/HOA_Financial_Platform#9
No description provided.