diff --git a/.github/release-note-canonical.md b/.github/release-note-canonical.md index 54be38dc486..18d24415ef3 100644 --- a/.github/release-note-canonical.md +++ b/.github/release-note-canonical.md @@ -15,3 +15,10 @@ sudo add-apt-repository -y ppa:dotnet/backports sudo apt-get install -y dotnet-runtime-8.0 ``` +## Linux ARM32 runner override + +The ARM32 runner build retains the local `RUNNER_IGNORE_ARM32_KILL_SWITCH` environment variable. It is read only from the runner process environment, not from workflow variables or the Actions service. The default ignores service-driven ARM32 deprecation and kill signals; set it to `false` to explicitly re-enable them. + +## Runner package contents + +Package validation now checks that published bundles contain the expected Node runtime and version. Linux ARM32 bundles use Node 22; other Linux bundles use Node 24. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41a357425a8..206432cce4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,9 +14,14 @@ on: paths-ignore: - '**.md' +concurrency: + group: runner-ci-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: strategy: + fail-fast: false matrix: runtime: [ linux-s390x, linux-ppc64le, linux-x64, linux-arm64, linux-arm ] include: @@ -83,6 +88,22 @@ jobs: working-directory: src if: matrix.runtime == 'linux-x64' + # L0 uses DEBUG-only test hooks; keep Release layout/package validation separate. + - name: L0 (native arm64) + if: matrix.runtime == 'linux-arm64' + run: | + unset ACTIONS_RUNNER_HOOK_JOB_STARTED ACTIONS_RUNNER_HOOK_JOB_COMPLETED + # 2026/11/25 - exclude ProcessExtensionL0.SuccessReadProcessEnv on arm64 because its one-shot /proc environment read races Node execve; remove after the upstream retry fix lands. + dotnet test Test/Test.csproj -c Debug /p:PackageRuntime=${{ matrix.runtime }} --logger:trx --filter "FullyQualifiedName!~GitHub.Runner.Common.Tests.ProcessExtensionL0" + working-directory: src + + - name: L0 (native ppc64le/s390x) + if: matrix.runtime == 'linux-ppc64le' || matrix.runtime == 'linux-s390x' + run: | + unset ACTIONS_RUNNER_HOOK_JOB_STARTED ACTIONS_RUNNER_HOOK_JOB_COMPLETED + ./dev.sh test Debug ${{ matrix.runtime }} + working-directory: src + # Create runner package tar.gz/zip - name: Package Release if: github.event_name != 'pull_request' @@ -96,6 +117,12 @@ jobs: mkdir package_test tar -xvzf ../_package/*.tar.gz -C package_test ./package_test/config.sh --version + # Validate the packaged payload, not only _layout: packaging can omit or mis-version bundled Node runtimes. + NODE24_VERSION=$(sed -n 's/^NODE24_VERSION="\([0-9.]*\)"/\1/p' Misc/externals.sh) + test -x package_test/externals/node24/bin/node + test ! -e package_test/externals/node20 + test ! -e package_test/externals/node22 + test "$(package_test/externals/node24/bin/node --version)" = "v$NODE24_VERSION" working-directory: src # linux-arm produces armv7l (32-bit) binaries that cannot execute on the @@ -107,14 +134,20 @@ jobs: run: | mkdir package_test tar -xzf ../_package/*.tar.gz -C package_test + # Validate the packaged payload, not only _layout: packaging can omit or mis-version bundled Node runtimes. + NODE22_VERSION=$(sed -n 's/^NODE22_VERSION="\([0-9.]*\)"/\1/p' Misc/externals.sh) + test -x package_test/externals/node22/bin/node + test ! -e package_test/externals/node20 + test ! -e package_test/externals/node24 # Use sudo only if the runner user can't reach the Docker daemon directly. DOCKER=docker if ! docker info >/dev/null 2>&1; then DOCKER="sudo docker"; fi $DOCKER run --rm --platform linux/arm/v7 \ -e RUNNER_ALLOW_RUNASROOT=1 \ + -e EXPECTED_NODE_VERSION="$NODE22_VERSION" \ -v "$(pwd)/package_test:/runner" -w /runner \ arm32v7/ubuntu:noble \ - bash -c 'set -e; apt-get update -qq; DEBIAN_FRONTEND=noninteractive apt-get install -y -qq libicu74 libatomic1 ca-certificates >/dev/null; ./config.sh --version' + bash -c 'set -e; apt-get update -qq; DEBIAN_FRONTEND=noninteractive apt-get install -y -qq libicu74 libatomic1 ca-certificates >/dev/null; ./config.sh --version; test "$(./externals/node22/bin/node --version)" = "v$EXPECTED_NODE_VERSION"; test "$(./externals/node22/bin/node -p process.arch)" = arm' working-directory: src # Upload runner package tar.gz/zip as artifact