Repository navigation
ci(jtreg): split shards by each test's median time over five CI runs, which the recorded times understated up to threefold - #114
Conversation
… which the recorded times understated up to threefold
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
PR #114 replaces the one-run awk refresh of test/jtreg/times.tsv with a median over several CI runs. docs/development.md now documents downloading each run's times-* artifacts into per-run directories and merging them with the new scripts/jtreg/times.ts, which keeps each test's median time and preserves times for tests a run left out; times.tsv itself is regenerated (no text diff shown).
review-bot, model nvidia/nemotron-3.5-super-vl:free, verdict approve
There was a problem hiding this comment.
The PR replaces the single-run awk refresh of test/jtreg/times.tsv with a median over multiple CI runs. The new scripts/jtreg/times.ts merges times-* artifacts from several runs, sets each test's time to its median across the runs it appeared in, and preserves old times for tests absent from all runs. docs/development.md is updated to describe the new workflow, and test/jtreg/times.tsv is regenerated (no text diff shown).
review-bot, model nvidia/nemotron-3.5-super-vl:free, verdict approve
There was a problem hiding this comment.
The PR changes how test/jtreg/times.tsv is refreshed: docs/development.md now describes downloading several CI runs' times-* artifacts and merging them with the new scripts/jtreg/times.ts, which stores each test's median time across the runs and keeps the old time for tests the runs omitted. times.tsv is modified but its new text was not shown, so the recorded medians could not be verified from the diff alone.
review-bot, model nvidia/nemotron-3.5-super-vl:free, verdict approve
|
The review could not show |
There was a problem hiding this comment.
Replaces the single-run refresh of test/jtreg/times.tsv with a median over several full CI runs. Adds scripts/jtreg/times.ts, which merges each run directory's per-shard times.tsv, takes each test's median across runs, keeps old times for tests absent from the runs, and rewrites the file sorted by time. Updates docs/development.md to describe the multi-run merge via node scripts/jtreg/times.ts instead of the one-run awk command.
review-bot, model nvidia/nemotron-3.5-super-vl:free, verdict approve
What this changes
PR CI waits for the slowest of its 8 OpenJDK shards, and the shards differ a lot: in #111's run they took 313 s to 527 s.
run.tssplits tests by the times intest/jtreg/times.tsv, but those understate the slowest tests on CI two- to threefold (for exampleforkjoin/Integrate.java: 144 s recorded, 194 s to 461 s in recent runs), so several heavy tests can land in one shard and slow each other down.times.tsvnow holds each listed test's median time over the five most recent full CI runs (45196043415, 46290048136, 46342647928, 47144421837, 47147976351).scripts/jtreg/times.tsdoes that merge, and docs/development.md uses it in place of the one-run awk refresh, since one run's times vary too much.Tests
pnpm typecheckpasses. This PR runs no OpenJDK tests:select.tsskipstimes.tsv, andtimes.tsis not loaded by the runner.Noticed, not fixed
Integrate,RandomCanaryPi,TestSameLength,TransferTo,SpecialHeadersTest), so making the VM faster is what shortens PR CI further.