From 619f42c3b1d3bc2dd5a3d89766146cb9161f3c3b Mon Sep 17 00:00:00 2001 From: Michael Heller <21163552+mdheller@users.noreply.github.com> Date: Thu, 23 Jul 2026 12:29:35 -0400 Subject: [PATCH] =?UTF-8?q?linux=20ci:=20add=2024G=20swap=20+=20-j2=20?= =?UTF-8?q?=E2=80=94=20nightly-linux=20OOM-dead=20(exit=20143)=20for=20a?= =?UTF-8?q?=20week?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GitHub-hosted nightly-linux has failed every day for 8+ days, across many commits predating any recent work — all exit 143 (SIGTERM/OOM). Firefox is too big for the 16GB standard runner without swap. Same fix that got the Windows lane past its OOM wall: 24G swapfile (ubuntu leg; fedora runs in a container where swapon isn't available) + cap mach at -j2 so concurrent heavy TUs don't exhaust RAM. The sovereign builder (32c/128GB) stays at full parallelism. --- .github/workflows/nightly-linux.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly-linux.yml b/.github/workflows/nightly-linux.yml index e3a8106..00f5346 100644 --- a/.github/workflows/nightly-linux.yml +++ b/.github/workflows/nightly-linux.yml @@ -71,6 +71,17 @@ jobs: sudo docker image prune --all --force || true df -h / + - name: Add swap (16GB runners OOM the Firefox compile → exit 143) + if: matrix.container == '' + run: | + sudo swapoff -a || true + sudo rm -f /mnt/swapfile /swapfile || true + sudo fallocate -l 24G /mnt/swapfile + sudo chmod 600 /mnt/swapfile + sudo mkswap /mnt/swapfile + sudo swapon /mnt/swapfile + free -h + - name: Install system dependencies run: | ${{ matrix.pkg_update }} @@ -120,7 +131,10 @@ jobs: - name: Build BearBrowser working-directory: build/workspaces/${{ env.PROFILE }}-${{ env.VERSION }}-${{ env.RELEASE }}/source/bearbrowser-${{ env.VERSION }}-${{ env.RELEASE }} - run: MOZBUILD_STATE_PATH=${{ github.workspace }}/.mozbuild ./mach build + # -j2: mach's memory heuristic over-parallelizes on the 16GB runner and + # OOM-kills the compile (exit 143). Cap concurrent heavy TUs; the 24G + # swap above absorbs the rest. Same fix as nightly-windows. + run: MOZBUILD_STATE_PATH=${{ github.workspace }}/.mozbuild ./mach build -j2 - name: Measure fingerprint on the REAL compiled binary (authoritative) if: matrix.distro == 'ubuntu'