From afae53c7fed8075b6a354df10ab55181cc796476 Mon Sep 17 00:00:00 2001 From: sarthak gupta Date: Fri, 27 Oct 2023 16:00:36 +0530 Subject: [PATCH] ci(workflow): set time limit to workflow run --- .../workflows/helm-integration-test-backend.yml | 16 ++++++++++++++++ .../workflows/helm-integration-test-release.yml | 5 ----- .github/workflows/integration-test-backend.yml | 16 ++++++++++++++++ .github/workflows/integration-test-release.yml | 5 ----- .github/workflows/make-all.yml | 5 ----- 5 files changed, 32 insertions(+), 15 deletions(-) diff --git a/.github/workflows/helm-integration-test-backend.yml b/.github/workflows/helm-integration-test-backend.yml index 4b9ce81a1..523a24d6d 100644 --- a/.github/workflows/helm-integration-test-backend.yml +++ b/.github/workflows/helm-integration-test-backend.yml @@ -14,7 +14,11 @@ jobs: helm-integration-test-latest-linux: if: inputs.target == 'latest' runs-on: ubuntu-latest + timeout-minutes: 30 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + # mono occupies port 8084 which conflicts with mgmt-backend - name: Stop mono service run: | @@ -112,7 +116,11 @@ jobs: helm-integration-test-latest-mac: if: inputs.target == 'latest' && github.ref == 'refs/heads/main' runs-on: [self-hosted, macOS, vdp] + timeout-minutes: 20 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + - name: Set up environment run: | brew install make @@ -235,7 +243,11 @@ jobs: helm-integration-test-release-linux: if: inputs.target == 'release' runs-on: ubuntu-latest + timeout-minutes: 30 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + # mono occupies port 8084 which conflicts with mgmt-backend - name: Stop mono service run: | @@ -339,7 +351,11 @@ jobs: helm-integration-test-release-mac: if: inputs.target == 'release' runs-on: [self-hosted, macOS, vdp] + timeout-minutes: 20 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + - name: Set up environment run: | brew install make diff --git a/.github/workflows/helm-integration-test-release.yml b/.github/workflows/helm-integration-test-release.yml index 728e98886..e45996098 100644 --- a/.github/workflows/helm-integration-test-release.yml +++ b/.github/workflows/helm-integration-test-release.yml @@ -2,11 +2,6 @@ name: Helm Integration Test (release) on: workflow_dispatch: - push: - branches: - - release-please--branches--main - tags: - - v* jobs: backend: diff --git a/.github/workflows/integration-test-backend.yml b/.github/workflows/integration-test-backend.yml index f9e69dc1c..f747337da 100644 --- a/.github/workflows/integration-test-backend.yml +++ b/.github/workflows/integration-test-backend.yml @@ -14,7 +14,11 @@ jobs: integration-test-latest-linux: if: inputs.target == 'latest' runs-on: ubuntu-latest + timeout-minutes: 30 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + # mono occupies port 8084 which conflicts with mgmt-backend - name: Stop mono service run: | @@ -91,7 +95,11 @@ jobs: integration-test-latest-mac: if: inputs.target == 'latest' && github.ref == 'refs/heads/main' runs-on: [self-hosted, macOS, vdp] + timeout-minutes: 20 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + - name: Set up environment run: | brew install make @@ -204,7 +212,11 @@ jobs: integration-test-release-linux: if: inputs.target == 'release' runs-on: ubuntu-latest + timeout-minutes: 30 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + # mono occupies port 8084 which conflicts with mgmt-backend - name: Stop mono service run: | @@ -283,7 +295,11 @@ jobs: integration-test-release-mac: if: inputs.target == 'release' runs-on: [self-hosted, macOS, vdp] + timeout-minutes: 20 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + - name: Set up environment run: | brew install make diff --git a/.github/workflows/integration-test-release.yml b/.github/workflows/integration-test-release.yml index 09dc0bee4..1beb32460 100644 --- a/.github/workflows/integration-test-release.yml +++ b/.github/workflows/integration-test-release.yml @@ -2,11 +2,6 @@ name: Integration Test (release) on: workflow_dispatch: - push: - branches: - - release-please--branches--main - tags: - - v* jobs: backend: diff --git a/.github/workflows/make-all.yml b/.github/workflows/make-all.yml index 8f8f15075..cac3c07d8 100644 --- a/.github/workflows/make-all.yml +++ b/.github/workflows/make-all.yml @@ -2,11 +2,6 @@ name: Make All on: workflow_dispatch: - push: - branches: - - release-please--branches--main - tags: - - v* jobs: make-all: