diff --git a/.github/workflows/integration-compute-core.yml b/.github/workflows/integration-compute-core.yml index abbb5a2b9..47eff517b 100644 --- a/.github/workflows/integration-compute-core.yml +++ b/.github/workflows/integration-compute-core.yml @@ -22,6 +22,14 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-compute-core.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false jobs: test-compute: @@ -30,6 +38,7 @@ jobs: matrix: ruby-version: [ '3.0', '3.1', '3.2' ] # Integration tests from the same task cannot run in parallel yet due to cleanup + # TODO(fog-google#626): remove this once cleanup is fixed max-parallel: 1 steps: diff --git a/.github/workflows/integration-compute-instance_groups.yml b/.github/workflows/integration-compute-instance_groups.yml index 9761fa8b9..5afad6a0f 100644 --- a/.github/workflows/integration-compute-instance_groups.yml +++ b/.github/workflows/integration-compute-instance_groups.yml @@ -22,6 +22,15 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-compute-instance_groups.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false + jobs: test: diff --git a/.github/workflows/integration-compute-loadbalancing.yml b/.github/workflows/integration-compute-loadbalancing.yml index 420c25944..dc1db532d 100644 --- a/.github/workflows/integration-compute-loadbalancing.yml +++ b/.github/workflows/integration-compute-loadbalancing.yml @@ -22,6 +22,15 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-compute-loadbalancing.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false + jobs: test: diff --git a/.github/workflows/integration-compute-networking.yml b/.github/workflows/integration-compute-networking.yml index a60543c62..0ae8e8c6c 100644 --- a/.github/workflows/integration-compute-networking.yml +++ b/.github/workflows/integration-compute-networking.yml @@ -22,6 +22,14 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-compute-networking.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false jobs: test: diff --git a/.github/workflows/integration-monitoring.yml b/.github/workflows/integration-monitoring.yml index 89fb51524..ec501205e 100644 --- a/.github/workflows/integration-monitoring.yml +++ b/.github/workflows/integration-monitoring.yml @@ -23,6 +23,14 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-monitoring.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false jobs: test: diff --git a/.github/workflows/integration-pubsub.yml b/.github/workflows/integration-pubsub.yml index f92da0017..5a0b4de78 100644 --- a/.github/workflows/integration-pubsub.yml +++ b/.github/workflows/integration-pubsub.yml @@ -23,6 +23,14 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-pubsub.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false jobs: test: diff --git a/.github/workflows/integration-sql.yml b/.github/workflows/integration-sql.yml index cd684623b..0ccb03baa 100644 --- a/.github/workflows/integration-sql.yml +++ b/.github/workflows/integration-sql.yml @@ -23,6 +23,14 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-sql.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false jobs: test: diff --git a/.github/workflows/integration-storage.yml b/.github/workflows/integration-storage.yml index 2ebefa967..fdffec24b 100644 --- a/.github/workflows/integration-storage.yml +++ b/.github/workflows/integration-storage.yml @@ -24,6 +24,14 @@ on: - 'lib/fog/google.rb' # Trigger workflow on version upgrade - 'lib/fog/google/version.rb' + # Trigger when workflow itself is updated + - '.github/workflows/integration-storage.yml' + +# Setting hard concurrency limit for the project due to cleanup +# TODO(fog-google#626): remove this once cleanup is fixed +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false jobs: test: diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index d4f324bd8..eb66791e2 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ master ] +# Cancel in-progress jobs of the same ref or run_id +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + jobs: test-unit: runs-on: ubuntu-latest