Skip to content

Commit 88101ff

Browse files
committed
Switch to a different approach which still allows manual cancellation.
1 parent 9f2df92 commit 88101ff

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/deploy-backend.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ jobs:
7878
run: make init
7979

8080
- name: Terraform Plan
81-
# Ignore cancellations to prevent Terraform from being killed while it holds a state lock
82-
# A stuck process can still be killed with the force-cancel API operation
83-
if: ${{ !failure() }}
8481
working-directory: infrastructure/instance
8582
run: make plan-ci
8683

@@ -123,9 +120,6 @@ jobs:
123120
run: make init
124121

125122
- name: Terraform Apply
126-
# Ignore cancellations to prevent Terraform from being killed while it holds a state lock
127-
# A stuck process can still be killed with the force-cancel API operation
128-
if: ${{ !failure() }}
129123
working-directory: infrastructure/instance
130124
run: |
131125
make apply-ci

.github/workflows/pr-deploy-and-test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
9-
cancel-in-progress: true
10-
117
jobs:
128
run-quality-checks:
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
1312
uses: ./.github/workflows/quality-checks.yml
1413
secrets:
1514
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1615

1716
deploy-pr-backend:
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
# Avoid automatic cancellation while Terraform holds a state lock
20+
cancel-in-progress: false
1821
needs: [run-quality-checks]
1922
uses: ./.github/workflows/deploy-backend.yml
2023
with:
@@ -24,6 +27,9 @@ jobs:
2427
sub_environment: pr-${{github.event.pull_request.number}}
2528

2629
run-e2e-automation-tests:
30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.ref }}
32+
cancel-in-progress: true
2733
needs: [deploy-pr-backend]
2834
strategy:
2935
matrix:

0 commit comments

Comments
 (0)