From 1916c2c55280f5a01f16e901f213d686eb0af93b Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 22 May 2026 12:01:22 -0700 Subject: [PATCH] CI: skip full CI runs on push events Full CI runs for proposed changes always occur in the PR where the review is done and patch approved. Once merged the full CI is run again using the merged commit. This is somewhat overkill. In the interest of reducing the CI load only run the zloop and checkstyle workflows which are enough to verify the build on the master branch. Push events to forks will continue to trigger a full CI run. Reviewed-by: George Melikov Signed-off-by: Brian Behlendorf Closes #18571 --- .github/workflows/codeql.yml | 1 + .github/workflows/smatch.yml | 1 + .github/workflows/zfs-arm.yml | 1 + .github/workflows/zfs-qemu.yml | 11 +++++++++-- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 689fe71fddc..04ad7fae711 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,6 +11,7 @@ concurrency: jobs: analyze: name: Analyze + if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs' runs-on: ubuntu-22.04 permissions: actions: read diff --git a/.github/workflows/smatch.yml b/.github/workflows/smatch.yml index 305a1f0179b..ffad83b64ea 100644 --- a/.github/workflows/smatch.yml +++ b/.github/workflows/smatch.yml @@ -10,6 +10,7 @@ concurrency: jobs: smatch: + if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs' runs-on: ubuntu-24.04 steps: - name: Checkout smatch diff --git a/.github/workflows/zfs-arm.yml b/.github/workflows/zfs-arm.yml index b6d6444c2dd..fb91f198f6d 100644 --- a/.github/workflows/zfs-arm.yml +++ b/.github/workflows/zfs-arm.yml @@ -14,6 +14,7 @@ on: jobs: zfs-arm: name: ZFS ARM build + if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs' runs-on: ubuntu-24.04-arm steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/zfs-qemu.yml b/.github/workflows/zfs-qemu.yml index 9f251beac9e..64ffee484a5 100644 --- a/.github/workflows/zfs-qemu.yml +++ b/.github/workflows/zfs-qemu.yml @@ -23,6 +23,7 @@ concurrency: jobs: test-config: name: Setup + if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs' runs-on: ubuntu-24.04 outputs: test_os: ${{ steps.os.outputs.os }} @@ -94,7 +95,10 @@ jobs: qemu-vm: name: qemu-x86 needs: [ test-config ] - if: needs.test-config.outputs.ci_type != 'docs' + if: >- + (github.event_name == 'pull_request' || + github.repository != 'openzfs/zfs') && + needs.test-config.outputs.ci_type != 'docs' strategy: fail-fast: false matrix: @@ -157,7 +161,10 @@ jobs: run: .github/workflows/scripts/qemu-8-summary.sh '${{ steps.artifact-upload.outputs.artifact-url }}' cleanup: - if: always() + if: >- + (github.event_name == 'pull_request' || + github.repository != 'openzfs/zfs') && + always() name: Cleanup runs-on: ubuntu-latest needs: [ qemu-vm ]