diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 21a59ffaa1e..0e0c8dcca4b 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-al4 (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-al4 (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-al4` pool image, which is built from `tests/ci/ccf_caci_ci`. It is built with the repository root as the build context, for example `docker build -f tests/ci/ccf_caci_ci .`. Azure Linux 4 does not package the GitHub CLI used to restore previous perf artifacts, so both jobs install a pinned, checksum-verified release with `scripts/install_gh.sh`. @@ -77,7 +77,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 Virtual B and C jobs also run with `CCF_CONSISTENCY_TRACE=1`, record consistency traces for each traced network, and upload them with their logs. @@ -158,7 +158,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` @@ -180,7 +180,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 1d5e96493b8..03618faef93 100644 --- a/.github/workflows/bencher-ab.yml +++ b/.github/workflows/bencher-ab.yml @@ -20,7 +20,7 @@ concurrency: jobs: benchmark_pr: name: Benchmark Virtual 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: PLATFORM: virtual diff --git a/.github/workflows/bencher.yml b/.github/workflows/bencher.yml index 5564a9cc6ff..a9f17aa4bb5 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 88075d97e83..908884053d9 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. @@ -115,7 +115,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 7e8b55d2c7e..2b6e7556a49 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/core:4 # The image declares no PATH, so without this GITHUB_PATH entries replace PATH instead of extending it. 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 fd7d4801bcd..ac10a5ea05a 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.