Repository navigation
fix(ci): add swap to Linux unit test runners - #22780
Merged
mikehardy merged 1 commit intoOct 26, 2026
Merged
Conversation
The Ubuntu unit test jobs fill their 16 GB of RAM and the runner's 3 GB swap file, then slow down until tests time out or the job is killed. Add 8 GB of swap on Linux, as Windows already gets a pagefile. Fixes 22766 Assisted-by: Claude Opus 5.5
david-allison
approved these changes
Oct 26, 2026
david-allison
left a comment
Member
There was a problem hiding this comment.
LGTM, cheers
A comment would be useful.
Merge at will if there's no movement in 24 hours
mikehardy
approved these changes
Oct 26, 2026
mikehardy
left a comment
Member
There was a problem hiding this comment.
LGTM. Man, Kotlin+JDK+Android is RAM hungry.
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.
Note
Assisted-by: Opus 5.5
Purpose / Description
The Ubuntu unit test jobs run out of memory. They fill the 16 GB of RAM and the runner's 3 GB swap file, then slow down until a test times out or the job is killed. Windows already gets a pagefile, so this gives Linux 8 GB of extra swap.
Fixes
Approach
Adds a step that creates and enables an 8 GB swap file on Linux runners.
How Has This Been Tested?
All runs on my fork, three Ubuntu jobs each, with memory logged every 30s:
Learning (optional, can help others)
The Linux runners already have a 3 GB swap file, it just isn't enough for the unit tests.
Checklist
Please, go through these checks before submitting the PR.