From 40f88453e1fbd8cd8fcec8b2c8eb3329d2c0234f Mon Sep 17 00:00:00 2001 From: Amaury Chamayou <4016369+achamayou@users.noreply.github.com> Date: Wed, 2 Dec 2026 12:26:58 +0000 Subject: [PATCH 1/4] Route VMSS workflows to the Azure Linux 4 runner pools Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/README.md | 10 +++++----- .github/workflows/bencher-ab.yml | 2 +- .github/workflows/bencher.yml | 2 +- .github/workflows/ci.yml | 6 +++--- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/cross-platform-lts.yml | 4 ++-- .github/workflows/lean.yml | 8 ++++---- .github/workflows/long-test.yml | 10 +++++----- .github/workflows/release.yml | 6 +++--- 10 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 0897d813b8c..c4b19bc0aa8 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -1,6 +1,6 @@ Documents the various GitHub Actions workflows, the role they fulfill and 3rd party (i.e. outside of https://github.com/actions/) dependencies if any. -Jobs that build or run CCF use 1ES hosted pools targeted by pool name only, for example `runs-on: [gha-vmss-d16av7-ci]`. +Jobs that build or run CCF use 1ES hosted pools targeted by pool name only, for example `runs-on: [gha-vmss-d16av7-ci-azl4]`. Lightweight jobs that do not, such as the Lean package checks and trace replays, use GitHub-hosted runners. # Shared actions @@ -28,7 +28,7 @@ Builds and runs CCF performance tests, both end to end and micro-benchmarks. Results are stored as artifacts and summarized in the workflow run against an EWMA baseline with the same half-life for all benchmarks and metrics. Triggered on every commit on `main`, twice daily on week days, and manually, but not on PR builds because the setup required to build from forks is complex and fragile in terms of security, and the increase in pool usage would be substantial. -Tests are run on two different testbeds for comparison: gha-vmss-d16av7-ci (Standard_D16ads_v7 VMs with 16 vCPUs and 64 GiB RAM) and gha-aci-genoa (Azure Container Instances with SEV-SNP). +Tests are run on two different testbeds for comparison: gha-vmss-d16av7-ci-azl4 (Standard_D16ads_v7 VMs with 16 vCPUs and 64 GiB RAM) and gha-aci-genoa (Azure Container Instances with SEV-SNP). The Virtual job runs in an Azure Linux 4 container, while the SNP job runs directly on the `gha-aci-genoa` pool image, which is built from `tests/ci/ccf_caci_ci`. Azure Linux 4 does not package the GitHub CLI used to restore previous perf artifacts, so the Virtual job installs a pinned, checksum-verified release with `scripts/install_gh.sh`. @@ -74,7 +74,7 @@ On development branches, where no final release of the version under development Upgrades from 7.x, which is only built for Azure Linux 3, are covered by [Cross-platform LTS](#cross-platform-lts). So is recovery from the ledger and snapshots of 7.x, in the `long` runs of the same workflow. -The Virtual A, B, and C jobs target `gha-vmss-d16av7-ci`, `gha-vmss-d16av7-ci-b`, and `gha-vmss-d16av7-ci-c`, respectively, to distribute demand across the regional pools. +The Virtual A, B, and C jobs target `gha-vmss-d16av7-ci-azl4`, `gha-vmss-d16av7-ci-b-azl4`, and `gha-vmss-d16av7-ci-c-azl4`, respectively, to distribute demand across the regional pools. End to end tests record each network's trace events, of every tag, and upload the capture with their logs. The SNP Genoa job also runs with `CCF_RECOVERY_TRACE=1`, records a recovery trace manifest for each recovery decision protocol scenario, and uploads the manifests with its node logs. @@ -147,7 +147,7 @@ The jobs run in Azure Linux 4 containers, except for the Azure Linux 3 build in - Runs daily on week days. - Can be manually run on a PR by setting `run-long-test` label, or via workflow dispatch. -- VMSS jobs target `gha-vmss-d16av7-ci-c` to use pool C's larger runner capacity. +- VMSS jobs target `gha-vmss-d16av7-ci-c-azl4` (pool C). - The `Long LTS` job calls [Cross-platform LTS](#cross-platform-lts) with `long` set, to test recovery from the previous LTS as well as the live upgrade. File: `long-test.yml` @@ -169,7 +169,7 @@ File: `codeql-analysis.yml` Runs Lean verification for the repository, with each package checked in an isolated reusable-workflow job. All five packages (consensus, common, consistency, disaster-recovery, and kv) run in one matrix. Package checks and trace replays run directly on GitHub-hosted Ubuntu 26.04 runners, as does the lightweight final gate. -Native trace captures build CCF, so they remain on `gha-vmss-d16av7-ci-c` with Azure Linux 4 containers. +Native trace captures build CCF, so they remain on `gha-vmss-d16av7-ci-c-azl4` with Azure Linux 4 containers. Each matrix job caches its third-party dependency checkouts and build outputs, leanfmt and (for disaster-recovery and kv) Batteries, using GitHub Actions caching. Caches are isolated by package and runner architecture and invalidated by changes to the Ubuntu version, Lean toolchain, package and common dependency manifests/configuration, or reusable workflow. CCF package and common build outputs are not cached, and all verification steps still run. diff --git a/.github/workflows/bencher-ab.yml b/.github/workflows/bencher-ab.yml index b06546f7da6..3c7a5b0aca4 100644 --- a/.github/workflows/bencher-ab.yml +++ b/.github/workflows/bencher-ab.yml @@ -20,7 +20,7 @@ concurrency: jobs: benchmark_pr: name: Benchmark PR - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] if: ${{ (github.event.action == 'labeled' && github.event.label.name == 'bench-ab') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'bench-ab')) }} env: BRANCH_PERF_ARTIFACT: perf-bench-virtual-pr-${{ github.event.pull_request.number }} diff --git a/.github/workflows/bencher.yml b/.github/workflows/bencher.yml index 0ac919d797b..a8077a1e2ed 100644 --- a/.github/workflows/bencher.yml +++ b/.github/workflows/bencher.yml @@ -17,7 +17,7 @@ concurrency: jobs: benchmark_virtual: name: Benchmark Virtual - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 # The image declares no PATH, so without this GITHUB_PATH entries replace PATH instead of extending it. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88fad039b36..bb863548530 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ env: jobs: vmss-virtual-a: name: "VMSS Virtual A" # CI Checks, Clang Tidy, Python package tests, Unit tests, e2e (bucket_a) - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 # The image declares no PATH, so without this GITHUB_PATH entries replace PATH instead of extending it. @@ -116,7 +116,7 @@ jobs: vmss-virtual-b: name: "VMSS Virtual B" # End-to-end tests (bucket_b) - runs-on: [gha-vmss-d16av7-ci-b] + runs-on: [gha-vmss-d16av7-ci-b-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 # The image declares no PATH, so without this GITHUB_PATH entries replace PATH instead of extending it. @@ -188,7 +188,7 @@ jobs: vmss-virtual-c: name: "VMSS Virtual C" # End-to-end tests (bucket_c) - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 # The image declares no PATH, so without this GITHUB_PATH entries replace PATH instead of extending it. diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a42e9693fdc..76fad8910ca 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -26,7 +26,7 @@ jobs: analyze: name: Analyze # Insufficient space to run on public runner, so use custom pool - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 855f02dba26..47adac0530c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,7 +21,7 @@ env: jobs: coverage_virtual: name: "Coverage Virtual" - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] container: image: mcr.microsoft.com/azurelinux/base/core:3.0 options: --user root --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE --sysctl net.ipv6.conf.all.disable_ipv6=0 --sysctl net.ipv6.conf.default.disable_ipv6=0 --sysctl net.ipv6.conf.lo.disable_ipv6=0 diff --git a/.github/workflows/cross-platform-lts.yml b/.github/workflows/cross-platform-lts.yml index d81d360c4c2..8b96f157130 100644 --- a/.github/workflows/cross-platform-lts.yml +++ b/.github/workflows/cross-platform-lts.yml @@ -40,8 +40,8 @@ env: PYTHON_VERSION: "3.12" AZL3_IMAGE: &azl3_image mcr.microsoft.com/azurelinux/base/core:3.0 AZL4_IMAGE: &azl4_image mcr.microsoft.com/azurelinux/core:4 - AZL3_POOL: &azl3_pool gha-vmss-d16av7-ci - AZL4_POOL: &azl4_pool gha-vmss-d16av7-ci + AZL3_POOL: &azl3_pool gha-vmss-d16av7-ci-azl4 + AZL4_POOL: &azl4_pool gha-vmss-d16av7-ci-azl4 INSTALL_ARCHIVE: ccf-install.tar.gz LTS_WORKSPACE: cross-platform-lts-workspace diff --git a/.github/workflows/lean.yml b/.github/workflows/lean.yml index 894f97c5c20..2500e9087c1 100644 --- a/.github/workflows/lean.yml +++ b/.github/workflows/lean.yml @@ -42,7 +42,7 @@ permissions: read-all jobs: cft_traces: name: CCF consensus scenario captures - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: @@ -106,7 +106,7 @@ jobs: kv_traces: name: KV trace captures - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: @@ -180,7 +180,7 @@ jobs: consistency_traces: name: Consistency trace capture and replay - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: @@ -247,7 +247,7 @@ jobs: disaster_recovery_traces: name: Disaster recovery trace capture and replay - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: diff --git a/.github/workflows/long-test.yml b/.github/workflows/long-test.yml index d530e59e80b..a877eb83ab6 100644 --- a/.github/workflows/long-test.yml +++ b/.github/workflows/long-test.yml @@ -21,7 +21,7 @@ jobs: long-asan: if: &check_trigger_conditions ${{ (github.event.action == 'labeled' && github.event.label.name == 'run-long-test') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'run-long-test')) || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }} name: "ASAN" - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: @@ -81,7 +81,7 @@ jobs: long-tsan: if: *check_trigger_conditions name: "TSAN" - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: @@ -144,7 +144,7 @@ jobs: long-e2e-debug: if: *check_trigger_conditions name: Long e2e - Debug - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: @@ -225,7 +225,7 @@ jobs: long-e2e-release: if: *check_trigger_conditions name: Long e2e - Release - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: @@ -298,7 +298,7 @@ jobs: e2e-long-combined: if: *check_trigger_conditions name: Long Shuffled/Snmalloc - runs-on: [gha-vmss-d16av7-ci-c] + runs-on: [gha-vmss-d16av7-ci-c-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4bbac1ce7f1..c996a1b1b68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: image_digest: name: Snapshot Build Image Digest and SOURCE_DATE_EPOCH - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] outputs: image_digest: ${{ steps.digest.outputs.digest }} SOURCE_DATE_EPOCH: ${{ steps.set_epoch.outputs.SOURCE_DATE_EPOCH }} @@ -86,7 +86,7 @@ jobs: build_release: name: Build Release needs: image_digest - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] env: CCF_USE_RELEASED_PYTHON_PACKAGE: "1" container: @@ -269,7 +269,7 @@ jobs: test_rpm_against_app: name: "Test building against CCF package" needs: build_release - runs-on: [gha-vmss-d16av7-ci] + runs-on: [gha-vmss-d16av7-ci-azl4] container: image: mcr.microsoft.com/azurelinux/core:4 # The image declares no PATH, so without this GITHUB_PATH entries replace PATH instead of extending it. From 5c451f67845097702de570be274af125ac0be4aa Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Wed, 2 Dec 2026 20:23:21 +0000 Subject: [PATCH 2/4] Measure host storage on the Azure Linux 4 CI pools Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8f4393f3e5704963abb488b59f5422bb --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb863548530..b5a44a2d16b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,38 @@ env: NPM_CONFIG_FETCH_TIMEOUT: "60000" jobs: + vmss-storage: + name: "Storage on ${{ matrix.pool }}" + if: github.event_name == 'pull_request' && github.event.pull_request.number == 8919 + permissions: {} + strategy: + fail-fast: false + matrix: + pool: + - gha-vmss-d16av7-ci-azl4 + - gha-vmss-d16av7-ci-b-azl4 + - gha-vmss-d16av7-ci-c-azl4 + runs-on: ${{ matrix.pool }} + timeout-minutes: 5 + steps: + - name: Measure host disks and runner filesystems + shell: bash + run: | + set -euo pipefail + lsblk -o NAME,MAJ:MIN,TYPE,MODEL,SIZE,FSTYPE,MOUNTPOINTS + docker_root=$(docker info --format '{{.DockerRootDir}}') + for path in / /mnt/azure_nvme_temp "$GITHUB_WORKSPACE" "$RUNNER_TEMP" /usr/local/vss-agent/*/_diag "$docker_root" /var/lib/containerd; do + printf '\n%s\n' "$path" + if [[ ! -e "$path" ]]; then + echo "Not present" + continue + fi + findmnt -T "$path" -o TARGET,SOURCE,FSTYPE + df -hT "$path" + df -i "$path" + done + docker system df + vmss-virtual-a: name: "VMSS Virtual A" # CI Checks, Clang Tidy, Python package tests, Unit tests, e2e (bucket_a) runs-on: [gha-vmss-d16av7-ci-azl4] From 6843c6ae15fd3434ebe5af129ea652d13a82b295 Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Thu, 3 Dec 2026 07:53:51 +0000 Subject: [PATCH 3/4] Diagnose the scratch automount on the Azure Linux runner pools Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8f4393f3e5704963abb488b59f5422bb --- .github/workflows/ci.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bda9ce6cb3..653ab706682 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,13 +36,40 @@ jobs: runs-on: ${{ matrix.pool }} timeout-minutes: 5 steps: + - name: Diagnose the scratch automount + shell: bash + run: | + set -euo pipefail + echo "Matching /etc/fstab entries:" + awk '$1 == "/mnt/storage" || $2 == "/mnt/storage" || $2 == "/mnt/azure_nvme_temp" { print; found=1 } + END { if (!found) print "(none)" }' /etc/fstab + + units=(mnt-storage.mount mnt-azure_nvme_temp.automount mnt-azure_nvme_temp.mount) + for phase in before after; do + echo "Mount units $phase access:" + if ! systemctl show --no-pager -p Id -p LoadState -p ActiveState -p SubState -p Result \ + -p FragmentPath -p SourcePath -p What -p Where -p Requires -p After "${units[@]}"; then + echo "systemctl could not show all three units; see their boot journal below." + fi + if [[ "$phase" == before ]]; then + # Traverse the advertised mount to trigger autofs, then compare the two work directories. + for path in /mnt/azure_nvme_temp/. /mnt/storage /mnt/azure_nvme_temp/_work "$(dirname "$RUNNER_TEMP")"; do + if ! timeout 10s stat -Lc '%n: device=%d inode=%i' "$path"; then + echo "Could not stat $path within 10 seconds." + fi + done + fi + done + sudo -n journalctl -b --no-pager -n 60 -u "${units[0]}" -u "${units[1]}" -u "${units[2]}" + - name: Measure host disks and runner filesystems + if: ${{ !cancelled() }} shell: bash run: | set -euo pipefail lsblk -o NAME,MAJ:MIN,TYPE,MODEL,SIZE,FSTYPE,MOUNTPOINTS docker_root=$(docker info --format '{{.DockerRootDir}}') - for path in / /mnt/azure_nvme_temp "$GITHUB_WORKSPACE" "$RUNNER_TEMP" /usr/local/vss-agent/*/_diag "$docker_root" /var/lib/containerd; do + for path in / /mnt/storage /mnt/azure_nvme_temp "$GITHUB_WORKSPACE" "$RUNNER_TEMP" /usr/local/vss-agent/*/_diag "$docker_root" /var/lib/containerd; do printf '\n%s\n' "$path" if [[ ! -e "$path" ]]; then echo "Not present" From 5eb4c5fe8dd461eb0ce0087dfd1176cb23f87798 Mon Sep 17 00:00:00 2001 From: amchamay Date: Thu, 3 Dec 2026 14:16:34 +0000 Subject: [PATCH 4/4] Remove temporary VMSS storage diagnostic job Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 59 ---------------------------------------- 1 file changed, 59 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 653ab706682..da9d29c054b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,65 +22,6 @@ env: NPM_CONFIG_FETCH_TIMEOUT: "60000" jobs: - vmss-storage: - name: "Storage on ${{ matrix.pool }}" - if: github.event_name == 'pull_request' && github.event.pull_request.number == 8919 - permissions: {} - strategy: - fail-fast: false - matrix: - pool: - - gha-vmss-d16av7-ci-azl4 - - gha-vmss-d16av7-ci-b-azl4 - - gha-vmss-d16av7-ci-c-azl4 - runs-on: ${{ matrix.pool }} - timeout-minutes: 5 - steps: - - name: Diagnose the scratch automount - shell: bash - run: | - set -euo pipefail - echo "Matching /etc/fstab entries:" - awk '$1 == "/mnt/storage" || $2 == "/mnt/storage" || $2 == "/mnt/azure_nvme_temp" { print; found=1 } - END { if (!found) print "(none)" }' /etc/fstab - - units=(mnt-storage.mount mnt-azure_nvme_temp.automount mnt-azure_nvme_temp.mount) - for phase in before after; do - echo "Mount units $phase access:" - if ! systemctl show --no-pager -p Id -p LoadState -p ActiveState -p SubState -p Result \ - -p FragmentPath -p SourcePath -p What -p Where -p Requires -p After "${units[@]}"; then - echo "systemctl could not show all three units; see their boot journal below." - fi - if [[ "$phase" == before ]]; then - # Traverse the advertised mount to trigger autofs, then compare the two work directories. - for path in /mnt/azure_nvme_temp/. /mnt/storage /mnt/azure_nvme_temp/_work "$(dirname "$RUNNER_TEMP")"; do - if ! timeout 10s stat -Lc '%n: device=%d inode=%i' "$path"; then - echo "Could not stat $path within 10 seconds." - fi - done - fi - done - sudo -n journalctl -b --no-pager -n 60 -u "${units[0]}" -u "${units[1]}" -u "${units[2]}" - - - name: Measure host disks and runner filesystems - if: ${{ !cancelled() }} - shell: bash - run: | - set -euo pipefail - lsblk -o NAME,MAJ:MIN,TYPE,MODEL,SIZE,FSTYPE,MOUNTPOINTS - docker_root=$(docker info --format '{{.DockerRootDir}}') - for path in / /mnt/storage /mnt/azure_nvme_temp "$GITHUB_WORKSPACE" "$RUNNER_TEMP" /usr/local/vss-agent/*/_diag "$docker_root" /var/lib/containerd; do - printf '\n%s\n' "$path" - if [[ ! -e "$path" ]]; then - echo "Not present" - continue - fi - findmnt -T "$path" -o TARGET,SOURCE,FSTYPE - df -hT "$path" - df -i "$path" - done - docker system df - vmss-virtual-a: name: "VMSS Virtual A" # CI Checks, Clang Tidy, Python package tests, Unit tests, e2e (bucket_a) runs-on: [gha-vmss-d16av7-ci-azl4]