ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
152484
From b9c7cd794733257a17b2eb9eadc716007e509ca9 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
4295f9
Resolves: #1960703
4295f9
rhel-only
4295f9
---
152484
 .github/labeler.yml            | 40 -----------------
152484
 .github/workflows/cifuzz.yml   | 55 -----------------------
152484
 .github/workflows/coverity.yml | 43 ------------------
152484
 .github/workflows/labeler.yml  | 23 ----------
152484
 .github/workflows/mkosi.yml    | 80 ----------------------------------
152484
 5 files changed, 241 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
152484
index 11ea788a47..0000000000
4295f9
--- a/.github/workflows/cifuzz.yml
4295f9
+++ /dev/null
152484
@@ -1,55 +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:
152484
-      group: ${{ github.workflow }}-${{ matrix.sanitizer }}-${{ github.ref }}
152484
-      cancel-in-progress: true
152484
-    strategy:
152484
-      fail-fast: false
152484
-      matrix:
152484
-        sanitizer: [address, undefined, memory]
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
152484
-          sanitizer: ${{ matrix.sanitizer }}
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
152484
-        uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
152484
-        if: failure() && steps.build.outcome == 'success'
152484
-        with:
152484
-          name: ${{ matrix.sanitizer }}-artifacts
152484
-          path: ./out/artifacts
4295f9
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
4295f9
deleted file mode 100644
152484
index a164d16fbf..0000000000
4295f9
--- a/.github/workflows/coverity.yml
4295f9
+++ /dev/null
152484
@@ -1,43 +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:
4295f9
-    runs-on: ubuntu-20.04
4295f9
-    if: github.repository == 'systemd/systemd'
4295f9
-    env:
4295f9
-      COVERITY_SCAN_BRANCH_PATTERN:     "${{ github.ref}}"
4295f9
-      COVERITY_SCAN_NOTIFICATION_EMAIL: ""
4295f9
-      COVERITY_SCAN_PROJECT_NAME:       "${{ github.repository }}"
4295f9
-      # Set in repo settings -> secrets -> repository secrets
4295f9
-      COVERITY_SCAN_TOKEN:              "${{ secrets.COVERITY_SCAN_TOKEN }}"
4295f9
-      CURRENT_REF:                      "${{ github.ref }}"
4295f9
-    steps:
4295f9
-      - name: Repository checkout
152484
-        uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
4295f9
-      # https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
4295f9
-      - name: Set the $COVERITY_SCAN_NOTIFICATION_EMAIL env variable
4295f9
-        run: echo "COVERITY_SCAN_NOTIFICATION_EMAIL=$(git log -1 ${{ github.sha }} --pretty=\"%aE\")" >> $GITHUB_ENV
4295f9
-      - name: Install Coverity tools
4295f9
-        run: tools/get-coverity.sh
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
4295f9
-      # Preconfigure with meson to prevent Coverity from capturing meson metadata
4295f9
-      - name: Preconfigure the build directory
4295f9
-        run: meson cov-build -Dman=false
4295f9
-      - name: Build
4295f9
-        run: tools/coverity.sh build
4295f9
-      - name: Upload the results
4295f9
-        run: tools/coverity.sh upload
4295f9
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
4295f9
deleted file mode 100644
152484
index 34d9d63d42..0000000000
4295f9
--- a/.github/workflows/labeler.yml
4295f9
+++ /dev/null
152484
@@ -1,23 +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:
4295f9
-    runs-on: ubuntu-latest
152484
-    permissions:
152484
-      pull-requests: write
4295f9
-    steps:
152484
-    - uses: actions/labeler@69da01b8e0929f147b8943611bee75ee4175a49e
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
152484
index 8fd6c72e26..0000000000
4295f9
--- a/.github/workflows/mkosi.yml
4295f9
+++ /dev/null
152484
@@ -1,80 +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
152484
-  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"
4295f9
-
4295f9
-jobs:
4295f9
-  ci:
4295f9
-    runs-on: ubuntu-20.04
152484
-    concurrency:
152484
-      group: ${{ github.workflow }}-${{ matrix.distro }}-${{ github.ref }}
152484
-      cancel-in-progress: true
4295f9
-    strategy:
4295f9
-      fail-fast: false
4295f9
-      matrix:
4295f9
-        distro:
4295f9
-          - arch
4295f9
-          - debian
4295f9
-          - ubuntu
4295f9
-          - fedora
152484
-          - opensuse
4295f9
-
4295f9
-    steps:
152484
-    - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
152484
-    - uses: systemd/mkosi@4d64fc8134f93d87ac584183e7762ac1d0efa0e5
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
152484
-      run: echo -e "[Distribution]\nDistribution=${{ matrix.distro }}\n" >mkosi.default
4295f9
-
4295f9
-    # Ubuntu's systemd-nspawn doesn't support faccessat2() syscall, which is
4295f9
-    # required, since current Arch's glibc implements faccessat() via faccessat2().
4295f9
-    - name: Update systemd-nspawn
4295f9
-      if: ${{ matrix.distro == 'arch' }}
4295f9
-      run: |
4295f9
-        echo "deb-src http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
4295f9
-        sudo apt update
4295f9
-        sudo apt build-dep systemd
4295f9
-        meson build
4295f9
-        ninja -C build
4295f9
-        sudo ln -svf $PWD/build/systemd-nspawn `which systemd-nspawn`
4295f9
-        systemd-nspawn --version
4295f9
-
4295f9
-    - name: Build ${{ matrix.distro }}
152484
-      run: ./.github/workflows/run_mkosi.sh --build-environment=CI_BUILD=1 --kernel-command-line "${{ env.KERNEL_CMDLINE }}" build
4295f9
-
4295f9
-    - name: Show ${{ matrix.distro }} image summary
152484
-      run: ./.github/workflows/run_mkosi.sh summary
4295f9
-
4295f9
-    - name: Boot ${{ matrix.distro }} systemd-nspawn
152484
-      run: ./.github/workflows/run_mkosi.sh boot ${{ env.KERNEL_CMDLINE }}
4295f9
-
152484
-    - name: Check ${{ matrix.distro }} systemd-nspawn
152484
-      run: ./.github/workflows/run_mkosi.sh shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
4295f9
-
152484
-    - name: Boot ${{ matrix.distro }} QEMU
152484
-      run: ./.github/workflows/run_mkosi.sh qemu
4295f9
-
152484
-    - name: Check ${{ matrix.distro }} QEMU
152484
-      run: ./.github/workflows/run_mkosi.sh shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"