From 792c4efb119e51dab942f713393da25e28d790a8 Mon Sep 17 00:00:00 2001 From: Ashish Yadav <48384865+criticalAY@users.noreply.github.com> Date: Mon, 26 Oct 2026 15:41:51 +0530 Subject: [PATCH] fix(ci): add swap to Linux unit test runners 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 --- .github/workflows/tests_unit.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests_unit.yml b/.github/workflows/tests_unit.yml index 4a0abfe7e13a..dda5dce9009f 100644 --- a/.github/workflows/tests_unit.yml +++ b/.github/workflows/tests_unit.yml @@ -145,6 +145,15 @@ jobs: maximum-size: 12GB disk-root: "C:" + - name: Configure Linux Swap + if: runner.os == 'Linux' + run: | + sudo fallocate -l 8G /swapfile-ci + sudo chmod 600 /swapfile-ci + sudo mkswap /swapfile-ci + sudo swapon /swapfile-ci + swapon --show + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 50