|
|
ac3a84 |
From 36f9fb0c7e19bda07ce6de5f4b04f58a5da2f122 Mon Sep 17 00:00:00 2001
|
|
|
4295f9 |
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
|
4295f9 |
Date: Sun, 18 Apr 2021 20:46:06 +0200
|
|
|
4295f9 |
Subject: [PATCH] ci: drop CIs irrelevant for downstream
|
|
|
4295f9 |
|
|
|
4295f9 |
* CIFuzz would need a separate project in oss-fuzz
|
|
|
4295f9 |
* Coverity would also need a separate project
|
|
|
4295f9 |
* the Labeler action is superfluous, since we already have a bot for
|
|
|
4295f9 |
that
|
|
|
4295f9 |
* mkosi testing on other distros is irrelevant for downstream RHEL
|
|
|
4295f9 |
repo
|
|
|
4295f9 |
|
|
|
ac3a84 |
Related: #2138081
|
|
|
4295f9 |
rhel-only
|
|
|
4295f9 |
---
|
|
|
ac3a84 |
.github/labeler.yml | 40 ---------------
|
|
|
ac3a84 |
.github/workflows/cifuzz.yml | 62 -----------------------
|
|
|
ac3a84 |
.github/workflows/coverity.yml | 30 ------------
|
|
|
ac3a84 |
.github/workflows/labeler.yml | 24 ---------
|
|
|
ac3a84 |
.github/workflows/mkosi.yml | 90 ----------------------------------
|
|
|
ac3a84 |
5 files changed, 246 deletions(-)
|
|
|
4295f9 |
delete mode 100644 .github/labeler.yml
|
|
|
4295f9 |
delete mode 100644 .github/workflows/cifuzz.yml
|
|
|
4295f9 |
delete mode 100644 .github/workflows/coverity.yml
|
|
|
4295f9 |
delete mode 100644 .github/workflows/labeler.yml
|
|
|
4295f9 |
delete mode 100644 .github/workflows/mkosi.yml
|
|
|
4295f9 |
|
|
|
4295f9 |
diff --git a/.github/labeler.yml b/.github/labeler.yml
|
|
|
4295f9 |
deleted file mode 100644
|
|
|
152484 |
index 7d128f42d6..0000000000
|
|
|
4295f9 |
--- a/.github/labeler.yml
|
|
|
4295f9 |
+++ /dev/null
|
|
|
152484 |
@@ -1,40 +0,0 @@
|
|
|
152484 |
-# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
152484 |
-
|
|
|
4295f9 |
-hwdb:
|
|
|
4295f9 |
- - hwdb.d/**/*
|
|
|
4295f9 |
-units:
|
|
|
4295f9 |
- - units/**/*
|
|
|
4295f9 |
-documentation:
|
|
|
4295f9 |
- - NEWS
|
|
|
4295f9 |
- - docs/*
|
|
|
4295f9 |
-network:
|
|
|
4295f9 |
- - src/libsystemd-network/**/*
|
|
|
4295f9 |
- - src/network/**/*
|
|
|
4295f9 |
-udev:
|
|
|
4295f9 |
- - src/udev/**/*
|
|
|
4295f9 |
- - src/libudev/*
|
|
|
4295f9 |
-selinux:
|
|
|
4295f9 |
- - '**/*selinux*'
|
|
|
4295f9 |
-apparmor:
|
|
|
4295f9 |
- - '**/*apparmor*'
|
|
|
4295f9 |
-meson:
|
|
|
4295f9 |
- - meson_option.txt
|
|
|
4295f9 |
-mkosi:
|
|
|
4295f9 |
- - .mkosi/*
|
|
|
4295f9 |
- - mkosi.build
|
|
|
4295f9 |
-busctl:
|
|
|
4295f9 |
- - src/busctl/*
|
|
|
4295f9 |
-systemctl:
|
|
|
4295f9 |
- - src/systemctl/*
|
|
|
4295f9 |
-journal:
|
|
|
4295f9 |
- - src/journal/*
|
|
|
4295f9 |
-journal-remote:
|
|
|
4295f9 |
- - src/journal-remote/*
|
|
|
4295f9 |
-portable:
|
|
|
4295f9 |
- - src/portable/**/*
|
|
|
4295f9 |
-resolve:
|
|
|
4295f9 |
- - src/resolve/*
|
|
|
4295f9 |
-timedate:
|
|
|
4295f9 |
- - src/timedate/*
|
|
|
4295f9 |
-timesync:
|
|
|
4295f9 |
- - src/timesync/*
|
|
|
4295f9 |
diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml
|
|
|
4295f9 |
deleted file mode 100644
|
|
|
ac3a84 |
index 25731abc5a..0000000000
|
|
|
4295f9 |
--- a/.github/workflows/cifuzz.yml
|
|
|
4295f9 |
+++ /dev/null
|
|
|
ac3a84 |
@@ -1,62 +0,0 @@
|
|
|
4295f9 |
----
|
|
|
4295f9 |
-# vi: ts=2 sw=2 et:
|
|
|
152484 |
-# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
4295f9 |
-# See: https://google.github.io/oss-fuzz/getting-started/continuous-integration/
|
|
|
4295f9 |
-
|
|
|
4295f9 |
-name: CIFuzz
|
|
|
152484 |
-
|
|
|
152484 |
-permissions:
|
|
|
152484 |
- contents: read
|
|
|
152484 |
-
|
|
|
4295f9 |
-on:
|
|
|
4295f9 |
- pull_request:
|
|
|
4295f9 |
- paths:
|
|
|
4295f9 |
- - '**/meson.build'
|
|
|
4295f9 |
- - '.github/workflows/**'
|
|
|
4295f9 |
- - 'meson_options.txt'
|
|
|
4295f9 |
- - 'src/**'
|
|
|
4295f9 |
- - 'test/fuzz/**'
|
|
|
4295f9 |
- - 'tools/oss-fuzz.sh'
|
|
|
4295f9 |
- push:
|
|
|
4295f9 |
- branches:
|
|
|
4295f9 |
- - main
|
|
|
4295f9 |
-jobs:
|
|
|
152484 |
- Fuzzing:
|
|
|
152484 |
- runs-on: ubuntu-latest
|
|
|
152484 |
- if: github.repository == 'systemd/systemd'
|
|
|
152484 |
- concurrency:
|
|
|
ac3a84 |
- group: ${{ github.workflow }}-${{ matrix.sanitizer }}-${{ matrix.architecture }}-${{ github.ref }}
|
|
|
152484 |
- cancel-in-progress: true
|
|
|
152484 |
- strategy:
|
|
|
152484 |
- fail-fast: false
|
|
|
152484 |
- matrix:
|
|
|
152484 |
- sanitizer: [address, undefined, memory]
|
|
|
ac3a84 |
- architecture: [x86_64]
|
|
|
ac3a84 |
- include:
|
|
|
ac3a84 |
- - sanitizer: address
|
|
|
ac3a84 |
- architecture: i386
|
|
|
152484 |
- steps:
|
|
|
152484 |
- - name: Build Fuzzers (${{ matrix.sanitizer }})
|
|
|
152484 |
- id: build
|
|
|
152484 |
- uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
|
152484 |
- with:
|
|
|
152484 |
- oss-fuzz-project-name: 'systemd'
|
|
|
152484 |
- dry-run: false
|
|
|
152484 |
- allowed-broken-targets-percentage: 0
|
|
|
ac3a84 |
- # keep-unaffected-fuzz-targets should be removed once https://github.com/google/oss-fuzz/issues/7011 is fixed
|
|
|
ac3a84 |
- keep-unaffected-fuzz-targets: true
|
|
|
152484 |
- sanitizer: ${{ matrix.sanitizer }}
|
|
|
ac3a84 |
- architecture: ${{ matrix.architecture }}
|
|
|
152484 |
- - name: Run Fuzzers (${{ matrix.sanitizer }})
|
|
|
152484 |
- uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
|
152484 |
- with:
|
|
|
152484 |
- oss-fuzz-project-name: 'systemd'
|
|
|
152484 |
- fuzz-seconds: 600
|
|
|
152484 |
- dry-run: false
|
|
|
152484 |
- sanitizer: ${{ matrix.sanitizer }}
|
|
|
152484 |
- - name: Upload Crash
|
|
|
ac3a84 |
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
|
|
|
152484 |
- if: failure() && steps.build.outcome == 'success'
|
|
|
152484 |
- with:
|
|
|
ac3a84 |
- name: ${{ matrix.sanitizer }}-${{ matrix.architecture }}-artifacts
|
|
|
152484 |
- path: ./out/artifacts
|
|
|
4295f9 |
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
|
|
|
4295f9 |
deleted file mode 100644
|
|
|
ac3a84 |
index 3fbebc6bbf..0000000000
|
|
|
4295f9 |
--- a/.github/workflows/coverity.yml
|
|
|
4295f9 |
+++ /dev/null
|
|
|
ac3a84 |
@@ -1,30 +0,0 @@
|
|
|
4295f9 |
----
|
|
|
4295f9 |
-# vi: ts=2 sw=2 et:
|
|
|
152484 |
-# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
4295f9 |
-#
|
|
|
4295f9 |
-name: Coverity
|
|
|
4295f9 |
-
|
|
|
4295f9 |
-on:
|
|
|
4295f9 |
- schedule:
|
|
|
4295f9 |
- # Run Coverity daily at midnight
|
|
|
4295f9 |
- - cron: '0 0 * * *'
|
|
|
4295f9 |
-
|
|
|
152484 |
-permissions:
|
|
|
152484 |
- contents: read
|
|
|
152484 |
-
|
|
|
4295f9 |
-jobs:
|
|
|
4295f9 |
- build:
|
|
|
ac3a84 |
- runs-on: ubuntu-22.04
|
|
|
4295f9 |
- if: github.repository == 'systemd/systemd'
|
|
|
4295f9 |
- env:
|
|
|
ac3a84 |
- # Set in repo settings -> secrets -> actions
|
|
|
4295f9 |
- COVERITY_SCAN_TOKEN: "${{ secrets.COVERITY_SCAN_TOKEN }}"
|
|
|
ac3a84 |
- COVERITY_SCAN_NOTIFICATION_EMAIL: "${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }}"
|
|
|
4295f9 |
- steps:
|
|
|
4295f9 |
- - name: Repository checkout
|
|
|
ac3a84 |
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
4295f9 |
- # Reuse the setup phase of the unit test script to avoid code duplication
|
|
|
4295f9 |
- - name: Install build dependencies
|
|
|
4295f9 |
- run: sudo -E .github/workflows/unit_tests.sh SETUP
|
|
|
ac3a84 |
- - name: Build & upload the results
|
|
|
ac3a84 |
- run: tools/coverity.sh
|
|
|
4295f9 |
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
|
|
|
4295f9 |
deleted file mode 100644
|
|
|
ac3a84 |
index 35766df591..0000000000
|
|
|
4295f9 |
--- a/.github/workflows/labeler.yml
|
|
|
4295f9 |
+++ /dev/null
|
|
|
ac3a84 |
@@ -1,24 +0,0 @@
|
|
|
152484 |
----
|
|
|
152484 |
-# vi: ts=2 sw=2 et:
|
|
|
152484 |
-# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
152484 |
-#
|
|
|
4295f9 |
-name: "Pull Request Labeler"
|
|
|
152484 |
-
|
|
|
4295f9 |
-on:
|
|
|
4295f9 |
-- pull_request_target
|
|
|
4295f9 |
-
|
|
|
152484 |
-permissions:
|
|
|
152484 |
- contents: read
|
|
|
152484 |
-
|
|
|
4295f9 |
-jobs:
|
|
|
4295f9 |
- triage:
|
|
|
ac3a84 |
- if: github.event.repository.name != 'systemd-security'
|
|
|
4295f9 |
- runs-on: ubuntu-latest
|
|
|
152484 |
- permissions:
|
|
|
152484 |
- pull-requests: write
|
|
|
4295f9 |
- steps:
|
|
|
ac3a84 |
- - uses: actions/labeler@e54e5b338fbd6e6cdb5d60f51c22335fc57c401e
|
|
|
4295f9 |
- with:
|
|
|
4295f9 |
- repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
4295f9 |
- configuration-path: .github/labeler.yml
|
|
|
4295f9 |
- sync-labels: "" # This is a workaround for issue 18671
|
|
|
4295f9 |
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml
|
|
|
4295f9 |
deleted file mode 100644
|
|
|
ac3a84 |
index 2a1163aa07..0000000000
|
|
|
4295f9 |
--- a/.github/workflows/mkosi.yml
|
|
|
4295f9 |
+++ /dev/null
|
|
|
ac3a84 |
@@ -1,90 +0,0 @@
|
|
|
152484 |
----
|
|
|
152484 |
-# vi: ts=2 sw=2 et:
|
|
|
152484 |
-# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
152484 |
-# Simple boot tests that build and boot the mkosi images generated by the mkosi config files in mkosi.default.d/.
|
|
|
4295f9 |
-name: mkosi
|
|
|
4295f9 |
-
|
|
|
4295f9 |
-on:
|
|
|
4295f9 |
- push:
|
|
|
4295f9 |
- branches:
|
|
|
4295f9 |
- - main
|
|
|
152484 |
- - v[0-9]+-stable
|
|
|
4295f9 |
- pull_request:
|
|
|
4295f9 |
- branches:
|
|
|
4295f9 |
- - main
|
|
|
152484 |
- - v[0-9]+-stable
|
|
|
152484 |
-
|
|
|
152484 |
-permissions:
|
|
|
152484 |
- contents: read
|
|
|
152484 |
-
|
|
|
152484 |
-env:
|
|
|
152484 |
- # Enable debug logging in systemd, but keep udev's log level to info,
|
|
|
152484 |
- # since it's _very_ verbose in the QEMU task
|
|
|
ac3a84 |
- # Disable the ISC DHCP servers, as they are failing in Ubuntu
|
|
|
ac3a84 |
- KERNEL_CMDLINE: "systemd.unit=mkosi-check-and-shutdown.service !quiet systemd.log_level=debug systemd.log_target=console udev.log_level=info systemd.default_standard_output=journal+console systemd.mask=isc-dhcp-server6.service systemd.mask=isc-dhcp-server.service"
|
|
|
4295f9 |
-
|
|
|
4295f9 |
-jobs:
|
|
|
4295f9 |
- ci:
|
|
|
ac3a84 |
- runs-on: ubuntu-22.04
|
|
|
152484 |
- concurrency:
|
|
|
ac3a84 |
- group: ${{ github.workflow }}-${{ matrix.distro }}-${{ matrix.release }}-${{ github.ref }}
|
|
|
152484 |
- cancel-in-progress: true
|
|
|
4295f9 |
- strategy:
|
|
|
4295f9 |
- fail-fast: false
|
|
|
4295f9 |
- matrix:
|
|
|
ac3a84 |
- include:
|
|
|
ac3a84 |
- - distro: arch
|
|
|
ac3a84 |
- release: rolling
|
|
|
ac3a84 |
- - distro: debian
|
|
|
ac3a84 |
- release: testing
|
|
|
ac3a84 |
- - distro: ubuntu
|
|
|
ac3a84 |
- release: jammy
|
|
|
ac3a84 |
- - distro: fedora
|
|
|
ac3a84 |
- release: "37"
|
|
|
ac3a84 |
- - distro: fedora
|
|
|
ac3a84 |
- release: rawhide
|
|
|
ac3a84 |
- - distro: opensuse
|
|
|
ac3a84 |
- release: tumbleweed
|
|
|
ac3a84 |
- - distro: centos_epel
|
|
|
ac3a84 |
- release: 9-stream
|
|
|
ac3a84 |
- - distro: centos_epel
|
|
|
ac3a84 |
- release: 8-stream
|
|
|
4295f9 |
-
|
|
|
4295f9 |
- steps:
|
|
|
ac3a84 |
- - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
ac3a84 |
- - uses: systemd/mkosi@792cbc60eb2dc4a58d66bb3c212bf92f8d50f6ea
|
|
|
4295f9 |
-
|
|
|
4295f9 |
- - name: Install
|
|
|
4295f9 |
- run: sudo apt-get update && sudo apt-get install --no-install-recommends python3-pexpect python3-jinja2
|
|
|
4295f9 |
-
|
|
|
152484 |
- - name: Configure
|
|
|
4295f9 |
- run: |
|
|
|
ac3a84 |
- tee mkosi.default <<- EOF
|
|
|
ac3a84 |
- [Distribution]
|
|
|
ac3a84 |
- Distribution=${{ matrix.distro }}
|
|
|
ac3a84 |
- Release=${{ matrix.release }}
|
|
|
ac3a84 |
-
|
|
|
ac3a84 |
- [Content]
|
|
|
ac3a84 |
- Environment=CI_BUILD=1
|
|
|
ac3a84 |
-
|
|
|
ac3a84 |
- [Output]
|
|
|
ac3a84 |
- KernelCommandLine=${{ env.KERNEL_CMDLINE }}
|
|
|
ac3a84 |
- EOF
|
|
|
4295f9 |
-
|
|
|
4295f9 |
- - name: Build ${{ matrix.distro }}
|
|
|
ac3a84 |
- run: sudo python3 -m mkosi build
|
|
|
4295f9 |
-
|
|
|
4295f9 |
- - name: Show ${{ matrix.distro }} image summary
|
|
|
ac3a84 |
- run: sudo python3 -m mkosi summary
|
|
|
4295f9 |
-
|
|
|
4295f9 |
- - name: Boot ${{ matrix.distro }} systemd-nspawn
|
|
|
ac3a84 |
- run: sudo python3 -m mkosi boot ${{ env.KERNEL_CMDLINE }}
|
|
|
4295f9 |
-
|
|
|
152484 |
- - name: Check ${{ matrix.distro }} systemd-nspawn
|
|
|
ac3a84 |
- run: sudo python3 -m mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
|
|
|
4295f9 |
-
|
|
|
152484 |
- - name: Boot ${{ matrix.distro }} QEMU
|
|
|
ac3a84 |
- run: sudo timeout -k 30 10m python3 -m mkosi qemu
|
|
|
4295f9 |
-
|
|
|
152484 |
- - name: Check ${{ matrix.distro }} QEMU
|
|
|
ac3a84 |
- run: sudo python3 -m mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
|