Skip to content

Move all CI to Azure Linux 4 #8807

In progress
In progress

Description

@maxtropets

Move main CI to Azure Linux 4

release/7.x has branched, so main (8.x) targets Azure Linux 4 (AL4) only.

  • ci.yml moves to AL4, and ci-al4.yml is deleted.
  • Every other Azure Linux 3 (AL3) job moves to AL4.
  • AL3 build support is removed from main.
AL3 jobs today: 20 container jobs in 10 workflows, plus 3 SNP jobs
Workflow AL3 jobs Extra work beyond the image swap
ci.yml VMSS Virtual A, B, C Absorb ci-al4.yml (phases 1 and 2)
ci.yml ACI SNP Genoa AL4 runner image (phase 4)
long-test.yml ASAN, TSAN, Long e2e - Debug, Long e2e - Release, Long Shuffled/LTS/Snmalloc First CI run of sanitizers and fuzzing on AL4
lean.yml 3 trace capture jobs None expected
codeql-analysis.yml Analyze None expected
documentation.yml Build documentation None expected
bencher.yml Benchmark Virtual, Benchmark SNP gh install, new perf baseline
bencher-ab.yml Benchmark PR Moves with bencher.yml
coverage.yml Coverage Virtual, Coverage SNP Genoa Both jobs must use the same clang
release.yml Build Release, Test building against CCF package, Test Reproducibility Phase 5
cross-platform-lts.yml Azure Linux 3 build Becomes the LTS gate
  • The Ubuntu-hosted workflows are unaffected.
  • ci-al4.yml runs daily on main and is green as of 2026-11-19.

Blockers

Blocker details
  • AL4 image
    • CI pulls azlpubstagingacroxz2o4gw.azurecr.io/azurelinux/base/core:4.0.
    • mcr.microsoft.com/azurelinux-beta/base/core:4.0 is the same build, dated 2026-05-27.
    • mcr.microsoft.com/azurelinux/base/core has no 4.0 tag (checked 2026-11-19).
    • Releases need a public, long-lived image, because reproduce.json records its digest.
  • LTS compatibility
    • lts_compatibility gates every PR through Virtual A. ci-al4.yml skips it.
    • Proposal: run 7.x nodes in an AL3 container, as cross-platform-lts.yml does.
    • The ledger and snapshot chain has no container mode yet.
    • Decide whether it gates PRs, or runs weekly and at release.
  • SNP runner image
    • The image comes from tests/ci/ccf_caci_ci, and no workflow in this repo builds it.
    • AL4 needs its own pool label, for example gha-aci-genoa-al4.
  • Reproducible release
    • release.yml, scripts/setup-ci.sh and reproduce/*.sh use tdnf --snapshottime.
    • microsoft/dnf5-plugin-repo-snapshot filters dnf5 repositories by --setvar=repo_snapshot_time=<epoch>. It is source-only, and needs a libdnf5 with Package::get_file_time().
    • That libdnf5 patch is feat(dnf5): enable repository snapshot filtering azurelinux#19832, still open on 2026-12-01. AL4 libdnf5 5.2.18.0-2.azl4 does not have it, so the plugin cannot be built yet.
    • On AL4 tdnf is a symlink to dnf5, which rejects --snapshottime.

Plan

Order: phases 1 and 2 first, then 3, 4 and 5 in any order, then 6.

The change for each container job
container:
  image: <AL4 image>
  env:
    PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
steps:
  - name: "Checkout dependencies"
    run: |
      dnf -y update
      dnf -y install ca-certificates git
  • This replaces the gpg --import line and the tdnf calls.
  • The AL4 image declares no PATH, so the container sets it.
  • install-ci-dependencies already supports AL4.

Phase 1: close the AL4 gaps

Add what ci-al4.yml skips, while AL3 stays primary.

Phase 2: move ci.yml

Phase 3: move the other container jobs

Phase 4: move the SNP jobs

Phase 5: move the release

Finish before the first ccf-8.* tag.

Phase 6: remove AL3 from main

Start after the last AL3 job has moved.

Stays on AL3

  • The 7.x runtime image for the LTS test.
  • .pipelines/pypi.official.yml, until OneBranch has an AL4 image.

Activity

  1. added this to the 8.0.0 milestone on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions