Skip to content

Commit

Permalink
Merge pull request #627 from fog/fix-concurrency
Browse files Browse the repository at this point in the history
Add concurrency groups
  • Loading branch information
Temikus authored Apr 7, 2024
2 parents e40eed7 + 547c0aa commit 6546438
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/integration-compute-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/integration-compute-instance_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/integration-compute-loadbalancing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration-compute-networking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration-pubsub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration-sql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6546438

Please sign in to comment.