From ae367c3567fd2ea10193e9f143d173890d7704fc Mon Sep 17 00:00:00 2001 From: Yong Zhang Date: Thu, 28 Jan 2021 19:44:47 +0800 Subject: [PATCH 1/2] Using the same job to run cancel workflow --- **Motivation** After introducing the new cancel CI workflow, it takes a lot of job place which cause we have more and more CI in the queue. I saw how the apache/airflow uses, the apache/airflow run it as a step, so let's remove it into the separate workflows. It will reduce our CI job usage. Also, I test it in my own repo, it looks like working well. https://github.com/zymap/pulsar/actions?query=branch%3Atest-duplicate-ci' --- .github/workflows/cancel-duplicates.yml | 62 ------------------- .github/workflows/ci-build-macos.yaml | 7 +++ .github/workflows/ci-cpp.yaml | 7 +++ .github/workflows/ci-go-functions-style.yaml | 7 +++ .github/workflows/ci-go-functions-test.yaml | 7 +++ ...i-integration-backwards-compatibility.yaml | 7 +++ .github/workflows/ci-integration-cli.yaml | 7 +++ .../ci-integration-function-state.yaml | 7 +++ .../workflows/ci-integration-messaging.yaml | 7 +++ .github/workflows/ci-integration-process.yaml | 8 ++- .github/workflows/ci-integration-schema.yaml | 8 ++- .github/workflows/ci-integration-sql.yaml | 8 ++- .../workflows/ci-integration-standalone.yaml | 8 ++- .github/workflows/ci-integration-thread.yaml | 8 ++- .../ci-integration-tiered-filesystem.yaml | 8 ++- .../ci-integration-tiered-jcloud.yaml | 8 ++- .../workflows/ci-integration-transaction.yaml | 8 ++- .github/workflows/ci-license.yaml | 7 +++ .../workflows/ci-pulsar-website-build.yaml | 7 +++ .github/workflows/ci-shade-test.yaml | 7 +++ .../workflows/ci-unit-broker-broker-gp1.yaml | 7 +++ .../workflows/ci-unit-broker-broker-gp2.yaml | 7 +++ .../workflows/ci-unit-broker-client-api.yaml | 7 +++ .../workflows/ci-unit-broker-client-impl.yaml | 7 +++ .github/workflows/ci-unit-broker-other.yaml | 7 +++ .github/workflows/ci-unit-proxy.yaml | 7 +++ .github/workflows/ci-unit.yaml | 7 +++ 27 files changed, 182 insertions(+), 70 deletions(-) delete mode 100644 .github/workflows/cancel-duplicates.yml diff --git a/.github/workflows/cancel-duplicates.yml b/.github/workflows/cancel-duplicates.yml deleted file mode 100644 index c737dff89012f..0000000000000 --- a/.github/workflows/cancel-duplicates.yml +++ /dev/null @@ -1,62 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -name: Cancelling Duplicates -on: - workflow_run: - workflows: - - 'CI - Build - MacOS' - - 'CI - CPP, Python Tests' - - 'CI - Go Functions style check' - - 'CI - Go Functions Tests' - - 'CI - Integration - Backwards Compatibility' - - 'CI - Integration - Cli' - - 'CI - Integration - Function State' - - 'CI - Integration - Messaging' - - 'CI - Integration - Process' - - 'CI - Integration - Schema' - - 'CI - Integration - Sql' - - 'CI - Integration - Standalone' - - 'CI - Integration - Thread' - - 'CI - Integration - Tiered FileSystem' - - 'CI - Integration - Tiered JCloud' - - 'CI - Integration - Transaction' - - 'CI - Misc' - - 'CI - Pulsar Website build' - - 'CI - Shade - Test' - - 'CI - Unit - Brokers - Broker Group 1' - - 'CI - Unit - Brokers - Broker Group 2' - - 'CI - Unit - Brokers - Client Api' - - 'CI - Unit - Brokers - Client Impl' - - 'CI - Unit - Brokers - Other' - - 'CI - Unit - Proxy' - - 'CI - Unit' - types: ['requested'] - -jobs: - cancel-duplicate-workflow-runs: - name: "Cancel duplicate workflow runs" - runs-on: ubuntu-latest - steps: - - uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # @master - name: "Cancel duplicate workflow runs" - with: - cancelMode: allDuplicates - token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} diff --git a/.github/workflows/ci-build-macos.yaml b/.github/workflows/ci-build-macos.yaml index a7dd482992060..e39d8ec9f1f44 100644 --- a/.github/workflows/ci-build-macos.yaml +++ b/.github/workflows/ci-build-macos.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-cpp.yaml b/.github/workflows/ci-cpp.yaml index d4991e97207d0..0842548076f64 100644 --- a/.github/workflows/ci-cpp.yaml +++ b/.github/workflows/ci-cpp.yaml @@ -37,6 +37,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-go-functions-style.yaml b/.github/workflows/ci-go-functions-style.yaml index 80d7e517eeba4..4ad4aa5fb8ef7 100644 --- a/.github/workflows/ci-go-functions-style.yaml +++ b/.github/workflows/ci-go-functions-style.yaml @@ -45,6 +45,13 @@ jobs: go-version: [1.11, 1.12, 1.13, 1.14] steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: Check out code into the Go module directory uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-go-functions-test.yaml b/.github/workflows/ci-go-functions-test.yaml index fa7543b4b8404..41908c34c25ba 100644 --- a/.github/workflows/ci-go-functions-test.yaml +++ b/.github/workflows/ci-go-functions-test.yaml @@ -47,6 +47,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: Check out code into the Go module directory uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-backwards-compatibility.yaml b/.github/workflows/ci-integration-backwards-compatibility.yaml index b65c136734ad0..1494f96bb0a94 100644 --- a/.github/workflows/ci-integration-backwards-compatibility.yaml +++ b/.github/workflows/ci-integration-backwards-compatibility.yaml @@ -37,6 +37,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-cli.yaml b/.github/workflows/ci-integration-cli.yaml index a1e0b451ba284..11f60a712b98d 100644 --- a/.github/workflows/ci-integration-cli.yaml +++ b/.github/workflows/ci-integration-cli.yaml @@ -37,6 +37,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-function-state.yaml b/.github/workflows/ci-integration-function-state.yaml index 77df3fd321c14..6d80c8a230429 100644 --- a/.github/workflows/ci-integration-function-state.yaml +++ b/.github/workflows/ci-integration-function-state.yaml @@ -37,6 +37,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-messaging.yaml b/.github/workflows/ci-integration-messaging.yaml index 2c3f299edf07a..e87b58ebe62b5 100644 --- a/.github/workflows/ci-integration-messaging.yaml +++ b/.github/workflows/ci-integration-messaging.yaml @@ -37,6 +37,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-process.yaml b/.github/workflows/ci-integration-process.yaml index 783c963e4be9b..126bb856952ba 100644 --- a/.github/workflows/ci-integration-process.yaml +++ b/.github/workflows/ci-integration-process.yaml @@ -32,11 +32,17 @@ env: jobs: process: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-schema.yaml b/.github/workflows/ci-integration-schema.yaml index 412e972d7937c..0878994b12fc6 100644 --- a/.github/workflows/ci-integration-schema.yaml +++ b/.github/workflows/ci-integration-schema.yaml @@ -32,11 +32,17 @@ env: jobs: schema: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-sql.yaml b/.github/workflows/ci-integration-sql.yaml index a394248ed3fef..0adc380d63d39 100644 --- a/.github/workflows/ci-integration-sql.yaml +++ b/.github/workflows/ci-integration-sql.yaml @@ -32,11 +32,17 @@ env: jobs: sql: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-standalone.yaml b/.github/workflows/ci-integration-standalone.yaml index 5f44a15b86e4a..9ab1255c9ba9a 100644 --- a/.github/workflows/ci-integration-standalone.yaml +++ b/.github/workflows/ci-integration-standalone.yaml @@ -32,11 +32,17 @@ env: jobs: standalone: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-thread.yaml b/.github/workflows/ci-integration-thread.yaml index 4f2ad19a39093..b40260fd39b1d 100644 --- a/.github/workflows/ci-integration-thread.yaml +++ b/.github/workflows/ci-integration-thread.yaml @@ -32,11 +32,17 @@ env: jobs: thread: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-tiered-filesystem.yaml b/.github/workflows/ci-integration-tiered-filesystem.yaml index 4fb4d296ca64b..ea3489408de75 100644 --- a/.github/workflows/ci-integration-tiered-filesystem.yaml +++ b/.github/workflows/ci-integration-tiered-filesystem.yaml @@ -32,11 +32,17 @@ env: jobs: tiered-filesystem: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-tiered-jcloud.yaml b/.github/workflows/ci-integration-tiered-jcloud.yaml index 160aaa55c4d73..5a02eeb2c603b 100644 --- a/.github/workflows/ci-integration-tiered-jcloud.yaml +++ b/.github/workflows/ci-integration-tiered-jcloud.yaml @@ -32,11 +32,17 @@ env: jobs: tiered-jcloud: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-integration-transaction.yaml b/.github/workflows/ci-integration-transaction.yaml index 4fe08c8bac440..7cadbe775a578 100644 --- a/.github/workflows/ci-integration-transaction.yaml +++ b/.github/workflows/ci-integration-transaction.yaml @@ -32,11 +32,17 @@ env: jobs: transaction: - name: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-license.yaml b/.github/workflows/ci-license.yaml index 1e27643b46348..3db0391283ff6 100644 --- a/.github/workflows/ci-license.yaml +++ b/.github/workflows/ci-license.yaml @@ -37,6 +37,13 @@ jobs: timeout-minutes: 60 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-pulsar-website-build.yaml b/.github/workflows/ci-pulsar-website-build.yaml index 388c2c4593ed0..44f9e4cb27e9d 100644 --- a/.github/workflows/ci-pulsar-website-build.yaml +++ b/.github/workflows/ci-pulsar-website-build.yaml @@ -31,6 +31,13 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-shade-test.yaml b/.github/workflows/ci-shade-test.yaml index ddbf63977decf..f13c172bcca2f 100644 --- a/.github/workflows/ci-shade-test.yaml +++ b/.github/workflows/ci-shade-test.yaml @@ -37,6 +37,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-unit-broker-broker-gp1.yaml b/.github/workflows/ci-unit-broker-broker-gp1.yaml index aa960a0d05a4e..e31039d0d9af3 100644 --- a/.github/workflows/ci-unit-broker-broker-gp1.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp1.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-unit-broker-broker-gp2.yaml b/.github/workflows/ci-unit-broker-broker-gp2.yaml index 284924cde39ed..6e409c3d366c7 100644 --- a/.github/workflows/ci-unit-broker-broker-gp2.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp2.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-unit-broker-client-api.yaml b/.github/workflows/ci-unit-broker-client-api.yaml index 9e8512c1ae7ab..6e42c8cdf4cc3 100644 --- a/.github/workflows/ci-unit-broker-client-api.yaml +++ b/.github/workflows/ci-unit-broker-client-api.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-unit-broker-client-impl.yaml b/.github/workflows/ci-unit-broker-client-impl.yaml index 989be8615a694..fbb26d54457fb 100644 --- a/.github/workflows/ci-unit-broker-client-impl.yaml +++ b/.github/workflows/ci-unit-broker-client-impl.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-unit-broker-other.yaml b/.github/workflows/ci-unit-broker-other.yaml index ac3d53d3a8287..cfc432d1e4717 100644 --- a/.github/workflows/ci-unit-broker-other.yaml +++ b/.github/workflows/ci-unit-broker-other.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-unit-proxy.yaml b/.github/workflows/ci-unit-proxy.yaml index 193baeaee4140..41cbd5d8c4e82 100644 --- a/.github/workflows/ci-unit-proxy.yaml +++ b/.github/workflows/ci-unit-proxy.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml index 886bf77488828..be0af243290c9 100644 --- a/.github/workflows/ci-unit.yaml +++ b/.github/workflows/ci-unit.yaml @@ -39,6 +39,13 @@ jobs: timeout-minutes: 120 steps: + - name: cancle previours runs + uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + - name: checkout uses: actions/checkout@v2 with: From f7c6ebff1d06b0290b975b673e5469ff2bbf8c2f Mon Sep 17 00:00:00 2001 From: Yong Zhang Date: Thu, 28 Jan 2021 21:39:17 +0800 Subject: [PATCH 2/2] Address comments --- .github/workflows/ci-build-macos.yaml | 6 ++---- .github/workflows/ci-cpp.yaml | 4 +--- .github/workflows/ci-go-functions-style.yaml | 4 +--- .github/workflows/ci-go-functions-test.yaml | 4 +--- .../workflows/ci-integration-backwards-compatibility.yaml | 4 +--- .github/workflows/ci-integration-cli.yaml | 4 +--- .github/workflows/ci-integration-function-state.yaml | 4 +--- .github/workflows/ci-integration-messaging.yaml | 4 +--- .github/workflows/ci-integration-process.yaml | 4 +--- .github/workflows/ci-integration-schema.yaml | 4 +--- .github/workflows/ci-integration-sql.yaml | 4 +--- .github/workflows/ci-integration-standalone.yaml | 4 +--- .github/workflows/ci-integration-thread.yaml | 4 +--- .github/workflows/ci-integration-tiered-filesystem.yaml | 4 +--- .github/workflows/ci-integration-tiered-jcloud.yaml | 4 +--- .github/workflows/ci-integration-transaction.yaml | 4 +--- .github/workflows/ci-license.yaml | 4 +--- .github/workflows/ci-pulsar-website-build.yaml | 4 +--- .github/workflows/ci-shade-test.yaml | 4 +--- .github/workflows/ci-unit-broker-broker-gp1.yaml | 4 +--- .github/workflows/ci-unit-broker-broker-gp2.yaml | 4 +--- .github/workflows/ci-unit-broker-client-api.yaml | 4 +--- .github/workflows/ci-unit-broker-client-impl.yaml | 4 +--- .github/workflows/ci-unit-broker-other.yaml | 4 +--- .github/workflows/ci-unit-proxy.yaml | 4 +--- .github/workflows/ci-unit.yaml | 4 +--- 26 files changed, 27 insertions(+), 79 deletions(-) diff --git a/.github/workflows/ci-build-macos.yaml b/.github/workflows/ci-build-macos.yaml index e39d8ec9f1f44..8cc5a33855ca9 100644 --- a/.github/workflows/ci-build-macos.yaml +++ b/.github/workflows/ci-build-macos.yaml @@ -39,13 +39,11 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - + - name: checkout uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-cpp.yaml b/.github/workflows/ci-cpp.yaml index 0842548076f64..a9d13b4f42185 100644 --- a/.github/workflows/ci-cpp.yaml +++ b/.github/workflows/ci-cpp.yaml @@ -37,12 +37,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-go-functions-style.yaml b/.github/workflows/ci-go-functions-style.yaml index 4ad4aa5fb8ef7..710c2fdbdf318 100644 --- a/.github/workflows/ci-go-functions-style.yaml +++ b/.github/workflows/ci-go-functions-style.yaml @@ -45,12 +45,10 @@ jobs: go-version: [1.11, 1.12, 1.13, 1.14] steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.github/workflows/ci-go-functions-test.yaml b/.github/workflows/ci-go-functions-test.yaml index 41908c34c25ba..552eabcc19caa 100644 --- a/.github/workflows/ci-go-functions-test.yaml +++ b/.github/workflows/ci-go-functions-test.yaml @@ -47,12 +47,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-backwards-compatibility.yaml b/.github/workflows/ci-integration-backwards-compatibility.yaml index 1494f96bb0a94..440e2a69e55ec 100644 --- a/.github/workflows/ci-integration-backwards-compatibility.yaml +++ b/.github/workflows/ci-integration-backwards-compatibility.yaml @@ -37,12 +37,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-cli.yaml b/.github/workflows/ci-integration-cli.yaml index 11f60a712b98d..b7d22d584183c 100644 --- a/.github/workflows/ci-integration-cli.yaml +++ b/.github/workflows/ci-integration-cli.yaml @@ -37,12 +37,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-function-state.yaml b/.github/workflows/ci-integration-function-state.yaml index 6d80c8a230429..f007e2a8ef153 100644 --- a/.github/workflows/ci-integration-function-state.yaml +++ b/.github/workflows/ci-integration-function-state.yaml @@ -37,12 +37,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-messaging.yaml b/.github/workflows/ci-integration-messaging.yaml index e87b58ebe62b5..bf67b18d0f7e9 100644 --- a/.github/workflows/ci-integration-messaging.yaml +++ b/.github/workflows/ci-integration-messaging.yaml @@ -37,12 +37,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-process.yaml b/.github/workflows/ci-integration-process.yaml index 126bb856952ba..e01b5e59e5edd 100644 --- a/.github/workflows/ci-integration-process.yaml +++ b/.github/workflows/ci-integration-process.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-schema.yaml b/.github/workflows/ci-integration-schema.yaml index 0878994b12fc6..339f9a6ac0e20 100644 --- a/.github/workflows/ci-integration-schema.yaml +++ b/.github/workflows/ci-integration-schema.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-sql.yaml b/.github/workflows/ci-integration-sql.yaml index 0adc380d63d39..b88ea9f7e3078 100644 --- a/.github/workflows/ci-integration-sql.yaml +++ b/.github/workflows/ci-integration-sql.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-standalone.yaml b/.github/workflows/ci-integration-standalone.yaml index 9ab1255c9ba9a..5405461cd89d8 100644 --- a/.github/workflows/ci-integration-standalone.yaml +++ b/.github/workflows/ci-integration-standalone.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-thread.yaml b/.github/workflows/ci-integration-thread.yaml index b40260fd39b1d..326555b6e289b 100644 --- a/.github/workflows/ci-integration-thread.yaml +++ b/.github/workflows/ci-integration-thread.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-tiered-filesystem.yaml b/.github/workflows/ci-integration-tiered-filesystem.yaml index ea3489408de75..9f596ae3a42dd 100644 --- a/.github/workflows/ci-integration-tiered-filesystem.yaml +++ b/.github/workflows/ci-integration-tiered-filesystem.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-tiered-jcloud.yaml b/.github/workflows/ci-integration-tiered-jcloud.yaml index 5a02eeb2c603b..b8695e30a79e3 100644 --- a/.github/workflows/ci-integration-tiered-jcloud.yaml +++ b/.github/workflows/ci-integration-tiered-jcloud.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-integration-transaction.yaml b/.github/workflows/ci-integration-transaction.yaml index 7cadbe775a578..353cc32cddf1c 100644 --- a/.github/workflows/ci-integration-transaction.yaml +++ b/.github/workflows/ci-integration-transaction.yaml @@ -36,12 +36,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-license.yaml b/.github/workflows/ci-license.yaml index 3db0391283ff6..06331ee1eb06b 100644 --- a/.github/workflows/ci-license.yaml +++ b/.github/workflows/ci-license.yaml @@ -37,12 +37,10 @@ jobs: timeout-minutes: 60 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-pulsar-website-build.yaml b/.github/workflows/ci-pulsar-website-build.yaml index 44f9e4cb27e9d..d2b10264b7967 100644 --- a/.github/workflows/ci-pulsar-website-build.yaml +++ b/.github/workflows/ci-pulsar-website-build.yaml @@ -31,12 +31,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-shade-test.yaml b/.github/workflows/ci-shade-test.yaml index f13c172bcca2f..9552d4f2b677e 100644 --- a/.github/workflows/ci-shade-test.yaml +++ b/.github/workflows/ci-shade-test.yaml @@ -37,12 +37,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-unit-broker-broker-gp1.yaml b/.github/workflows/ci-unit-broker-broker-gp1.yaml index e31039d0d9af3..94f456be070b4 100644 --- a/.github/workflows/ci-unit-broker-broker-gp1.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp1.yaml @@ -39,12 +39,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-unit-broker-broker-gp2.yaml b/.github/workflows/ci-unit-broker-broker-gp2.yaml index 6e409c3d366c7..250d64ad30bc2 100644 --- a/.github/workflows/ci-unit-broker-broker-gp2.yaml +++ b/.github/workflows/ci-unit-broker-broker-gp2.yaml @@ -39,12 +39,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-unit-broker-client-api.yaml b/.github/workflows/ci-unit-broker-client-api.yaml index 6e42c8cdf4cc3..7f6e1a9d1ce25 100644 --- a/.github/workflows/ci-unit-broker-client-api.yaml +++ b/.github/workflows/ci-unit-broker-client-api.yaml @@ -39,12 +39,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-unit-broker-client-impl.yaml b/.github/workflows/ci-unit-broker-client-impl.yaml index fbb26d54457fb..4833fc477dc1d 100644 --- a/.github/workflows/ci-unit-broker-client-impl.yaml +++ b/.github/workflows/ci-unit-broker-client-impl.yaml @@ -39,12 +39,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-unit-broker-other.yaml b/.github/workflows/ci-unit-broker-other.yaml index cfc432d1e4717..e0c8e64c5370d 100644 --- a/.github/workflows/ci-unit-broker-other.yaml +++ b/.github/workflows/ci-unit-broker-other.yaml @@ -39,12 +39,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-unit-proxy.yaml b/.github/workflows/ci-unit-proxy.yaml index 41cbd5d8c4e82..359700f97afe5 100644 --- a/.github/workflows/ci-unit-proxy.yaml +++ b/.github/workflows/ci-unit-proxy.yaml @@ -39,12 +39,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2 diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml index be0af243290c9..ee321e3790997 100644 --- a/.github/workflows/ci-unit.yaml +++ b/.github/workflows/ci-unit.yaml @@ -39,12 +39,10 @@ jobs: timeout-minutes: 120 steps: - - name: cancle previours runs + - name: cancel previous runs uses: apache/airflow-cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 with: - cancelMode: allDuplicates token: ${{ secrets.GITHUB_TOKEN }} - sourceRunId: ${{ github.event.workflow_run.id }} - name: checkout uses: actions/checkout@v2