Skip to content

Review and refresh load test scripts against the current route/auth model #61

Open

Description

@diese-tech

Parent discovery

Tracked under #53 — Discovery: Half-Shell codebase audit and technical-debt dependency map. Smaller follow-up requested directly by the repo owner alongside #60 (payment provider hardening).

Context

The repo already has a reasonably thorough load-testing setup: 7 scripts (scripts/load-*.mjs) plus docs/LOAD_TESTING.md, covering public intake, technician SMS-token actions, and authenticated office traffic — each with single-company and multi-company-fleet variants. This is not a "build from scratch" ask — it's a staleness check after #49–#59 changed the routes and auth model these scripts drive traffic against.

Scope

  1. Read each scripts/load-*.mjs against the routes it exercises as they exist today, checking for drift since the scripts were last touched — most notably:
  2. Confirm env vars in docs/LOAD_TESTING.md (LOAD_BASE_URL, LOAD_COMPANY_SLUG, etc.) match what the scripts actually read today — no silent renames.
  3. Actually run each script once against a local dev server with seeded QA data (npm run seed:live-qa / npm run seed:load:fleet) to confirm it still executes end-to-end without erroring out before load even starts — not a full break-it stress run, just "does it still work."
  4. Fix anything found stale (a moved route, a renamed env var, a fixture that no longer satisfies a route's current validation) with a minimal, targeted change — this is a maintenance pass, not a rewrite.

Acceptance criteria

  • Each load script has been read against its target route(s) as they exist today and confirmed (or fixed) to still match current behavior, particularly Add behavior-level regression coverage for untested production mutation seams #58's new technician-ownership check.
  • Each script has been run once end-to-end locally (not necessarily at full load) and confirmed to execute without erroring before the load phase.
  • docs/LOAD_TESTING.md is updated if anything (env vars, flow descriptions) has drifted.
  • Any fix is minimal and targeted — no redesign of the load-testing approach itself.

Out of scope

  • Designing new stress-test scenarios beyond what already exists.
  • Running full break-it load campaigns as part of this issue (that's a manual, on-demand activity per docs/LOAD_TESTING.md's own "Break-It Strategy" section — this issue is about the scripts being correct and runnable, not about actually finding the app's breaking point).

Activity

  1. added a commit that references this issue on Sep 20, 2026
  2. diese-tech commented on Sep 20, 2026

    @diese-tech
    OwnerAuthor

    Reopening — this got auto-closed by PR #70's merge, which wasn't intended. My PR body literally contained the phrase "Does not close #61," and GitHub's closing-keyword parser matches the substring "close #61" regardless of the negation in front of it, so it closed anyway. My mistake for the phrasing.

    Per your choice (option 3), this stays open: the static audit + one doc fix from PR #70 stand as partial progress, but the acceptance criterion of actually running each script end-to-end against a local dev server with seeded QA data is still unmet — that needs SUPABASE_SERVICE_ROLE_KEY, which the connected Supabase MCP tool correctly never exposes. Revisit whenever you're ready to either run it yourself per docs/LOAD_TESTING.md or provide that key through a mechanism you trust.


    Generated by Claude Code


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions