From 339a1e7b146acc7fb35ec7c2f32052dc8d3dc465 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Mon, 26 Apr 2021 10:22:18 +0300 Subject: [PATCH 1/2] Fix skipping tests for documentation changes --- .github/workflows/ci-build-macos.yaml | 25 +++++++++++++++++-- .github/workflows/ci-cpp-build-centos7.yaml | 14 +++-------- .github/workflows/ci-cpp.yaml | 20 +++++++++------ .github/workflows/ci-go-functions-style.yaml | 14 +++++++---- .github/workflows/ci-go-functions-test.yaml | 10 +++++--- ...i-integration-backwards-compatibility.yaml | 24 ++++++++++-------- .github/workflows/ci-integration-cli.yaml | 24 ++++++++++-------- .../workflows/ci-integration-function.yaml | 24 ++++++++++-------- .../workflows/ci-integration-messaging.yaml | 24 ++++++++++-------- .github/workflows/ci-integration-process.yaml | 24 ++++++++++-------- .github/workflows/ci-integration-schema.yaml | 24 ++++++++++-------- .github/workflows/ci-integration-sql.yaml | 24 ++++++++++-------- .../workflows/ci-integration-standalone.yaml | 24 ++++++++++-------- .github/workflows/ci-integration-thread.yaml | 24 ++++++++++-------- .../ci-integration-tiered-filesystem.yaml | 24 ++++++++++-------- .../ci-integration-tiered-jcloud.yaml | 24 ++++++++++-------- .../workflows/ci-integration-transaction.yaml | 24 ++++++++++-------- .github/workflows/ci-license.yaml | 18 +++++++------ .github/workflows/ci-maven-cache-update.yaml | 2 +- .github/workflows/ci-shade-test.yaml | 24 ++++++++++-------- .../workflows/ci-unit-broker-broker-gp1.yaml | 16 +++++++----- .../workflows/ci-unit-broker-broker-gp2.yaml | 16 +++++++----- .../workflows/ci-unit-broker-client-api.yaml | 16 +++++++----- .../workflows/ci-unit-broker-client-impl.yaml | 16 +++++++----- .github/workflows/ci-unit-broker-other.yaml | 16 +++++++----- .github/workflows/ci-unit-proxy.yaml | 16 +++++++----- .github/workflows/ci-unit.yaml | 14 +++++++---- 27 files changed, 318 insertions(+), 207 deletions(-) diff --git a/.github/workflows/ci-build-macos.yaml b/.github/workflows/ci-build-macos.yaml index 4a35687fb9028..9018139675be2 100644 --- a/.github/workflows/ci-build-macos.yaml +++ b/.github/workflows/ci-build-macos.yaml @@ -22,11 +22,9 @@ on: pull_request: branches: - master - paths-ignore: ['site2/**', 'deployment/**'] push: branches: - branch-* - paths-ignore: ['site2/**', 'deployment/**'] env: MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 @@ -45,7 +43,27 @@ jobs: - 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: | + # pattern syntax: https://github.com/micromatch/picomatch + all: + - '**' + docs: + - 'site2/**' + - 'deployment/**' + - '.asf.yaml' + - '*.md' + - '**/*.md' + + - 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: Cache Maven dependencies + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -56,12 +74,15 @@ jobs: ${{ runner.os }}-m2-dependencies-all- - name: Set up JDK 1.8 + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/setup-java@v1 with: java-version: 1.8 - name: Replace maven's wagon-http version + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build package + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B clean install -DskipTests diff --git a/.github/workflows/ci-cpp-build-centos7.yaml b/.github/workflows/ci-cpp-build-centos7.yaml index 028bcc5425495..547c69a8b4992 100644 --- a/.github/workflows/ci-cpp-build-centos7.yaml +++ b/.github/workflows/ci-cpp-build-centos7.yaml @@ -40,23 +40,17 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: filters: | # pattern syntax: https://github.com/micromatch/picomatch - all: + cpp: - 'pulsar-client-cpp/**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' - name: build cpp client on centos 7 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.changes.outputs.cpp == 'true' }} run: | echo "Build C++ client library on CentOS 7" - pulsar-client-cpp/docker-build-centos7.sh + pulsar-client-cpp/docker-build-centos7.sh \ No newline at end of file diff --git a/.github/workflows/ci-cpp.yaml b/.github/workflows/ci-cpp.yaml index 371a465ace514..e97d5e84faf61 100644 --- a/.github/workflows/ci-cpp.yaml +++ b/.github/workflows/ci-cpp.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,12 +75,12 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -f /swapfile @@ -85,22 +89,22 @@ jobs: df -h - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build package - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -ntp -q install -Pcore-modules,-main -DskipTests - name: build cpp artifacts - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | echo "Build C++ client library" export CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_DYNAMIC_LIB=OFF -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so" pulsar-client-cpp/docker-build.sh - name: run c++ tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: pulsar-client-cpp/docker-tests.sh - name: Upload test-logs diff --git a/.github/workflows/ci-go-functions-style.yaml b/.github/workflows/ci-go-functions-style.yaml index 652754c13402c..dabc2110548b2 100644 --- a/.github/workflows/ci-go-functions-style.yaml +++ b/.github/workflows/ci-go-functions-style.yaml @@ -51,7 +51,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -66,28 +66,32 @@ jobs: - '*.md' - '**/*.md' + - 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: Set up Go uses: actions/setup-go@v2 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: go-version: ${{ matrix.go-version }} id: go - name: InstallTool - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | cd pulsar-function-go wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.18.0 ./bin/golangci-lint --version - name: Build - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | cd pulsar-function-go go build ./... - name: CheckStyle - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | cd pulsar-function-go ./bin/golangci-lint run -c ./golangci.yml ./pf diff --git a/.github/workflows/ci-go-functions-test.yaml b/.github/workflows/ci-go-functions-test.yaml index c37f103467417..b03fa99bbbc16 100644 --- a/.github/workflows/ci-go-functions-test.yaml +++ b/.github/workflows/ci-go-functions-test.yaml @@ -53,7 +53,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -68,15 +68,19 @@ jobs: - '*.md' - '**/*.md' + - 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: Set up Go uses: actions/setup-go@v2 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: go-version: ${{ matrix.go-version }} id: go - name: Run tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | cd pulsar-function-go go test -v $(go list ./... | grep -v examples) diff --git a/.github/workflows/ci-integration-backwards-compatibility.yaml b/.github/workflows/ci-integration-backwards-compatibility.yaml index 2da4598b11d88..2fb119ec99bbd 100644 --- a/.github/workflows/ci-integration-backwards-compatibility.yaml +++ b/.github/workflows/ci-integration-backwards-compatibility.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,17 +75,17 @@ jobs: ${{ runner.os }}-m2-dependencies-core-modules- - name: Set up JDK 1.8 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/setup-java@v1 with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -90,23 +94,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh BACKWARDS_COMPAT - name: Upload container logs diff --git a/.github/workflows/ci-integration-cli.yaml b/.github/workflows/ci-integration-cli.yaml index b1f5088dc03bc..8c849a7185c93 100644 --- a/.github/workflows/ci-integration-cli.yaml +++ b/.github/workflows/ci-integration-cli.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -72,16 +76,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -90,23 +94,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh CLI - name: Upload container logs diff --git a/.github/workflows/ci-integration-function.yaml b/.github/workflows/ci-integration-function.yaml index d35c6a89f4cb1..0998699a21ebf 100644 --- a/.github/workflows/ci-integration-function.yaml +++ b/.github/workflows/ci-integration-function.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -72,16 +76,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -90,23 +94,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh FUNCTION - name: Upload container logs diff --git a/.github/workflows/ci-integration-messaging.yaml b/.github/workflows/ci-integration-messaging.yaml index 016982b3f424c..9e9886418aa48 100644 --- a/.github/workflows/ci-integration-messaging.yaml +++ b/.github/workflows/ci-integration-messaging.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -72,16 +76,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -90,23 +94,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh MESSAGING - name: Upload container logs diff --git a/.github/workflows/ci-integration-process.yaml b/.github/workflows/ci-integration-process.yaml index 840488302e735..707c94dd3da49 100644 --- a/.github/workflows/ci-integration-process.yaml +++ b/.github/workflows/ci-integration-process.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,23 +93,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh PULSAR_CONNECTORS_PROCESS - name: Upload container logs diff --git a/.github/workflows/ci-integration-schema.yaml b/.github/workflows/ci-integration-schema.yaml index 99b4f646c0fc7..44ba0c2cfc7a1 100644 --- a/.github/workflows/ci-integration-schema.yaml +++ b/.github/workflows/ci-integration-schema.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,20 +93,20 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh SCHEMA - name: Upload container logs diff --git a/.github/workflows/ci-integration-sql.yaml b/.github/workflows/ci-integration-sql.yaml index 576bbae0f269b..a9e673b15cc85 100644 --- a/.github/workflows/ci-integration-sql.yaml +++ b/.github/workflows/ci-integration-sql.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,23 +93,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker pulsar latest test image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh SQL - name: Upload container logs diff --git a/.github/workflows/ci-integration-standalone.yaml b/.github/workflows/ci-integration-standalone.yaml index 0404a09b1c13e..0c0695baaeca7 100644 --- a/.github/workflows/ci-integration-standalone.yaml +++ b/.github/workflows/ci-integration-standalone.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,23 +93,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh STANDALONE - name: Upload container logs diff --git a/.github/workflows/ci-integration-thread.yaml b/.github/workflows/ci-integration-thread.yaml index cf2a5e1c0b9cc..645e92ccf332e 100644 --- a/.github/workflows/ci-integration-thread.yaml +++ b/.github/workflows/ci-integration-thread.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,23 +93,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration function - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh PULSAR_CONNECTORS_THREAD - name: Upload container logs diff --git a/.github/workflows/ci-integration-tiered-filesystem.yaml b/.github/workflows/ci-integration-tiered-filesystem.yaml index 61f10be0cd673..e7bcf0d61cc6e 100644 --- a/.github/workflows/ci-integration-tiered-filesystem.yaml +++ b/.github/workflows/ci-integration-tiered-filesystem.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,23 +93,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh TIERED_FILESYSTEM - name: Upload container logs diff --git a/.github/workflows/ci-integration-tiered-jcloud.yaml b/.github/workflows/ci-integration-tiered-jcloud.yaml index 8445a35dbc82f..10da06bc6117f 100644 --- a/.github/workflows/ci-integration-tiered-jcloud.yaml +++ b/.github/workflows/ci-integration-tiered-jcloud.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,23 +93,23 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh TIERED_JCLOUD - name: Upload container logs diff --git a/.github/workflows/ci-integration-transaction.yaml b/.github/workflows/ci-integration-transaction.yaml index 920a2dca4c33c..0a66e747d429c 100644 --- a/.github/workflows/ci-integration-transaction.yaml +++ b/.github/workflows/ci-integration-transaction.yaml @@ -42,7 +42,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -57,8 +57,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -89,20 +93,20 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run integration tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh TRANSACTION - name: Upload container logs diff --git a/.github/workflows/ci-license.yaml b/.github/workflows/ci-license.yaml index 4a7386c50354e..c17c162774c79 100644 --- a/.github/workflows/ci-license.yaml +++ b/.github/workflows/ci-license.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,26 +75,26 @@ jobs: ${{ runner.os }}-m2-dependencies-core-modules- - name: Set up JDK 1.8 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/setup-java@v1 with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh # license check fails with 3.6.2 so we have to downgrade - name: Set up Maven - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: apache/pulsar-test-infra/setup-maven@master with: maven-version: 3.6.1 - name: build and check license - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp -DskipTests apache-rat:check initialize license:check install - name: license check - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: src/check-binary-license ./distribution/server/target/apache-pulsar-*-bin.tar.gz diff --git a/.github/workflows/ci-maven-cache-update.yaml b/.github/workflows/ci-maven-cache-update.yaml index 99193148fe547..edcd4d660ac6f 100644 --- a/.github/workflows/ci-maven-cache-update.yaml +++ b/.github/workflows/ci-maven-cache-update.yaml @@ -75,7 +75,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files if: ${{ github.event_name != 'schedule' }} id: changes uses: apache/pulsar-test-infra/paths-filter@master diff --git a/.github/workflows/ci-shade-test.yaml b/.github/workflows/ci-shade-test.yaml index 315d8e33516d5..0d42c3039132e 100644 --- a/.github/workflows/ci-shade-test.yaml +++ b/.github/workflows/ci-shade-test.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -72,16 +76,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: clean disk - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc @@ -90,21 +94,21 @@ jobs: df -h - name: run install by skip tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -q -B -ntp clean install -DskipTests - name: build pulsar image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build pulsar-all image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f docker/pulsar-all/pom.xml install -am -Pdocker,-main -DskipTests -Ddocker.nocache=true - name: build artifacts and docker pulsar latest test image - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker,-main -DskipTests - name: run shade tests - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_integration_group.sh SHADE diff --git a/.github/workflows/ci-unit-broker-broker-gp1.yaml b/.github/workflows/ci-unit-broker-broker-gp1.yaml index d8d697e032104..1ff99faee1d77 100644 --- a/.github/workflows/ci-unit-broker-broker-gp1.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp1.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,20 +75,20 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build modules - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -ntp -q clean install -Pcore-modules,-main -DskipTests - name: run unit test 'BROKER_GROUP_1' - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_unit_group.sh BROKER_GROUP_1 - name: print JVM thread dumps when cancelled diff --git a/.github/workflows/ci-unit-broker-broker-gp2.yaml b/.github/workflows/ci-unit-broker-broker-gp2.yaml index 5c27a82921bc9..6b3800b53a2e3 100644 --- a/.github/workflows/ci-unit-broker-broker-gp2.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp2.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,20 +75,20 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build modules - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -ntp -q clean install -Pcore-modules,-main -DskipTests - name: run unit test 'BROKER_GROUP_2' - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_unit_group.sh BROKER_GROUP_2 - name: print JVM thread dumps when cancelled diff --git a/.github/workflows/ci-unit-broker-client-api.yaml b/.github/workflows/ci-unit-broker-client-api.yaml index 3acf4ebb0a07f..d14d6fc21eb5f 100644 --- a/.github/workflows/ci-unit-broker-client-api.yaml +++ b/.github/workflows/ci-unit-broker-client-api.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,20 +75,20 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build modules - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -ntp -q install -Pcore-modules,-main -DskipTests - name: run unit test 'BROKER_CLIENT_API' - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_unit_group.sh BROKER_CLIENT_API - name: print JVM thread dumps when cancelled diff --git a/.github/workflows/ci-unit-broker-client-impl.yaml b/.github/workflows/ci-unit-broker-client-impl.yaml index 606f15e1634fb..81042993ba459 100644 --- a/.github/workflows/ci-unit-broker-client-impl.yaml +++ b/.github/workflows/ci-unit-broker-client-impl.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,20 +75,20 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build modules - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -ntp -q install -Pcore-modules,-main -DskipTests - name: run unit test 'BROKER_CLIENT_IMPL' - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_unit_group.sh BROKER_CLIENT_IMPL - name: print JVM thread dumps when cancelled diff --git a/.github/workflows/ci-unit-broker-other.yaml b/.github/workflows/ci-unit-broker-other.yaml index b4b973a017971..1baae9095528c 100644 --- a/.github/workflows/ci-unit-broker-other.yaml +++ b/.github/workflows/ci-unit-broker-other.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,20 +75,20 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build modules - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -ntp -q clean install -Pcore-modules,-main -DskipTests - name: run unit test 'BROKER_FLAKY' - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_unit_group.sh BROKER_FLAKY - name: print JVM thread dumps when cancelled diff --git a/.github/workflows/ci-unit-proxy.yaml b/.github/workflows/ci-unit-proxy.yaml index 2ad88cad1dc33..6e9d4fcd228da 100644 --- a/.github/workflows/ci-unit-proxy.yaml +++ b/.github/workflows/ci-unit-proxy.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,20 +75,20 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: build modules pulsar-proxy - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: mvn -B -ntp -q install -Pcore-modules,-main -DskipTests - name: run unit test 'PROXY' - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_unit_group.sh PROXY - name: print JVM thread dumps when cancelled diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml index b37018e171baf..e3173cf5bdc42 100644 --- a/.github/workflows/ci-unit.yaml +++ b/.github/workflows/ci-unit.yaml @@ -43,7 +43,7 @@ jobs: - name: Tune Runner VM uses: ./.github/actions/tune-runner-vm - - name: Changed files check + - name: Detect changed files id: changes uses: apache/pulsar-test-infra/paths-filter@master with: @@ -58,8 +58,12 @@ jobs: - '*.md' - '**/*.md' + - 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: Cache local Maven repository - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} uses: actions/cache@v2 with: path: | @@ -71,16 +75,16 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} with: java-version: 1.8 - name: Replace maven's wagon-http version - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: sudo ./build/replace_maven-wagon-http-version.sh - name: run unit test 'OTHER' - if: ${{ steps.changes.outputs.all_count }} > ${{ steps.changes.outputs.docs_count }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: ./build/run_unit_group.sh OTHER - name: print JVM thread dumps when cancelled From e28ceb53b6476a4ea5e52fa288118392deac9a28 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Wed, 28 Apr 2021 09:36:48 +0300 Subject: [PATCH 2/2] Move filters to .github/changes-filter.yaml file --- .github/changes-filter.yaml | 10 +++++++++ .github/workflows/ci-build-macos.yaml | 11 +--------- .github/workflows/ci-cpp-build-centos7.yaml | 18 ++++++++++------ .github/workflows/ci-cpp-build-windows.yaml | 21 ++++++++++++++++++- .github/workflows/ci-cpp.yaml | 11 +--------- .github/workflows/ci-go-functions-style.yaml | 11 +--------- .github/workflows/ci-go-functions-test.yaml | 11 +--------- ...i-integration-backwards-compatibility.yaml | 11 +--------- .github/workflows/ci-integration-cli.yaml | 11 +--------- .../workflows/ci-integration-function.yaml | 11 +--------- .../workflows/ci-integration-messaging.yaml | 11 +--------- .github/workflows/ci-integration-process.yaml | 11 +--------- .github/workflows/ci-integration-schema.yaml | 11 +--------- .github/workflows/ci-integration-sql.yaml | 11 +--------- .../workflows/ci-integration-standalone.yaml | 11 +--------- .github/workflows/ci-integration-thread.yaml | 11 +--------- .../ci-integration-tiered-filesystem.yaml | 11 +--------- .../ci-integration-tiered-jcloud.yaml | 11 +--------- .../workflows/ci-integration-transaction.yaml | 11 +--------- .github/workflows/ci-license.yaml | 11 +--------- .github/workflows/ci-shade-test.yaml | 11 +--------- .../workflows/ci-unit-broker-broker-gp1.yaml | 11 +--------- .../workflows/ci-unit-broker-broker-gp2.yaml | 11 +--------- .../workflows/ci-unit-broker-client-api.yaml | 11 +--------- .../workflows/ci-unit-broker-client-impl.yaml | 11 +--------- .github/workflows/ci-unit-broker-other.yaml | 11 +--------- .github/workflows/ci-unit-proxy.yaml | 11 +--------- .github/workflows/ci-unit.yaml | 11 +--------- 28 files changed, 67 insertions(+), 257 deletions(-) create mode 100644 .github/changes-filter.yaml diff --git a/.github/changes-filter.yaml b/.github/changes-filter.yaml new file mode 100644 index 0000000000000..6b8f7435b9143 --- /dev/null +++ b/.github/changes-filter.yaml @@ -0,0 +1,10 @@ +# contains pattern definitions used in workflows "changes" step +# pattern syntax: https://github.com/micromatch/picomatch +all: + - '**' +docs: + - 'site2/**' + - 'deployment/**' + - '.asf.yaml' + - '*.md' + - '**/*.md' diff --git a/.github/workflows/ci-build-macos.yaml b/.github/workflows/ci-build-macos.yaml index 9018139675be2..e33ade12be65a 100644 --- a/.github/workflows/ci-build-macos.yaml +++ b/.github/workflows/ci-build-macos.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-cpp-build-centos7.yaml b/.github/workflows/ci-cpp-build-centos7.yaml index 547c69a8b4992..55151ba1cdd5c 100644 --- a/.github/workflows/ci-cpp-build-centos7.yaml +++ b/.github/workflows/ci-cpp-build-centos7.yaml @@ -22,10 +22,15 @@ on: pull_request: branches: - master + paths: + - '.github/workflows/**' + - 'pulsar-client-cpp/**' push: branches: - branch-* - + paths: + - '.github/workflows/**' + - 'pulsar-client-cpp/**' jobs: cpp-build-centos7: @@ -44,13 +49,14 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - cpp: - - 'pulsar-client-cpp/**' + 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: build cpp client on centos 7 - if: ${{ steps.changes.outputs.cpp == 'true' }} + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | echo "Build C++ client library on CentOS 7" pulsar-client-cpp/docker-build-centos7.sh \ No newline at end of file diff --git a/.github/workflows/ci-cpp-build-windows.yaml b/.github/workflows/ci-cpp-build-windows.yaml index 87de9936e7aa9..a0449491e471e 100644 --- a/.github/workflows/ci-cpp-build-windows.yaml +++ b/.github/workflows/ci-cpp-build-windows.yaml @@ -22,9 +22,15 @@ on: pull_request: branches: - master + paths: + - '.github/workflows/**' + - 'pulsar-client-cpp/**' push: branches: - branch-* + paths: + - '.github/workflows/**' + - 'pulsar-client-cpp/**' env: VCPKG_FEATURE_FLAGS: manifests @@ -51,12 +57,24 @@ jobs: - name: checkout uses: actions/checkout@v2 + - 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 vcpkg packages + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} shell: bash run: | cd pulsar-client-cpp && vcpkg install --triplet ${{ matrix.triplet }} - name: Configure + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} shell: bash run: | if [ "$RUNNER_OS" == "Windows" ]; then @@ -71,9 +89,10 @@ jobs: fi - name: Compile + if: ${{ steps.check_changes.outputs.docs_only != 'true' }} shell: bash run: | if [ "$RUNNER_OS" == "Windows" ]; then cd pulsar-client-cpp && \ cmake --build ./build - fi + fi \ No newline at end of file diff --git a/.github/workflows/ci-cpp.yaml b/.github/workflows/ci-cpp.yaml index e97d5e84faf61..f33fb17cf3df3 100644 --- a/.github/workflows/ci-cpp.yaml +++ b/.github/workflows/ci-cpp.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-go-functions-style.yaml b/.github/workflows/ci-go-functions-style.yaml index dabc2110548b2..4c77cf2bf47b8 100644 --- a/.github/workflows/ci-go-functions-style.yaml +++ b/.github/workflows/ci-go-functions-style.yaml @@ -55,16 +55,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-go-functions-test.yaml b/.github/workflows/ci-go-functions-test.yaml index b03fa99bbbc16..37e8b81729efa 100644 --- a/.github/workflows/ci-go-functions-test.yaml +++ b/.github/workflows/ci-go-functions-test.yaml @@ -57,16 +57,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-backwards-compatibility.yaml b/.github/workflows/ci-integration-backwards-compatibility.yaml index 2fb119ec99bbd..54e17777de32c 100644 --- a/.github/workflows/ci-integration-backwards-compatibility.yaml +++ b/.github/workflows/ci-integration-backwards-compatibility.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-cli.yaml b/.github/workflows/ci-integration-cli.yaml index 8c849a7185c93..76f6c760d8f9c 100644 --- a/.github/workflows/ci-integration-cli.yaml +++ b/.github/workflows/ci-integration-cli.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-function.yaml b/.github/workflows/ci-integration-function.yaml index 0998699a21ebf..dcf473e07d86d 100644 --- a/.github/workflows/ci-integration-function.yaml +++ b/.github/workflows/ci-integration-function.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-messaging.yaml b/.github/workflows/ci-integration-messaging.yaml index 9e9886418aa48..43944dede63ed 100644 --- a/.github/workflows/ci-integration-messaging.yaml +++ b/.github/workflows/ci-integration-messaging.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-process.yaml b/.github/workflows/ci-integration-process.yaml index 707c94dd3da49..78abe9d5c4924 100644 --- a/.github/workflows/ci-integration-process.yaml +++ b/.github/workflows/ci-integration-process.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-schema.yaml b/.github/workflows/ci-integration-schema.yaml index 44ba0c2cfc7a1..256a3b69ee548 100644 --- a/.github/workflows/ci-integration-schema.yaml +++ b/.github/workflows/ci-integration-schema.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-sql.yaml b/.github/workflows/ci-integration-sql.yaml index a9e673b15cc85..22082a5cdb45b 100644 --- a/.github/workflows/ci-integration-sql.yaml +++ b/.github/workflows/ci-integration-sql.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-standalone.yaml b/.github/workflows/ci-integration-standalone.yaml index 0c0695baaeca7..937b69210012d 100644 --- a/.github/workflows/ci-integration-standalone.yaml +++ b/.github/workflows/ci-integration-standalone.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-thread.yaml b/.github/workflows/ci-integration-thread.yaml index 645e92ccf332e..8e41fb5dcc9ed 100644 --- a/.github/workflows/ci-integration-thread.yaml +++ b/.github/workflows/ci-integration-thread.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-tiered-filesystem.yaml b/.github/workflows/ci-integration-tiered-filesystem.yaml index e7bcf0d61cc6e..673cd32938b91 100644 --- a/.github/workflows/ci-integration-tiered-filesystem.yaml +++ b/.github/workflows/ci-integration-tiered-filesystem.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-tiered-jcloud.yaml b/.github/workflows/ci-integration-tiered-jcloud.yaml index 10da06bc6117f..7e6de634ad5d7 100644 --- a/.github/workflows/ci-integration-tiered-jcloud.yaml +++ b/.github/workflows/ci-integration-tiered-jcloud.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-integration-transaction.yaml b/.github/workflows/ci-integration-transaction.yaml index 0a66e747d429c..0d12ce27ddd85 100644 --- a/.github/workflows/ci-integration-transaction.yaml +++ b/.github/workflows/ci-integration-transaction.yaml @@ -46,16 +46,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-license.yaml b/.github/workflows/ci-license.yaml index c17c162774c79..e2e66f1f5c777 100644 --- a/.github/workflows/ci-license.yaml +++ b/.github/workflows/ci-license.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-shade-test.yaml b/.github/workflows/ci-shade-test.yaml index 0d42c3039132e..0fd7d5ff0b261 100644 --- a/.github/workflows/ci-shade-test.yaml +++ b/.github/workflows/ci-shade-test.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-unit-broker-broker-gp1.yaml b/.github/workflows/ci-unit-broker-broker-gp1.yaml index 1ff99faee1d77..384b299147aba 100644 --- a/.github/workflows/ci-unit-broker-broker-gp1.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp1.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-unit-broker-broker-gp2.yaml b/.github/workflows/ci-unit-broker-broker-gp2.yaml index 6b3800b53a2e3..65a33f3ab0ecb 100644 --- a/.github/workflows/ci-unit-broker-broker-gp2.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp2.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-unit-broker-client-api.yaml b/.github/workflows/ci-unit-broker-client-api.yaml index d14d6fc21eb5f..03919812227a2 100644 --- a/.github/workflows/ci-unit-broker-client-api.yaml +++ b/.github/workflows/ci-unit-broker-client-api.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-unit-broker-client-impl.yaml b/.github/workflows/ci-unit-broker-client-impl.yaml index 81042993ba459..8a1e0eb1b6632 100644 --- a/.github/workflows/ci-unit-broker-client-impl.yaml +++ b/.github/workflows/ci-unit-broker-client-impl.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-unit-broker-other.yaml b/.github/workflows/ci-unit-broker-other.yaml index 1baae9095528c..d584f82068c79 100644 --- a/.github/workflows/ci-unit-broker-other.yaml +++ b/.github/workflows/ci-unit-broker-other.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-unit-proxy.yaml b/.github/workflows/ci-unit-proxy.yaml index 6e9d4fcd228da..d7e5287e0388a 100644 --- a/.github/workflows/ci-unit-proxy.yaml +++ b/.github/workflows/ci-unit-proxy.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml index e3173cf5bdc42..50eda30202769 100644 --- a/.github/workflows/ci-unit.yaml +++ b/.github/workflows/ci-unit.yaml @@ -47,16 +47,7 @@ jobs: id: changes uses: apache/pulsar-test-infra/paths-filter@master with: - filters: | - # pattern syntax: https://github.com/micromatch/picomatch - all: - - '**' - docs: - - 'site2/**' - - 'deployment/**' - - '.asf.yaml' - - '*.md' - - '**/*.md' + filters: .github/changes-filter.yaml - name: Check changed files id: check_changes