Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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`
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bencher-ab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bencher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cross-platform-lts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/long-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down Expand Up @@ -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.
Expand Down