From a43bd7abdc137f069e89a9109b3571b2e87978dc Mon Sep 17 00:00:00 2001 From: Jo Zzsi Date: Sat, 10 Jan 2026 08:30:41 -0500 Subject: [PATCH] ci: combine systemd x64 and arm64 into one GitHub action Running tests on arm64 is just as stable as x64, there is no need to separate them. Combine them into one GitHub action should make it easier to reason about regressions. --- .github/workflows/daily-systemd-x64.yml | 58 ----------------- .github/workflows/daily-systemd.yml | 87 +++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/daily-systemd-x64.yml create mode 100644 .github/workflows/daily-systemd.yml diff --git a/.github/workflows/daily-systemd-x64.yml b/.github/workflows/daily-systemd-x64.yml deleted file mode 100644 index a27bd6ffe..000000000 --- a/.github/workflows/daily-systemd-x64.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -name: Daily Tests - systemd (x64) - -on: # yamllint disable-line rule:truthy - schedule: - - cron: '30 23 * * *' # every day at 23:30 UTC - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - - pull_request: - paths: - - '.github/workflows/daily-systemd-x64.yml' - -jobs: - systemd: - name: ${{ matrix.test }} on ${{ matrix.container }} - runs-on: ubuntu-24.04 - timeout-minutes: 20 - concurrency: - group: daily-systemd-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}-amd - cancel-in-progress: true - strategy: - fail-fast: false - matrix: - container: - - arch:latest - - azurelinux:3.0 - - debian:latest - - debian:sid - - fedora:latest - - fedora:rawhide - - centos:latest - - gentoo:latest - - opensuse:latest - - ubuntu:devel - - ubuntu:rolling - test: - - "40" - - "41" - - "42" - - "43" - - "44" - exclude: - # https://github.com/dracut-ng/dracut-ng/issues/1677 - - container: arch:latest - test: "41" - # intentionally skipped - - container: centos:latest - test: "41" - container: - image: ghcr.io/dracut-ng/${{ matrix.container }}-amd - options: '--device=/dev/kvm --privileged' - steps: - - name: "Checkout Repository" - uses: actions/checkout@v6 - - name: "${{ matrix.container }} TEST-${{ matrix.test }}" - run: ./test/test-container.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} diff --git a/.github/workflows/daily-systemd.yml b/.github/workflows/daily-systemd.yml new file mode 100644 index 000000000..810b77947 --- /dev/null +++ b/.github/workflows/daily-systemd.yml @@ -0,0 +1,87 @@ +--- +name: Daily Tests - systemd + +on: # yamllint disable-line rule:truthy + schedule: + - cron: '30 23 * * *' # every day at 23:30 UTC + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + pull_request: + paths: + - '.github/workflows/daily-systemd.yml' + +jobs: + systemd: + name: ${{ matrix.test }} on ${{ matrix.container }} on ${{ matrix.architecture.tag }} + runs-on: ubuntu-24.04 + timeout-minutes: 20 + concurrency: + group: daily-systemd-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}-${{ matrix.architecture.tag }} + cancel-in-progress: true + strategy: + fail-fast: false + matrix: + architecture: + - {runner: 'ubuntu-24.04', tag: 'amd'} + - {runner: 'ubuntu-24.04-arm', tag: 'arm'} + container: + - arch:latest + - azurelinux:3.0 + - debian:latest + - debian:sid + - fedora:latest + - fedora:rawhide + - centos:latest + - gentoo:latest + - opensuse:latest + - ubuntu:devel + - ubuntu:rolling + test: + - "40" + - "41" + - "42" + - "43" + - "44" + exclude: + - container: arch:latest + architecture: tag: 'arm' + - container: azurelinux:3.0 + architecture: tag: 'arm' + - container: fedora:latest + architecture: tag: 'arm' + - container: fedora:rawhide + architecture: tag: 'arm' + - container: centos:latest + architecture: tag: 'arm' + # https://github.com/dracut-ng/dracut-ng/issues/1677 + - container: arch:latest + test: "41" + # intentionally skipped + - container: centos:latest + test: "41" + # mkosi test step fails + - container: opensuse:latest + architecture: tag: 'arm' + test: "41" + # fails with key file '/run/credentials/@system/key' missing + - container: gentoo:latest + architecture: tag: 'arm' + test: "41" + # /boot/vmlinuz-... is missing .efi suffix: https://launchpad.net/bugs/2133402 + - container: ubuntu:devel + architecture: tag: 'arm' + test: "43" + # /boot/vmlinuz-... is missing .efi suffix: https://launchpad.net/bugs/2133402 + - container: ubuntu:rolling + architecture: tag: 'arm' + test: "43" + container: + image: ghcr.io/dracut-ng/${{ matrix.container }}-${{ matrix.architecture.tag }} + options: '--device=/dev/kvm --privileged' + steps: + - name: "Checkout Repository" + uses: actions/checkout@v6 + - name: "${{ matrix.container }} TEST-${{ matrix.test }}" + run: ./test/test-container.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} -- 2.47.3