Free Tests splits the suite from freshly recorded test times (GST-3303) (#4578)

Free Tests should report about 45 seconds sooner. It splits the suite
into shards using a record of how long each test file takes, and that
record was eleven days old and missing 67 files, so some shards got far
more real work than others.

The times are now re-recorded for every file, so the shards should
finish close together and the slowest one sets the result less often.

Nothing to do: every test still runs, and no check name changes.

Refs: GST-3303
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-20 22:26:09 +00:00
1 parent ad65f62edf
commit 87a473e5aa
5 files changed
+1708 -1634

No files matched your search

+3 -3
View File
@@ -42,7 +42,7 @@ on:
workflow_dispatch:
inputs:
free_runner:
description: 'Runner-sizing experiments only: Ubicloud runner for the free-suite shards (ubicloud-standard-2, -4 or -8; empty keeps FREE_SUITE_RUNNER). Never cite such a run as a PR or train Free Tests result.'
description: 'Runner-sizing experiments only: Ubicloud runner for the free-suite shards (ubicloud-standard-2, -4, -8 or -16; empty keeps FREE_SUITE_RUNNER). Never cite such a run as a PR or train Free Tests result.'
type: string
default: ''
free_shards:
@@ -245,8 +245,8 @@ jobs:
shards="${SHARDS_OVERRIDE:-$FREE_SUITE_SHARDS}"
jobs="${JOBS_OVERRIDE:-$FREE_SUITE_JOBS}"
case "$runner" in
ubicloud-standard-2|ubicloud-standard-4|ubicloud-standard-8) ;;
*) echo "::error::free_runner '$runner' is not ubicloud-standard-2, -4 or -8"; exit 1 ;;
ubicloud-standard-2|ubicloud-standard-4|ubicloud-standard-8|ubicloud-standard-16) ;;
*) echo "::error::free_runner '$runner' is not ubicloud-standard-2, -4, -8 or -16"; exit 1 ;;
esac
case "$shards" in
''|*[!0-9]*) echo "::error::free_shards '$shards' is not a whole number"; exit 1 ;;
+1
View File
@@ -0,0 +1 @@
**Free Tests shards finish closer together.** The recorded per-file test times that Free Tests uses to split the suite were last refreshed on 11-09, and 67 test files added since then had no time at all. The planner counted each of those as a 54-second file, about an hour of work that doesn't exist, so some shards got far more real work than others. The times are now re-recorded for all 1,727 files, and six files that newly run past the 60-second limit are listed with a follow-up to split them. The runner-size trial input also accepts `ubicloud-standard-16`.
+1 -1
View File
@@ -204,7 +204,7 @@ constants in `free-tests.yml` set that size for every event: `FREE_SUITE_RUNNER`
side), which `free-plan` resolves into the shards' runner, shard count and plan.
GSTA-203 chose them by a 3-run A/B against 20 × `ubicloud-standard-4` at k = 1
(the PR that set them has the table). A `workflow_dispatch` run may
override them with `free_runner` (`ubicloud-standard-2`, `-4` or `-8`),
override them with `free_runner` (`ubicloud-standard-2`, `-4`, `-8` or `-16`),
`free_shards` (1–40) and `free_jobs` (1–8) for runner-sizing experiments only;
its job summary says so, and it is never cited as a PR or train Free Tests result.
Each `free-suite` job's GitHub timeout comes from the plan, not a fixed number
File diff suppressed because it is too large. Load diff
+7 -1
View File
@@ -12,6 +12,12 @@
{"file": "crew/test/ship-queue-train-generic.test.ts", "reason": "77s in the 2026-11-09 recording (run 42691699570; unseeded before); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/ship-finish-stack-parent.test.ts", "reason": "68s in the 2026-11-09 recording (run 42691699570; unseeded before); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/ship-ci-carry.test.ts", "reason": "67s in the 2026-11-09 recording (run 42691699570; unseeded before); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/ship-queue-land.test.ts", "reason": "60s in the 2026-11-09 recording (run 42691699570; 59s on 2026-10-31); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"}
{"file": "test/ship-queue-land.test.ts", "reason": "60s in the 2026-11-09 recording (run 42691699570; 59s on 2026-10-31); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/ship-finish-ruled-notes.test.ts", "reason": "79s in the 2026-11-20 recording (bun run test:ubicloud --record-durations on standard-8; 34s on 2026-11-09); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/ship-queue-land-direct.test.ts", "reason": "74s in the 2026-11-20 recording (bun run test:ubicloud --record-durations on standard-8; 51s on 2026-11-09); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "crew/test/ship-queue-train-land.test.ts", "reason": "65s in the 2026-11-20 recording (bun run test:ubicloud --record-durations on standard-8; 54s on 2026-11-09); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/ship-finish-fixed-links.test.ts", "reason": "62s in the 2026-11-20 recording (bun run test:ubicloud --record-durations on standard-8; 36s on 2026-11-09); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/harness-start-hook.test.ts", "reason": "61s in the 2026-11-20 recording (bun run test:ubicloud --record-durations on standard-8; 53s on 2026-11-09); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"},
{"file": "test/autoplan-carry.test.ts", "reason": "60s in the 2026-11-20 recording (bun run test:ubicloud --record-durations on standard-8; 54s on 2026-11-09); admitted so the refreshed seed can land", "todo": "split or speed up; post-11-21 slow-test pass"}
]
}