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