Repository navigation
test(parquet): reduce macOS race test memory pressure - #1275
Merged
Merged
Conversation
Avoid retaining gigabyte-sized Parquet output in regression tests, serialize Parquet package tests on constrained macOS ARM64 runners, and correct the CI job labels.
lidavidm
approved these changes
Sep 2, 2026
zeroshade
added a commit
that referenced
this pull request
Sep 8, 2026
…es (#1301) ### 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
The macOS test jobs run on 7 GB ARM64 runners and intermittently kill
parquet/filewhile running under the race detector. Two large-value regression tests each write more than 1 GB and retained all encoded output in memory. Package-level parallelism adds further pressure.Example failure: https://github.com/apache/arrow-go/actions/runs/33590782213/job/100362942846?pr=1241
What changes are included in this PR?
bytes.Bufferoutput in the two large-value tests with a counting writer.-p=1) on Darwin to bound package-level memory pressure.Are these changes tested?
go test -race -tags assert ./parquet/file -count=1go test -race -tags assert,noasm ./parquet/file -count=1bash -n ci/scripts/test.shgit diff --checkBoth formerly high-memory tests also passed independently under
-race -tags assert,noasm.Are there any user-facing changes?
No.