From 5e75207c2e2a6079e64311b628e35afdfe7f2a99 Mon Sep 17 00:00:00 2001 From: Tino Reichardt Date: Sun, 29 Dec 2024 10:52:41 +0100 Subject: [PATCH] add-packages --- .github/workflows/checkstyle.yaml | 64 ------------------------- .github/workflows/codeql.yml | 45 ------------------ .github/workflows/labels.yml | 49 -------------------- .github/workflows/zloop.yml | 77 ------------------------------- 4 files changed, 235 deletions(-) delete mode 100644 .github/workflows/checkstyle.yaml delete mode 100644 .github/workflows/codeql.yml delete mode 100644 .github/workflows/labels.yml delete mode 100644 .github/workflows/zloop.yml diff --git a/.github/workflows/checkstyle.yaml b/.github/workflows/checkstyle.yaml deleted file mode 100644 index b34ca1302873..000000000000 --- a/.github/workflows/checkstyle.yaml +++ /dev/null @@ -1,64 +0,0 @@ -name: checkstyle - -on: - push: - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - checkstyle: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Install dependencies - run: | - # for x in lxd core20 snapd; do sudo snap remove $x; done - sudo apt-get purge -y snapd google-chrome-stable firefox - ONLY_DEPS=1 .github/workflows/scripts/qemu-3-deps.sh ubuntu22 - sudo apt-get install -y cppcheck devscripts mandoc pax-utils shellcheck - sudo python -m pipx install --quiet flake8 - # confirm that the tools are installed - # the build system doesn't fail when they are not - checkbashisms --version - cppcheck --version - flake8 --version - scanelf --version - shellcheck --version - - name: Prepare - run: | - sed -i '/DEBUG_CFLAGS="-Werror"/s/^/#/' config/zfs-build.m4 - ./autogen.sh - - name: Configure - run: | - ./configure - - name: Make - run: | - make -j$(nproc) --no-print-directory --silent - - name: Checkstyle - run: | - make -j$(nproc) --no-print-directory --silent checkstyle - - name: Lint - run: | - make -j$(nproc) --no-print-directory --silent lint - - name: CheckABI - id: CheckABI - run: | - docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent checkabi - - name: StoreABI - if: failure() && steps.CheckABI.outcome == 'failure' - run: | - docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent storeabi - - name: Prepare artifacts - if: failure() && steps.CheckABI.outcome == 'failure' - run: | - find -name *.abi | tar -cf abi_files.tar -T - - - uses: actions/upload-artifact@v4 - if: failure() && steps.CheckABI.outcome == 'failure' - with: - name: New ABI files (use only if you're sure about interface changes) - path: abi_files.tar diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index e975d7dd00b9..000000000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: "CodeQL" - -on: - push: - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-22.04 - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'cpp', 'python' ] - - steps: - - name: Set make jobs - run: | - echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV - - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - config-file: .github/codeql-${{ matrix.language }}.yml - languages: ${{ matrix.language }} - - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml deleted file mode 100644 index 6193c8afeae9..000000000000 --- a/.github/workflows/labels.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: labels - -on: - pull_request_target: - types: [ opened, synchronize, reopened, converted_to_draft, ready_for_review ] - -permissions: - pull-requests: write - -jobs: - open: - runs-on: ubuntu-latest - if: ${{ github.event.action == 'opened' && github.event.pull_request.draft }} - steps: - - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE: ${{ github.event.pull_request.html_url }} - run: | - gh pr edit $ISSUE --add-label "Status: Work in Progress" - - push: - runs-on: ubuntu-latest - if: ${{ github.event.action == 'synchronize' || github.event.action == 'reopened' }} - steps: - - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE: ${{ github.event.pull_request.html_url }} - run: | - gh pr edit $ISSUE --remove-label "Status: Accepted,Status: Inactive,Status: Revision Needed,Status: Stale" - - draft: - runs-on: ubuntu-latest - if: ${{ github.event.action == 'converted_to_draft' }} - steps: - - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE: ${{ github.event.pull_request.html_url }} - run: | - gh pr edit $ISSUE --remove-label "Status: Accepted,Status: Code Review Needed,Status: Inactive,Status: Revision Needed,Status: Stale" --add-label "Status: Work in Progress" - - rfr: - runs-on: ubuntu-latest - if: ${{ github.event.action == 'ready_for_review' }} - steps: - - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE: ${{ github.event.pull_request.html_url }} - run: | - gh pr edit $ISSUE --remove-label "Status: Accepted,Status: Inactive,Status: Revision Needed,Status: Stale,Status: Work in Progress" --add-label "Status: Code Review Needed" diff --git a/.github/workflows/zloop.yml b/.github/workflows/zloop.yml deleted file mode 100644 index 90d93c48e4bd..000000000000 --- a/.github/workflows/zloop.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: zloop - -on: - push: - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - zloop: - runs-on: ubuntu-24.04 - env: - TEST_DIR: /var/tmp/zloop - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Install dependencies - run: | - sudo apt-get purge -y snapd google-chrome-stable firefox - ONLY_DEPS=1 .github/workflows/scripts/qemu-3-deps.sh ubuntu24 - - name: Autogen.sh - run: | - sed -i '/DEBUG_CFLAGS="-Werror"/s/^/#/' config/zfs-build.m4 - ./autogen.sh - - name: Configure - run: | - ./configure --prefix=/usr --enable-debug --enable-debuginfo \ - --enable-asan --enable-ubsan \ - --enable-debug-kmem --enable-debug-kmem-tracking - - name: Make - run: | - make -j$(nproc) - - name: Install - run: | - sudo make install - sudo depmod - sudo modprobe zfs - - name: Tests - run: | - sudo mkdir -p $TEST_DIR - # run for 10 minutes or at most 6 iterations for a maximum runner - # time of 60 minutes. - sudo /usr/share/zfs/zloop.sh -t 600 -I 6 -l -m 1 -- -T 120 -P 60 - - name: Prepare artifacts - if: failure() - run: | - sudo chmod +r -R $TEST_DIR/ - - name: Ztest log - if: failure() - run: | - grep -B10 -A1000 'ASSERT' $TEST_DIR/*/ztest.out || tail -n 1000 $TEST_DIR/*/ztest.out - - name: Gdb log - if: failure() - run: | - sed -n '/Backtraces (full)/q;p' $TEST_DIR/*/ztest.gdb - - name: Zdb log - if: failure() - run: | - cat $TEST_DIR/*/ztest.zdb - - uses: actions/upload-artifact@v4 - if: failure() - with: - name: Logs - path: | - /var/tmp/zloop/*/ - !/var/tmp/zloop/*/vdev/ - if-no-files-found: ignore - - uses: actions/upload-artifact@v4 - if: failure() - with: - name: Pool files - path: | - /var/tmp/zloop/*/vdev/ - if-no-files-found: ignore