From 5177bfd3eba33534af6eb697909be9196b9ab247 Mon Sep 17 00:00:00 2001 From: Yijie Shen Date: Fri, 21 Feb 2020 11:53:06 +0800 Subject: [PATCH 1/3] use checkout@v2 to avoid fatal: reference is not a tree (#6386) "fatal: reference is not a tree" is a known issue in actions/checkout#23 and fixed in checkout@v2, update checkout used in GitHub actions. --- .github/workflows/ci-cpp.yaml | 2 +- .github/workflows/ci-go-functions-style.yaml | 2 +- .github/workflows/ci-go-functions-test.yaml | 2 +- .github/workflows/ci-integration-backwards-compatibility.yaml | 2 +- .github/workflows/ci-integration-cli.yaml | 2 +- .github/workflows/ci-integration-function-state.yaml | 2 +- .github/workflows/ci-integration-messaging.yaml | 2 +- .github/workflows/ci-integration-process.yaml | 2 +- .github/workflows/ci-integration-schema.yaml | 2 +- .github/workflows/ci-integration-sql.yaml | 2 +- .github/workflows/ci-integration-standalone.yaml | 2 +- .github/workflows/ci-integration-thread.yaml | 2 +- .github/workflows/ci-integration-tiered-filesystem.yaml | 2 +- .github/workflows/ci-integration-tiered-jcloud.yaml | 2 +- .github/workflows/ci-license.yaml | 2 +- .github/workflows/ci-pulsarbot.yaml | 2 +- .github/workflows/ci-unit-adaptors.yml | 2 +- .github/workflows/ci-unit-broker-sasl.yml | 2 +- .github/workflows/ci-unit-broker.yml | 2 +- .github/workflows/ci-unit-flaky.yaml | 2 +- .github/workflows/ci-unit-proxy.yaml | 2 +- .github/workflows/ci-unit.yaml | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci-cpp.yaml b/.github/workflows/ci-cpp.yaml index d339b7106e947d..b8fc26307ee770 100644 --- a/.github/workflows/ci-cpp.yaml +++ b/.github/workflows/ci-cpp.yaml @@ -33,7 +33,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-go-functions-style.yaml b/.github/workflows/ci-go-functions-style.yaml index 7acb091fc0aa17..bf81d1275dd8bf 100644 --- a/.github/workflows/ci-go-functions-style.yaml +++ b/.github/workflows/ci-go-functions-style.yaml @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-go-functions-test.yaml b/.github/workflows/ci-go-functions-test.yaml index 5609ad706aee54..4fa93926640a84 100644 --- a/.github/workflows/ci-go-functions-test.yaml +++ b/.github/workflows/ci-go-functions-test.yaml @@ -35,7 +35,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-backwards-compatibility.yaml b/.github/workflows/ci-integration-backwards-compatibility.yaml index aa827897ea07bb..04708d876e8c05 100644 --- a/.github/workflows/ci-integration-backwards-compatibility.yaml +++ b/.github/workflows/ci-integration-backwards-compatibility.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-cli.yaml b/.github/workflows/ci-integration-cli.yaml index f12f8f341f0921..663fd1825db619 100644 --- a/.github/workflows/ci-integration-cli.yaml +++ b/.github/workflows/ci-integration-cli.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-function-state.yaml b/.github/workflows/ci-integration-function-state.yaml index 548beecf9fbace..93f2e1340db675 100644 --- a/.github/workflows/ci-integration-function-state.yaml +++ b/.github/workflows/ci-integration-function-state.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-messaging.yaml b/.github/workflows/ci-integration-messaging.yaml index 795ce5b8143fda..21faff3c9a9990 100644 --- a/.github/workflows/ci-integration-messaging.yaml +++ b/.github/workflows/ci-integration-messaging.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-process.yaml b/.github/workflows/ci-integration-process.yaml index 09ce922b75c247..389da0d9cdf6fa 100644 --- a/.github/workflows/ci-integration-process.yaml +++ b/.github/workflows/ci-integration-process.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-schema.yaml b/.github/workflows/ci-integration-schema.yaml index 0b73ddbea4686c..b80ca18c3b3840 100644 --- a/.github/workflows/ci-integration-schema.yaml +++ b/.github/workflows/ci-integration-schema.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-sql.yaml b/.github/workflows/ci-integration-sql.yaml index c495eb720cea48..44d5d24f114279 100644 --- a/.github/workflows/ci-integration-sql.yaml +++ b/.github/workflows/ci-integration-sql.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-standalone.yaml b/.github/workflows/ci-integration-standalone.yaml index 0347f1e53e0495..184e002cce709f 100644 --- a/.github/workflows/ci-integration-standalone.yaml +++ b/.github/workflows/ci-integration-standalone.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-thread.yaml b/.github/workflows/ci-integration-thread.yaml index f650c553b54ca7..8df3ed42f6554e 100644 --- a/.github/workflows/ci-integration-thread.yaml +++ b/.github/workflows/ci-integration-thread.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-tiered-filesystem.yaml b/.github/workflows/ci-integration-tiered-filesystem.yaml index 01b86c4a7d1688..3803fb901f783f 100644 --- a/.github/workflows/ci-integration-tiered-filesystem.yaml +++ b/.github/workflows/ci-integration-tiered-filesystem.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-integration-tiered-jcloud.yaml b/.github/workflows/ci-integration-tiered-jcloud.yaml index f06f1eec4f26cb..78b6e052829a52 100644 --- a/.github/workflows/ci-integration-tiered-jcloud.yaml +++ b/.github/workflows/ci-integration-tiered-jcloud.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-license.yaml b/.github/workflows/ci-license.yaml index 54672a2bcba10b..ade35353ad5028 100644 --- a/.github/workflows/ci-license.yaml +++ b/.github/workflows/ci-license.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 diff --git a/.github/workflows/ci-pulsarbot.yaml b/.github/workflows/ci-pulsarbot.yaml index c00aaa5ee2492c..a2263444eecb9f 100644 --- a/.github/workflows/ci-pulsarbot.yaml +++ b/.github/workflows/ci-pulsarbot.yaml @@ -31,7 +31,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Execute pulsarbot command id: pulsarbot env: diff --git a/.github/workflows/ci-unit-adaptors.yml b/.github/workflows/ci-unit-adaptors.yml index 83ebcd218bd8e9..2d9015f75b53cd 100644 --- a/.github/workflows/ci-unit-adaptors.yml +++ b/.github/workflows/ci-unit-adaptors.yml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-unit-broker-sasl.yml b/.github/workflows/ci-unit-broker-sasl.yml index 57aceb9c8bf372..26c1009f99fd3c 100644 --- a/.github/workflows/ci-unit-broker-sasl.yml +++ b/.github/workflows/ci-unit-broker-sasl.yml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-unit-broker.yml b/.github/workflows/ci-unit-broker.yml index 4538af439650f6..40afadb4a6e9a2 100644 --- a/.github/workflows/ci-unit-broker.yml +++ b/.github/workflows/ci-unit-broker.yml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-unit-flaky.yaml b/.github/workflows/ci-unit-flaky.yaml index 8d3f0fb5e88950..942750d5dfe64c 100644 --- a/.github/workflows/ci-unit-flaky.yaml +++ b/.github/workflows/ci-unit-flaky.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-unit-proxy.yaml b/.github/workflows/ci-unit-proxy.yaml index 83e3f3d1112e60..56803d75d6bfb3 100644 --- a/.github/workflows/ci-unit-proxy.yaml +++ b/.github/workflows/ci-unit-proxy.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml index b429d1639bcb0b..d1be3663d21e09 100644 --- a/.github/workflows/ci-unit.yaml +++ b/.github/workflows/ci-unit.yaml @@ -32,7 +32,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Check if this pull request only changes documentation id: docs From 3197dcdb223d4ea8a2bc42bede63cb910eaceadf Mon Sep 17 00:00:00 2001 From: Yijie Shen Date: Fri, 21 Feb 2020 14:20:14 +0800 Subject: [PATCH 2/3] [Pulsar-Client] Stop shade snappy-java in pulsar-client-shaded (#6375) Fixes #6260 Snappy, like other compressions (LZ4, ZSTD), depends on native libraries to do the real encode/decode stuff. When we shade them in a fat jar, only the java implementations of snappy class are shaded, however, left the JNI incompatible with the underlying c++ code. We should just remove the shade for snappy, and let maven import its lib as a dependency. I've tested the shaded jar locally generated by this pr, it works for all compression codecs. --- pulsar-broker-shaded/pom.xml | 5 ---- pulsar-client-all/pom.xml | 5 ---- .../pulsar-client-kafka-shaded/pom.xml | 19 +++++--------- .../pulsar-client-kafka-shaded_0_8/pom.xml | 23 ++++++----------- .../pulsar-client-kafka-shaded_0_9/pom.xml | 25 +++++++------------ pulsar-client-shaded/pom.xml | 5 ---- 6 files changed, 23 insertions(+), 59 deletions(-) diff --git a/pulsar-broker-shaded/pom.xml b/pulsar-broker-shaded/pom.xml index 6cb8139187aff9..4fcc51ae9e4c70 100644 --- a/pulsar-broker-shaded/pom.xml +++ b/pulsar-broker-shaded/pom.xml @@ -105,7 +105,6 @@ org.codehaus.jackson:jackson-core-asl org.codehaus.jackson:jackson-mapper-asl com.thoughtworks.paranamer:paranamer - org.xerial.snappy:snappy-java org.apache.commons:commons-compress org.tukaani:xz @@ -311,10 +310,6 @@ com.thoughtworks.paranamer org.apache.pulsar.shade.com.thoughtworks.paranamer - - org.xerial.snappy - org.apache.pulsar.shade.org.xerial.snappy - org.tukaani org.apache.pulsar.shade.org.tukaani diff --git a/pulsar-client-all/pom.xml b/pulsar-client-all/pom.xml index 4d6165af972fe9..c220fc0b60f611 100644 --- a/pulsar-client-all/pom.xml +++ b/pulsar-client-all/pom.xml @@ -147,7 +147,6 @@ org.codehaus.jackson:jackson-core-asl org.codehaus.jackson:jackson-mapper-asl com.thoughtworks.paranamer:paranamer - org.xerial.snappy:snappy-java org.apache.commons:commons-compress org.tukaani:xz org.apache.bookkeeper:bookkeeper-common-allocator @@ -312,10 +311,6 @@ com.thoughtworks.paranamer org.apache.pulsar.shade.com.thoughtworks.paranamer - - org.xerial.snappy - org.apache.pulsar.shade.org.xerial.snappy - org.apache.commons org.apache.pulsar.shade.org.apache.commons diff --git a/pulsar-client-kafka-compat/pulsar-client-kafka-shaded/pom.xml b/pulsar-client-kafka-compat/pulsar-client-kafka-shaded/pom.xml index 383203e52ebe38..cbba893521fecc 100644 --- a/pulsar-client-kafka-compat/pulsar-client-kafka-shaded/pom.xml +++ b/pulsar-client-kafka-compat/pulsar-client-kafka-shaded/pom.xml @@ -103,7 +103,6 @@ org.codehaus.jackson:jackson-core-asl org.codehaus.jackson:jackson-mapper-asl com.thoughtworks.paranamer:paranamer - org.xerial.snappy:snappy-java org.apache.commons:commons-compress org.tukaani:xz @@ -115,6 +114,12 @@ ** + + org.apache.pulsar:pulsar-client-original + + ** + + @@ -217,10 +222,6 @@ com.thoughtworks.paranamer org.apache.pulsar.shade.com.thoughtworks.paranamer - - org.xerial.snappy - org.apache.pulsar.shade.org.xerial.snappy - org.apache.commons org.apache.pulsar.shade.org.apache.commons @@ -234,14 +235,6 @@ org.apache.pulsar.shade.org.apache.bookkeeper - - - org.apache.pulsar:pulsar-client-original - - ** - - - diff --git a/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_8/pom.xml b/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_8/pom.xml index 29b8e46c97c081..ffaed560ce884f 100644 --- a/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_8/pom.xml +++ b/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_8/pom.xml @@ -103,18 +103,23 @@ org.codehaus.jackson:jackson-core-asl org.codehaus.jackson:jackson-mapper-asl com.thoughtworks.paranamer:paranamer - org.xerial.snappy:snappy-java org.apache.commons:commons-compress org.tukaani:xz - + commons-logging:commons-logging ** - + + + org.apache.pulsar:pulsar-client-original + + ** + + @@ -375,10 +380,6 @@ com.thoughtworks.paranamer org.apache.pulsar.shade.com.thoughtworks.paranamer - - org.xerial.snappy - org.apache.pulsar.shade.org.xerial.snappy - org.apache.commons org.apache.pulsar.shade.org.apache.commons @@ -392,14 +393,6 @@ org.apache.pulsar.shade.org.apache.bookkeeper - - - org.apache.pulsar:pulsar-client-original - - ** - - - diff --git a/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_9/pom.xml b/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_9/pom.xml index 00bdb184af9db9..954af492f782e0 100644 --- a/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_9/pom.xml +++ b/pulsar-client-kafka-compat/pulsar-client-kafka-shaded_0_9/pom.xml @@ -99,18 +99,23 @@ org.codehaus.jackson:jackson-core-asl org.codehaus.jackson:jackson-mapper-asl com.thoughtworks.paranamer:paranamer - org.xerial.snappy:snappy-java org.apache.commons:commons-compress org.tukaani:xz - + commons-logging:commons-logging - ** + ** - + + + org.apache.pulsar:pulsar-client-original + + ** + + @@ -213,10 +218,6 @@ com.thoughtworks.paranamer org.apache.pulsar.shade.com.thoughtworks.paranamer - - org.xerial.snappy - org.apache.pulsar.shade.org.xerial.snappy - org.apache.commons org.apache.pulsar.shade.org.apache.commons @@ -230,14 +231,6 @@ org.apache.pulsar.shade.org.apache.bookkeeper - - - org.apache.pulsar:pulsar-client-original - - ** - - - diff --git a/pulsar-client-shaded/pom.xml b/pulsar-client-shaded/pom.xml index ae45b365950f21..3ef9bf3bb800d7 100644 --- a/pulsar-client-shaded/pom.xml +++ b/pulsar-client-shaded/pom.xml @@ -137,7 +137,6 @@ org.codehaus.jackson:jackson-core-asl org.codehaus.jackson:jackson-mapper-asl com.thoughtworks.paranamer:paranamer - org.xerial.snappy:snappy-java org.apache.commons:commons-compress org.tukaani:xz @@ -250,10 +249,6 @@ com.thoughtworks.paranamer org.apache.pulsar.shade.com.thoughtworks.paranamer - - org.xerial.snappy - org.apache.pulsar.shade.org.xerial.snappy - org.apache.commons org.apache.pulsar.shade.org.apache.commons From bb5d6fdb0417ec33c0b62c9fafd3622647dbe6bd Mon Sep 17 00:00:00 2001 From: Yijie Shen Date: Sat, 22 Feb 2020 13:21:30 +0800 Subject: [PATCH 3/3] Fix CI not triggered (#6397) In #6386 , checkout@v2 is brought in for checkout. However, it's checking out PR merge commit by default, therefore breaks diff-only action which looking for commits that a PR is based on. And make all tests skipped. This PR fixes this issue. and has been proven to work with https://github.com/apache/pulsar/pull/6396 Brokers/unit-tests. --- .github/workflows/ci-cpp.yaml | 3 +++ .github/workflows/ci-go-functions-style.yaml | 3 +++ .github/workflows/ci-go-functions-test.yaml | 3 +++ .github/workflows/ci-integration-backwards-compatibility.yaml | 3 +++ .github/workflows/ci-integration-cli.yaml | 3 +++ .github/workflows/ci-integration-function-state.yaml | 3 +++ .github/workflows/ci-integration-messaging.yaml | 3 +++ .github/workflows/ci-integration-process.yaml | 3 +++ .github/workflows/ci-integration-schema.yaml | 3 +++ .github/workflows/ci-integration-sql.yaml | 3 +++ .github/workflows/ci-integration-standalone.yaml | 3 +++ .github/workflows/ci-integration-thread.yaml | 3 +++ .github/workflows/ci-integration-tiered-filesystem.yaml | 3 +++ .github/workflows/ci-integration-tiered-jcloud.yaml | 3 +++ .github/workflows/ci-license.yaml | 3 +++ .github/workflows/ci-pulsarbot.yaml | 3 +++ .github/workflows/ci-unit-adaptors.yml | 3 +++ .github/workflows/ci-unit-broker-sasl.yml | 3 +++ .github/workflows/ci-unit-broker.yml | 3 +++ .github/workflows/ci-unit-flaky.yaml | 3 +++ .github/workflows/ci-unit-proxy.yaml | 3 +++ .github/workflows/ci-unit.yaml | 3 +++ 22 files changed, 66 insertions(+) diff --git a/.github/workflows/ci-cpp.yaml b/.github/workflows/ci-cpp.yaml index b8fc26307ee770..06fd1471840b55 100644 --- a/.github/workflows/ci-cpp.yaml +++ b/.github/workflows/ci-cpp.yaml @@ -34,6 +34,9 @@ jobs: - 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 diff --git a/.github/workflows/ci-go-functions-style.yaml b/.github/workflows/ci-go-functions-style.yaml index bf81d1275dd8bf..549875df72976d 100644 --- a/.github/workflows/ci-go-functions-style.yaml +++ b/.github/workflows/ci-go-functions-style.yaml @@ -33,6 +33,9 @@ jobs: steps: - name: Check out code into the Go module directory 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 diff --git a/.github/workflows/ci-go-functions-test.yaml b/.github/workflows/ci-go-functions-test.yaml index 4fa93926640a84..a87a81d158debf 100644 --- a/.github/workflows/ci-go-functions-test.yaml +++ b/.github/workflows/ci-go-functions-test.yaml @@ -36,6 +36,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-backwards-compatibility.yaml b/.github/workflows/ci-integration-backwards-compatibility.yaml index 04708d876e8c05..3cdd7c01de0cce 100644 --- a/.github/workflows/ci-integration-backwards-compatibility.yaml +++ b/.github/workflows/ci-integration-backwards-compatibility.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-cli.yaml b/.github/workflows/ci-integration-cli.yaml index 663fd1825db619..7ec6eed59cb8cd 100644 --- a/.github/workflows/ci-integration-cli.yaml +++ b/.github/workflows/ci-integration-cli.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-function-state.yaml b/.github/workflows/ci-integration-function-state.yaml index 93f2e1340db675..9af9996ca54c2a 100644 --- a/.github/workflows/ci-integration-function-state.yaml +++ b/.github/workflows/ci-integration-function-state.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-messaging.yaml b/.github/workflows/ci-integration-messaging.yaml index 21faff3c9a9990..6d71d43ced6fd2 100644 --- a/.github/workflows/ci-integration-messaging.yaml +++ b/.github/workflows/ci-integration-messaging.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-process.yaml b/.github/workflows/ci-integration-process.yaml index 389da0d9cdf6fa..08ef689a4f002f 100644 --- a/.github/workflows/ci-integration-process.yaml +++ b/.github/workflows/ci-integration-process.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-schema.yaml b/.github/workflows/ci-integration-schema.yaml index b80ca18c3b3840..4b9be720d49a21 100644 --- a/.github/workflows/ci-integration-schema.yaml +++ b/.github/workflows/ci-integration-schema.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-sql.yaml b/.github/workflows/ci-integration-sql.yaml index 44d5d24f114279..a613fd4f0dc951 100644 --- a/.github/workflows/ci-integration-sql.yaml +++ b/.github/workflows/ci-integration-sql.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-standalone.yaml b/.github/workflows/ci-integration-standalone.yaml index 184e002cce709f..b743fae58406dc 100644 --- a/.github/workflows/ci-integration-standalone.yaml +++ b/.github/workflows/ci-integration-standalone.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-thread.yaml b/.github/workflows/ci-integration-thread.yaml index 8df3ed42f6554e..b01444f9bc379a 100644 --- a/.github/workflows/ci-integration-thread.yaml +++ b/.github/workflows/ci-integration-thread.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-tiered-filesystem.yaml b/.github/workflows/ci-integration-tiered-filesystem.yaml index 3803fb901f783f..ede7f877e4b7af 100644 --- a/.github/workflows/ci-integration-tiered-filesystem.yaml +++ b/.github/workflows/ci-integration-tiered-filesystem.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-integration-tiered-jcloud.yaml b/.github/workflows/ci-integration-tiered-jcloud.yaml index 78b6e052829a52..d36cc5a07aac12 100644 --- a/.github/workflows/ci-integration-tiered-jcloud.yaml +++ b/.github/workflows/ci-integration-tiered-jcloud.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-license.yaml b/.github/workflows/ci-license.yaml index ade35353ad5028..2cc08d14a2f973 100644 --- a/.github/workflows/ci-license.yaml +++ b/.github/workflows/ci-license.yaml @@ -33,6 +33,9 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Set up JDK 1.8 uses: actions/setup-java@v1 diff --git a/.github/workflows/ci-pulsarbot.yaml b/.github/workflows/ci-pulsarbot.yaml index a2263444eecb9f..d068d5aa444bdd 100644 --- a/.github/workflows/ci-pulsarbot.yaml +++ b/.github/workflows/ci-pulsarbot.yaml @@ -32,6 +32,9 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Execute pulsarbot command id: pulsarbot env: diff --git a/.github/workflows/ci-unit-adaptors.yml b/.github/workflows/ci-unit-adaptors.yml index 2d9015f75b53cd..988983b6a6c38b 100644 --- a/.github/workflows/ci-unit-adaptors.yml +++ b/.github/workflows/ci-unit-adaptors.yml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-unit-broker-sasl.yml b/.github/workflows/ci-unit-broker-sasl.yml index 26c1009f99fd3c..4eecc8af22637c 100644 --- a/.github/workflows/ci-unit-broker-sasl.yml +++ b/.github/workflows/ci-unit-broker-sasl.yml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-unit-broker.yml b/.github/workflows/ci-unit-broker.yml index 40afadb4a6e9a2..4a7203c9466db3 100644 --- a/.github/workflows/ci-unit-broker.yml +++ b/.github/workflows/ci-unit-broker.yml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-unit-flaky.yaml b/.github/workflows/ci-unit-flaky.yaml index 942750d5dfe64c..62f096545237ad 100644 --- a/.github/workflows/ci-unit-flaky.yaml +++ b/.github/workflows/ci-unit-flaky.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-unit-proxy.yaml b/.github/workflows/ci-unit-proxy.yaml index 56803d75d6bfb3..bd2875f5891f96 100644 --- a/.github/workflows/ci-unit-proxy.yaml +++ b/.github/workflows/ci-unit-proxy.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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 diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml index d1be3663d21e09..c793d8fe8790e6 100644 --- a/.github/workflows/ci-unit.yaml +++ b/.github/workflows/ci-unit.yaml @@ -33,6 +33,9 @@ jobs: steps: - 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