Repository navigation
Give the macOS arm64 CI runner two test forks, keeping it inside its time limit - #1535
Merged
Merged
Conversation
Frotty
marked this pull request as ready for review
October 22, 2026 06:34
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
The
macos-latestmaster job on aee56dd timed out. "Run tests" hit its 22-minute step limit, no test failed, and there were no results. A rerun of that job passed in 16m57s. Over the last five master runs that step took between 12 and 22 minutes on macOS arm64, against 5 to 8 on Ubuntu. That is with macOS skipping-PallBackends, which Ubuntu and Windows run.Cause. That runner has 3 CPUs and 7 GB of RAM (GitHub-hosted runners). The job measured
Apple M1 (Virtual),hw.ncpu3 andhw.memsize7516192768 (7.0 GiB). On ittestForkCount()gave one fork. Half of 3 cores rounded down to 1, and the memory bound gave (7 − 4 GiB reserve) / 2 GiB = 1. Every other runner gets two forks. The arm64 job was the only one running all 3,361 tests in one JVM, and the suite grows with each fix.Measurements. A temporary workflow on this branch ran the master test step's command on
macos-latest, at commit 7ce6fc1, with-PtestForksset to 1, 2 and 3. It sampledvm.swapusageandmemory_pressureevery 15 s. All 3,361 tests passed in each run.Memory was never the limit, even with three forks. Three forks run six
-XX:ActiveProcessorCount=2JVMs on three cores, and each class ran 60% slower. Two forks keep to the existing half-the-cores rule.Change.
testForkCount()halves the cores rounding up, and reserves 3 GiB instead of 4. On the arm64 runner that gives two forks.macos-latest. The test task took 715 s with--infologging and still had 47% of memory free.The step and test-task timeouts stay as they are. At the measured 641 s, the arm64 test task now uses about half of its 20-minute limit, so the limit still catches a hang.
The temporary workflow was removed in the last commit. Not verified: the macOS Intel and Windows master jobs, whose fork counts this does not change.