Skip to content

CI: re-measure the macOS bats seconds table so no shard reaches the 30-minute cap - #2135

Merged
fujibee merged 1 commit into
mainfrom
ci/remeasure-shard-seconds-1201
Dec 1, 2026
Merged

fujibee merged 1 commit into
mainfrom
ci/remeasure-shard-seconds-1201

Conversation

@fujibee

@fujibee fujibee commented Dec 1, 2026

Copy link
Copy Markdown
Owner

What was wrong

The 2026-12-01 daily run (46547400528) ended cancelled: bats (macos-latest 4/6) hit the 30-minute job cap while still passing tests. No single test hung; the slowest took 68 s.

The shard plan comes from .github/scripts/bats-file-seconds.tsv, last measured on 2026-11-19. Since then the suite grew from 6515 s to 8139 s of macOS time, and 13 files had no row. The partition planned from the old table puts 1628 s on shard 4, so that shard ran 27 minutes on the 1.9.4 release run and crossed 30 minutes on a slower daily runner.

Change

The table is re-measured from the macOS bats-timings artifacts of run 46470586408 (the 1.9.4 release pull request, all six shards green). The header names the artifact ids and the reason for the refresh. The data file is the only change: the shard count stays at 6 and the timeout stays at 30 minutes.

Planned per-shard seconds, priced by this run's numbers:

  • before: 1175 / 1502 / 1196 / 1628 / 1299 / 1339
  • after: 1357 / 1357 / 1357 / 1356 / 1356 / 1356

Process spawns: none. Only the CI partition changes.

Tests

  • tests/test_ci_sharding.bats passes locally (macOS), including the balance-ratio check and the coverage check that every file lands in exactly one shard.
  • Every tests/*.bats file on main has a row.
  • .github/scripts/check-*.sh: all pass.

…0-minute cap

The 2026-12-01 daily run lost macOS shard 4/6 to the job cap while it was still passing tests. The table was measured on 2026-11-19, summed to 6515 s against 8139 s now, and missed 13 files, so the plan put 1628 s on that shard. Re-measured from run 46470586408, every shard is planned at about 1357 s.
@fujibee
fujibee merged commit 28435d6 into main Dec 1, 2026
33 checks passed
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