Skip to content

ci: run each eval case's three runs in parallel - #28

Merged
jimisola merged 1 commit into
mainfrom
ci/plugin-evals-concurrency
Oct 12, 2026
Merged

jimisola merged 1 commit into
mainfrom
ci/plugin-evals-concurrency

Conversation

@jimisola

@jimisola jimisola commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

What & Why

A full eval run (every suite, 19 cases × 3 runs) took ~14 min, because the workflow runs cases one after another and claude plugin eval ran each case's 3 runs one at a time (-j defaults to 1). -j 3 runs them side by side.

The case's three runs share the access token minted by its exchange. Only the GitHub JWT is single-use (check_jti); the access token is reusable for its ~10 min lifetime, and a case at -j 3 takes well under that.

Cost goes up. Same runs and judge calls, but run side by side they no longer reuse the prompt cache the previous run wrote (most likely cause): nearly every case cost 10–30% more, and judge cost per run roughly doubled.

Test Plan

  • actionlint clean
  • claude plugin validate .
  • This PR's eval run (every suite): all 19 cases pass, no auth failures. Eval step 5 min 21 s against ~14 min; cost $3.63 against $2.74 sequential (+33%). grid-rejected-at-full-infill scored 0.6 on one run (case still passes at 0.87).

A full run took ~14 min because every run of every case ran one after
another. -j 3 runs a case's runs side by side; they share the case's
minted access token, which only the GitHub JWT exchange makes single-use.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola jimisola self-assigned this Oct 11, 2026
@jimisola

Copy link
Copy Markdown
Owner Author

Closing: cost matters more than wall time here. Running a case's runs in parallel cost ~33% more ($3.63 vs $2.74 for every suite), most likely because the runs stop reusing each other's prompt cache. The workflow stays sequential.

@jimisola jimisola closed this Oct 12, 2026
@jimisola
jimisola deleted the ci/plugin-evals-concurrency branch October 12, 2026 17:33
@jimisola

Copy link
Copy Markdown
Owner Author

Reopened: the extra cost (10–30% per case) is acceptable for the faster runs.

@jimisola
jimisola restored the ci/plugin-evals-concurrency branch October 12, 2026 17:33
@jimisola jimisola reopened this Oct 12, 2026
@jimisola
jimisola added this pull request to stack #30 October 12, 2026 17:37
@jimisola
jimisola merged commit 7c7cb19 into main Oct 12, 2026
1 of 2 checks passed
@jimisola
jimisola deleted the ci/plugin-evals-concurrency branch October 12, 2026 18:07
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.

1 participant