richardphibel / rpms / systemd

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