This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b67237  [CI] Improve change detection by reusing solution from 
apache/pulsar (#194)
9b67237 is described below

commit 9b672379dd58334c3f3148de527b4dd03e091184
Author: Lari Hotari <[email protected]>
AuthorDate: Tue Jan 4 11:40:40 2022 +0200

    [CI] Improve change detection by reusing solution from apache/pulsar (#194)
    
    * [CI] Improve change detection by reusing solution from apache/pulsar
    
    * Fix verify release
---
 .ci/release.sh                                     |  2 +-
 .github/actions/tune-runner-vm/action.yml          | 82 ++++++++++++++++++++++
 .../{workflows/style.yml => changes-filter.yaml}   | 34 +++------
 .github/workflows/lint.yml                         | 25 +++----
 .github/workflows/pulsar.yml                       | 27 +++----
 .github/workflows/pulsar_bk_tls.yml                | 26 +++----
 .github/workflows/pulsar_broker_tls.yml            | 27 +++----
 .github/workflows/pulsar_function.yml              | 27 +++----
 .github/workflows/pulsar_image.yml                 | 27 +++----
 .github/workflows/pulsar_jwt_asymmetric.yml        | 27 +++----
 .github/workflows/pulsar_jwt_symmetric.yml         | 27 +++----
 .github/workflows/pulsar_tls.yml                   | 27 +++----
 .github/workflows/pulsar_zk_tls.yml                | 27 +++----
 .github/workflows/pulsar_zkbk_tls.yml              | 27 +++----
 .github/workflows/release.yml                      | 16 ++++-
 .github/workflows/style.yml                        |  1 -
 .github/workflows/verify_release.yml               | 23 ++++--
 17 files changed, 277 insertions(+), 175 deletions(-)

diff --git a/.ci/release.sh b/.ci/release.sh
index 50f4817..a993ffb 100755
--- a/.ci/release.sh
+++ b/.ci/release.sh
@@ -81,7 +81,7 @@ function release::publish_charts() {
     if [[ "x${PUBLISH_CHARTS}" == "xtrue" ]]; then
       git push --set-upstream origin asf-site
     else
-      git push --dry-run --set-upstream origin asf-site
+      echo "Skipping publishing charts"
     fi
 }
 
diff --git a/.github/actions/tune-runner-vm/action.yml 
b/.github/actions/tune-runner-vm/action.yml
new file mode 100644
index 0000000..e8914db
--- /dev/null
+++ b/.github/actions/tune-runner-vm/action.yml
@@ -0,0 +1,82 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: Tune Runner VM performance
+description: tunes the GitHub Runner VM operation system
+runs:
+  using: composite
+  steps:
+    - run: |
+        if [[ "$OSTYPE" == "linux-gnu"* ]]; then
+            # Ensure that reverse lookups for current hostname are handled 
properly
+            # Add the current IP address, long hostname and short hostname 
record to /etc/hosts file
+            echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | 
cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
+
+            # The default vm.swappiness setting is 60 which has a tendency to 
start swapping when memory
+            # consumption is high.
+            # Set vm.swappiness=1 to avoid swapping and allow high RAM usage
+            echo 1 | sudo tee /proc/sys/vm/swappiness
+            # Set swappiness to 1 for all cgroups and sub-groups
+            for swappiness_dir in /sys/fs/cgroup/memory/*/ 
/sys/fs/cgroup/memory/*/*/; do
+              if [ -d "swappiness_dir" ]; then
+                echo 1 | sudo tee $(swappiness_dir)memory.swappiness > 
/dev/null
+              fi
+            done
+
+            # use "madvise" Linux Transparent HugePages (THP) setting
+            # 
https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html
+            # "madvise" is generally a better option than the default "always" 
setting
+            echo madvise | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
+
+            # tune filesystem mount options, 
https://www.kernel.org/doc/Documentation/filesystems/ext4.txt
+            # commit=999999, effectively disables automatic syncing to disk 
(default is every 5 seconds)
+            # nobarrier/barrier=0, loosen data consistency on system crash (no 
negative impact to empheral CI nodes)
+            sudo mount -o remount,nodiscard,commit=999999,barrier=0 /
+            sudo mount -o remount,nodiscard,commit=999999,barrier=0 /mnt
+            # disable discard/trim at device level since remount with 
nodiscard doesn't seem to be effective
+            # https://www.spinics.net/lists/linux-ide/msg52562.html
+            for i in /sys/block/sd*/queue/discard_max_bytes; do
+              echo 0 | sudo tee $i
+            done
+            # disable any background jobs that run SSD discard/trim
+            sudo systemctl disable fstrim.timer || true
+            sudo systemctl stop fstrim.timer || true
+            sudo systemctl disable fstrim.service || true
+            sudo systemctl stop fstrim.service || true
+
+            # stop php-fpm
+            sudo systemctl stop php8.0-fpm.service || true
+            sudo systemctl stop php7.4-fpm.service || true
+            # stop mono-xsp4
+            sudo systemctl disable mono-xsp4.service || true
+            sudo systemctl stop mono-xsp4.service || true
+            sudo killall mono || true
+
+            # stop Azure Linux agent to save RAM
+            sudo systemctl stop walinuxagent.service || true
+
+            # show memory
+            free -m
+            # show disk
+            df -h
+            # show cggroup
+            echo "/actions_job cgroup settings:"
+            sudo cgget actions_job
+        fi
+      shell: bash
diff --git a/.github/workflows/style.yml b/.github/changes-filter.yaml
similarity index 64%
copy from .github/workflows/style.yml
copy to .github/changes-filter.yaml
index c199492..932ff31 100644
--- a/.github/workflows/style.yml
+++ b/.github/changes-filter.yaml
@@ -17,28 +17,12 @@
 # under the License.
 #
 
-name: Precommit Style Check
-on:
-  pull_request:
-    branches:
-      - '*'
-jobs:
-
-  build:
-    name: Build
-    runs-on: ubuntu-latest
-    timeout-minutes: 45
-    steps:
-
-    - name: Set up Go 1.12
-      uses: actions/setup-go@v1
-      with:
-        go-version: 1.12
-      id: go
-
-    - name: Check out code into the Go module directory
-      uses: actions/checkout@v2
-
-    - name: Check license
-      run: |
-        go test license_test.go
+# contains pattern definitions used in workflows "changes" step
+# pattern syntax: https://github.com/micromatch/picomatch
+all:
+  - '**'
+docs:
+  - 'examples/**'
+  - '.asf.yaml'
+  - '*.md'
+  - '**/*.md'
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 6fdbbe7..b3f56fe 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -22,28 +22,29 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Lint chart
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
         id: lint
         uses: helm/[email protected]
         with:
diff --git a/.github/workflows/pulsar.yml b/.github/workflows/pulsar.yml
index 07db554..dd4c968 100644
--- a/.github/workflows/pulsar.yml
+++ b/.github/workflows/pulsar.yml
@@ -22,29 +22,30 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Install chart
         run: |
           .ci/chart_test.sh .ci/clusters/values-local-pv.yaml
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_bk_tls.yml 
b/.github/workflows/pulsar_bk_tls.yml
index e673236..7b9e6b8 100644
--- a/.github/workflows/pulsar_bk_tls.yml
+++ b/.github/workflows/pulsar_bk_tls.yml
@@ -22,29 +22,29 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Run chart-testing (install)
         run: |
           .ci/chart_test.sh .ci/clusters/values-bk-tls.yaml
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_broker_tls.yml 
b/.github/workflows/pulsar_broker_tls.yml
index 74a8e26..78a73cb 100644
--- a/.github/workflows/pulsar_broker_tls.yml
+++ b/.github/workflows/pulsar_broker_tls.yml
@@ -22,29 +22,30 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Run chart-testing (install)
         run: |
           .ci/chart_test.sh .ci/clusters/values-broker-tls.yaml
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_function.yml 
b/.github/workflows/pulsar_function.yml
index 68b077c..58d785d 100644
--- a/.github/workflows/pulsar_function.yml
+++ b/.github/workflows/pulsar_function.yml
@@ -22,26 +22,27 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Install chart
         run: |
@@ -49,4 +50,4 @@ jobs:
         env:
           FUNCTION: "true"
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_image.yml 
b/.github/workflows/pulsar_image.yml
index 42e563c..0736c56 100644
--- a/.github/workflows/pulsar_image.yml
+++ b/.github/workflows/pulsar_image.yml
@@ -22,29 +22,30 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Install chart
         run: |
           .ci/chart_test.sh .ci/clusters/values-pulsar-image.yaml
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_jwt_asymmetric.yml 
b/.github/workflows/pulsar_jwt_asymmetric.yml
index e4d8438..6f15a0c 100644
--- a/.github/workflows/pulsar_jwt_asymmetric.yml
+++ b/.github/workflows/pulsar_jwt_asymmetric.yml
@@ -22,26 +22,27 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Run chart-testing (install)
         run: |
@@ -49,4 +50,4 @@ jobs:
         env:
           SYMMETRIC: "false"
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_jwt_symmetric.yml 
b/.github/workflows/pulsar_jwt_symmetric.yml
index 18221cd..4c13ed9 100644
--- a/.github/workflows/pulsar_jwt_symmetric.yml
+++ b/.github/workflows/pulsar_jwt_symmetric.yml
@@ -22,26 +22,27 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Run chart-testing (install)
         run: |
@@ -49,4 +50,4 @@ jobs:
         env:
           SYMMETRIC: "true"
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_tls.yml b/.github/workflows/pulsar_tls.yml
index 05eeb68..545879c 100644
--- a/.github/workflows/pulsar_tls.yml
+++ b/.github/workflows/pulsar_tls.yml
@@ -22,29 +22,30 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Install chart
         run: |
           .ci/chart_test.sh .ci/clusters/values-tls.yaml
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_zk_tls.yml 
b/.github/workflows/pulsar_zk_tls.yml
index f21cb99..1f871c8 100644
--- a/.github/workflows/pulsar_zk_tls.yml
+++ b/.github/workflows/pulsar_zk_tls.yml
@@ -22,29 +22,30 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Install chart
         run: |
           .ci/chart_test.sh .ci/clusters/values-zk-tls.yaml
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/pulsar_zkbk_tls.yml 
b/.github/workflows/pulsar_zkbk_tls.yml
index 2c017b6..346fea1 100644
--- a/.github/workflows/pulsar_zkbk_tls.yml
+++ b/.github/workflows/pulsar_zkbk_tls.yml
@@ -22,29 +22,30 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
-        with:
-          fetch-depth: 0
-          ref: ${{ github.event.pull_request.head.sha }}
 
-      - name: Check if this pull request only changes documentation
-        id:   docs
-        uses: apache/pulsar-test-infra/diff-only@master
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
         with:
-          args: site2 .asf.yaml ct.yaml
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Install chart
         run: |
           .ci/chart_test.sh .ci/clusters/values-zkbk-tls.yaml
         # Only build a kind cluster if there are chart changes to test.
-        if: steps.docs.outputs.changed_only == 'no'
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a0e133d..def1537 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -27,13 +27,27 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
         with:
           token: ${{ secrets.PULSARBOT_TOKEN }}
           fetch-depth: 0
 
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
+        with:
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
+
       - name: Install chart
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
         env:
           GITHUB_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
           PUBLISH_CHARTS: true
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index c199492..2868ba2 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -29,7 +29,6 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-
     - name: Set up Go 1.12
       uses: actions/setup-go@v1
       with:
diff --git a/.github/workflows/verify_release.yml 
b/.github/workflows/verify_release.yml
index e8ef46b..6d39eb6 100644
--- a/.github/workflows/verify_release.yml
+++ b/.github/workflows/verify_release.yml
@@ -22,19 +22,32 @@ on:
   pull_request:
     branches:
       - '*'
-    paths:
-      - 'charts/pulsar/**'
-      - '.ci/**'
-      - 'hack/**'
+
 jobs:
   release:
     runs-on: ubuntu-latest
     timeout-minutes: 45
     steps:
-      - name: Checkout
+      - name: checkout
         uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+
+      - name: Tune Runner VM
+        uses: ./.github/actions/tune-runner-vm
+
+      - name: Detect changed files
+        id:   changes
+        uses: apache/pulsar-test-infra/paths-filter@master
+        with:
+          filters: .github/changes-filter.yaml
+
+      - name: Check changed files
+        id: check_changes
+        run: echo "::set-output name=docs_only::${{ 
fromJSON(steps.changes.outputs.all_count) == 
fromJSON(steps.changes.outputs.docs_count) && 
fromJSON(steps.changes.outputs.docs_count) > 0 }}"
 
       - name: Install chart
+        if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           PUBLISH_CHARTS: false

Reply via email to