Skip to content

Claude/improve ars test runner gmv1y#42

Merged
maximusunc merged 2 commits into
mainfrom
claude/improve-ars-test-runner-GMV1y
May 7, 2026
Merged

Claude/improve ars test runner gmv1y#42
maximusunc merged 2 commits into
mainfrom
claude/improve-ars-test-runner-GMV1y

Conversation

@maximusunc
Copy link
Copy Markdown
Collaborator

No description provided.

claude and others added 2 commits May 7, 2026 00:22
The previous performance runner tagged each poll request with the
parent_pk as its name, so every query produced its own Locust stats row
and the result collector silently overwrote rows as it iterated. It also
fired a manual GET_RESPONSE event on top of the auto-tracked GET, which
double-counted polls and made the headline "Number of Requests" number
opaque. There was no metric for end-to-end query completion time or for
how many queries actually finished.

Reshape ARSUser (and ARAUser, mirrored) into three explicit layers:

- POST submit_query for submission stats
- GET poll_status for polling stats (one shared name, no per-pk)
- A custom QUERY event fired exactly once per query in a try/finally,
  with response_time set to wall time from submit to terminal state and
  the name encoding the outcome: completed, errored, polling_failed,
  timed_out, or abandoned.

Cap the poll deadline at test_run_time and convert GreenletExit during
the poll loop into an "abandoned" record so we can count in-flight
queries when the runner shuts down.

Rewrite collect_performance_result to consume this layered shape
without overwriting rows, and rewrite dump_result_summary to emit
per-outcome counts, completed-throughput, and avg/median/p95/min/max
both for completed-only queries and across all outcomes, plus separate
submit and poll request stats.
@maximusunc maximusunc merged commit b694070 into main May 7, 2026
0 of 2 checks passed
@maximusunc maximusunc deleted the claude/improve-ars-test-runner-GMV1y branch May 7, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants