From c256821418b53c021a63252490b444badfc67db0 Mon Sep 17 00:00:00 2001 From: thedancingdeveloper <306930456+thedancingdeveloper@users.noreply.github.com> Date: Fri, 13 Nov 2026 08:15:40 +0000 Subject: [PATCH] fork-release: pin to node-f, install musl tools when missing (WI-4161) Build job runs on [self-hosted, bigmem, node-f] (nodef-gha-public-rust, 24 GiB / 14 cores): small ci-k8s runners OOM (kache exit 1, oom_kill). CARGO_BUILD_JOBS=5 (memory-bound). New guarded step apt-installs the install-musl-build-tools.sh package list only when musl-gcc is missing and the job runs as root, so a restarted runner container recovers. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/fork-release.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fork-release.yml b/.github/workflows/fork-release.yml index 51262541ce76..c74b3d5e899d 100644 --- a/.github/workflows/fork-release.yml +++ b/.github/workflows/fork-release.yml @@ -28,7 +28,15 @@ env: jobs: build: name: ${{ matrix.target }} - runs-on: [self-hosted, rust-heavy] + # Pinned to node-f (WI-4161): [self-hosted, bigmem, node-f] matches only + # nodef-gha-public-rust (24 GiB / 14 cores). On the small ci-k8s runners + # (11 GiB) the build ran out of memory (kache silent exit 1, cgroup + # oom_kill); other docker runners lack the build tools. + runs-on: [self-hosted, bigmem, node-f] + env: + # Memory-bound, not CPU-bound: 24 GiB allows about 5 parallel rustc + # jobs on the 14 cores without an OOM kill. + CARGO_BUILD_JOBS: 5 strategy: fail-fast: false matrix: @@ -52,6 +60,22 @@ jobs: version: "0.14.0" use-cache: false + # A restarted node-f runner container loses packages installed by hand. + # When musl-gcc is missing and the job runs as root, install the same + # package list install-musl-build-tools.sh uses; a no-op otherwise. + - name: Install musl packages if missing + if: runner.environment == 'self-hosted' + run: | + set -euo pipefail + if command -v musl-gcc >/dev/null 2>&1; then + echo "musl-gcc present; nothing to install" + elif [[ "$(id -u)" -eq 0 ]]; then + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates curl musl-tools pkg-config libcap-dev g++ clang libc++-dev libc++abi-dev lld xz-utils perl make + else + echo "musl-gcc missing and not root; relying on the runner image" >&2 + fi + # rust-heavy jobs have no sudo; its image bakes the packages the upstream # script apt-installs (spot-github-runners image/bake.sh). Shadow `sudo` # so the script's apt-get lines are skipped and everything else runs.