Add timeouts to lock acquisitions
This commit is contained in:
parent
dd74fda2c6
commit
5ca5317ef4
16
.github/workflows/test.yaml
vendored
16
.github/workflows/test.yaml
vendored
@ -90,6 +90,10 @@ jobs:
|
|||||||
action: acquire
|
action: acquire
|
||||||
# Include the job ID in the process ID
|
# Include the job ID in the process ID
|
||||||
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
||||||
|
# GitHub terminates jobs after 6 hours
|
||||||
|
# We don't want jobs to acquire the lock then get timed out before they can finish
|
||||||
|
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the workflow
|
||||||
|
timeout-minutes: 180
|
||||||
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
||||||
|
|
||||||
- name: Test clean Kubernetes 1.29 deployment
|
- name: Test clean Kubernetes 1.29 deployment
|
||||||
@ -184,6 +188,10 @@ jobs:
|
|||||||
action: acquire
|
action: acquire
|
||||||
# Include the job ID in the process ID
|
# Include the job ID in the process ID
|
||||||
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
||||||
|
# GitHub terminates jobs after 6 hours
|
||||||
|
# We don't want jobs to acquire the lock then get timed out before they can finish
|
||||||
|
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the workflow
|
||||||
|
timeout-minutes: 180
|
||||||
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
||||||
|
|
||||||
- name: Deploy Kubernetes 1.29 for etcd volume test
|
- name: Deploy Kubernetes 1.29 for etcd volume test
|
||||||
@ -273,6 +281,10 @@ jobs:
|
|||||||
action: acquire
|
action: acquire
|
||||||
# Include the job ID in the process ID
|
# Include the job ID in the process ID
|
||||||
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
||||||
|
# GitHub terminates jobs after 6 hours
|
||||||
|
# We don't want jobs to acquire the lock then get timed out before they can finish
|
||||||
|
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the workflow
|
||||||
|
timeout-minutes: 180
|
||||||
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
||||||
|
|
||||||
- name: Deploy Kubernetes 1.27 for Kubernetes upgrade test
|
- name: Deploy Kubernetes 1.27 for Kubernetes upgrade test
|
||||||
@ -410,6 +422,10 @@ jobs:
|
|||||||
action: acquire
|
action: acquire
|
||||||
# Include the job ID in the process ID
|
# Include the job ID in the process ID
|
||||||
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
process-id: ${{ github.repository }}/${{ github.run_id }}/${{ github.job }}
|
||||||
|
# GitHub terminates jobs after 6 hours
|
||||||
|
# We don't want jobs to acquire the lock then get timed out before they can finish
|
||||||
|
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the workflow
|
||||||
|
timeout-minutes: 180
|
||||||
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
if: ${{ vars.CI_S3_LOCK_HOST != '' }}
|
||||||
|
|
||||||
- name: Deploy cluster with chart from latest tag
|
- name: Deploy cluster with chart from latest tag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user