Skip to content

ci: run parquet/file alone on macOS instead of serializing all packages - #1301

Merged
zeroshade merged 1 commit into
apache:mainfrom
zeroshade:ci/parquet-macos-serial-file
Sep 8, 2026
Merged

zeroshade merged 1 commit into
apache:mainfrom
zeroshade:ci/parquet-macos-serial-file

Conversation

@zeroshade

Copy link
Copy Markdown
Member

Rationale for this change

#1275 added -p=1 for Darwin to keep the 7 GB macOS ARM64 runners from
OOM-killing parquet/file. That works, but it serializes every parquet
package, across both the assert and assert,noasm passes, under -race.
The cost is about 4.5 minutes per macOS job, which ate the entire headroom
against the timeout-minutes: 20 cap on the macos job.

Job durations on main, 631 samples over Aug 6 – Sep 8, split at the #1275
merge on Sep 3:

macOS ARM64 job before avg after avg after max cap
Go 1.25 11.6m 16.4m 20.1m 20
Go 1.26 11.5m 16.0m 20.4m 20
Go 1.25 - CGO 17.9m 19.7m 24.1m 25
Go 1.26 - CGO 14.5m 18.5m 24.8m 25

Linux is flat across the same window (AMD64 Debian −0.1/+0.2, ARM64 Debian
−0.1/+0.4), which isolates the change to the Darwin-only branch rather than
new tests or runner drift.

Three macOS jobs on main have since been killed at the 20-minute mark
(20.1m, 20.4m, 20.4m), and the CGO jobs at 24.8m are one bad run from the
same fate.

What changes are included in this PR?

Only parquet/file holds the large-value regression tests that exhaust the
runner, so give that one package its own go test invocation on Darwin and
let the other 17 parquet packages keep their default parallelism. The memory
fix from #1275 is preserved — parquet/file still never shares a runner with
another parquet package — without paying for it across the whole tree.

Non-Darwin behaviour is byte-identical to before: two invocations over
./..., no -p flag.

Are these changes tested?

  • bash -n ci/scripts/test.sh
  • shellcheck ci/scripts/test.sh — clean
  • shfmt -d ci/scripts/test.sh — clean
  • Dry-ran the package partition against this tree: on Darwin it yields 1
    serial package (.../parquet/file) and 17 parallel, with no leakage of
    file into the parallel set; on non-Darwin it yields exactly ./....
  • go test -tags assert -run XXX ./... and go test -tags assert,noasm -run XXX ./... in parquet/ both compile clean, confirming the invocation form.

The real check is the macOS timings on this PR's own CI run.

Are there any user-facing changes?

No.

apache#1275 added -p=1 on Darwin to stop parquet/file from OOM-killing the 7 GB
macOS ARM64 runners. That serialized every parquet package across both the
assert and assert,noasm passes under -race, costing ~4.5 minutes per macOS
job and consuming the headroom against the 20-minute job timeout. Three
macOS jobs on main have since been killed at the cap.

Only parquet/file holds the large-value tests that exhaust the runner, so
give that package its own invocation on Darwin and let the other 17 parquet
packages keep their default parallelism. Non-Darwin behaviour is unchanged.
@zeroshade

Copy link
Copy Markdown
Member Author

CI results, two runs of this branch (both green on every macOS job), against the
post-#1275 baseline on main:

macOS ARM64 job main avg main max this PR #1 this PR #2 this PR mean cap
Go 1.25 16.4m 20.1m 17m05s 7m51s 12.5m 20
Go 1.26 16.0m 20.4m 10m35s 10m47s 10.7m 20
Go 1.27 16.5m 19.3m 8m44s 11m08s 9.9m 20
Go 1.25 - CGO 19.7m 24.1m 21m43s 18m30s 20.1m 25
Go 1.26 - CGO 18.5m 24.8m 15m07s 15m14s 15.2m 25
Go 1.27 - CGO 17.1m 24.2m 18m54s 16m02s 17.5m 25

The non-CGO jobs — the ones that were actually being killed at the cap — average
11.0m over six samples, down from 16.3m, which is back to the pre-#1275
baseline of ~11.5m. Worst observed is 17m05s against a 20-minute cap, versus
20.4m before.

Two caveats worth stating rather than burying:

  • The Go 1.25 non-CGO job read 17m05s on the first run and 7m51s on the second.
    A 9-minute spread on identical code is runner variance, not signal; it is why
    I took a second sample before claiming anything. It also means the "worst
    observed" figure above should be read as noisy.
  • The CGO jobs improve only modestly (18.4m → 17.6m mean). They were never the
    ones timing out, and they spend a large fraction of their wall time on
    Homebrew setup that this change does not touch.

parquet/file still gets its own invocation on Darwin, so the memory fix from
#1275 is intact; nothing else about the OOM conditions changed.

@zeroshade
zeroshade merged commit 164c0c3 into apache:main Sep 8, 2026
55 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