You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by pe...@apache.org on 2020/09/02 13:08:51 UTC

[pulsar] branch master updated: Ignore unit-tests ci when the pull requeat only change doc (#7955)

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

penghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 5cee214  Ignore unit-tests ci when the pull requeat only change doc (#7955)
5cee214 is described below

commit 5cee214aec5059c3fe950c216baa824df1be4672
Author: 冉小龙 <rx...@apache.org>
AuthorDate: Wed Sep 2 21:08:33 2020 +0800

    Ignore unit-tests ci when the pull requeat only change doc (#7955)
    
    Signed-off-by: xiaolong.ran <rx...@apache.org>
---
 .github/workflows/ci-unit.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml
index 6f18c98..8eb023b 100644
--- a/.github/workflows/ci-unit.yaml
+++ b/.github/workflows/ci-unit.yaml
@@ -42,22 +42,34 @@ jobs:
           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
+        with:
+          args: site2 deployment .asf.yaml .ci ct.yaml
+
       - name: build and run unit tests exclude pulsar-broker and pulsar-proxy
+        if: steps.docs.outputs.changed_only == 'no'
         run: ./build/retry.sh mvn -B -ntp install -PbrokerSkipTest -Dexclude="org/apache/pulsar/proxy/**/*.java,**/KafkaProducerSimpleConsumerTest.java,**/ManagedLedgerTest.java,**/TestPulsarKeyValueSchemaHandler.java,**/PrimitiveSchemaTest.java,**/BlobStoreManagedLedgerOffloaderTest.java"
 
       - name: run flaky test "**/ManagedLedgerTest.java"
+        if: steps.docs.outputs.changed_only == 'no'
         run: ./build/retry.sh mvn -B -ntp test -pl managed-ledger -Dinclude="**/ManagedLedgerTest.java" -DtestForkCount=1 -DtestReuseFork=true
 
       - name: run flaky test "**/KafkaProducerSimpleConsumerTest.java"
+        if: steps.docs.outputs.changed_only == 'no'
         run: ./build/retry.sh mvn -B -ntp test -pl pulsar-client-kafka-compat/pulsar-client-kafka_0_8 -Dinclude="**/KafkaProducerSimpleConsumerTest.java" -DtestForkCount=1 -DtestReuseFork=true
 
       - name: run flaky test "**/TestPulsarKeyValueSchemaHandler.java"
+        if: steps.docs.outputs.changed_only == 'no'
         run: ./build/retry.sh mvn -B -ntp test -pl pulsar-sql/presto-pulsar-plugin -Dinclude="**/TestPulsarKeyValueSchemaHandler.java" -DtestForkCount=1 -DtestReuseFork=true
 
       - name: run flaky test "**/PrimitiveSchemaTest.java"
+        if: steps.docs.outputs.changed_only == 'no'
         run: ./build/retry.sh mvn -B -ntp test -pl pulsar-client -Dinclude="**/PrimitiveSchemaTest.java" -DtestForkCount=1 -DtestReuseFork=true
 
       - name: run flaky test "**/BlobStoreManagedLedgerOffloaderTest.java"
+        if: steps.docs.outputs.changed_only == 'no'
         run: ./build/retry.sh mvn -B -ntp test -pl tiered-storage/jcloud -Dinclude="**/BlobStoreManagedLedgerOffloaderTest.java" -DtestForkCount=1 -DtestReuseFork=true
 
       - name: package surefire artifacts