tree: 97609a680e82fd29908383fe1a26a8befd00242e [search]
  1. scripts/
  2. checkstyle.yaml
  3. codeql.yml
  4. labels.yml
  5. README.md
  6. smatch.yml
  7. unit-tests.yml
  8. zfs-arm.yml
  9. zfs-qemu-packages.yml
  10. zfs-qemu.yml
  11. zloop.yml
.github/workflows/README.md

CI overview

The main test pipeline is zfs-qemu.yml. Code checking and other workflows run independently alongside it.

Functional testing Code checking Other workflows test-config: pick ci_type + OS matrix almalinux centos-stream debian fedora ubuntu freebsd cleanup + summary checkstyle.yaml codeql.yml smatch.yml zfs-arm.yml zloop.yml labels.yml

Every qemu-vm matrix entry runs on a fixed ubuntu-24.04 host. The steps inside one entry are:

  1. set up QEMU and boot the guest (~2-4m)
  2. install build dependencies in the guest (~2-4m)
  3. build zfs modules in the guest (~8-12m)
  4. run functional tests (~2-4h)
  5. package and upload per-OS test logs (~10s)

A per-OS entry takes about 3 to 4 hours. Once all entries finish, the cleanup job aggregates the results into a summary.

ci_type selection

test-config runs .github/workflows/scripts/generate-ci-type.py against the PR's changed files and picks one of:

ci_typeOS matrix
docsempty (documentation-only PRs)
quick6 Linux + 1 FreeBSD
linuxall supported Linux distros
freebsdall supported FreeBSD versions
defaultcross-platform sample

Pushes to openzfs/zfs skip the matrix entirely; only PRs (and pushes to forks) build.

Authors can force a specific ci_type by adding ZFS-CI-Type: <type> to the most recent commit message. The ZTS_OS_OVERRIDE repository variable can also alter the selection. The workflow_dispatch trigger accepts fedora_kernel_ver (Fedora-only run with a chosen kernel) and specific_os (pin the matrix to one OS).

Supported guests

Auto-selected:

  • Linux: almalinux 8/9/10, centos-stream 9/10, debian 11/12/13, fedora 43/44, ubuntu 22/24/26
  • FreeBSD: 14.4-RELEASE/STABLE, 15.1-RELEASE/STABLE, 16.0-CURRENT

Available via specific_os or ZTS_OS_OVERRIDE:

  • archlinux, tumbleweed

Code checking

  • checkstyle.yaml: source-style checks
  • codeql.yml: CodeQL analysis
  • smatch.yml: smatch analysis

Other workflows

  • zfs-arm.yml: ARM build on ubuntu-24.04-arm
  • zloop.yml: host-side zloop
  • labels.yml: maintains PR status labels
  • zfs-qemu-packages.yml: manually dispatched, builds release RPMs or tests RPM installation from the ZFS yum repo