Skip to content

Commit

Permalink
chore(CI): Re-add concurrencies to reusable workflows (#1856)
Browse files Browse the repository at this point in the history
* chore(CI): Re-add concurrencies to reusable workflows

* try disambiguating with workflow_ref

* try for hierarchy

* just change them all

* revert

* add qualifiers to reusable workflows

* add a few missed ones
  • Loading branch information
DaughterOfMars authored Aug 23, 2024
1 parent fbbca22 commit 8399a95
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/_docs_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Docs spellcheck and linting

on: workflow_call

concurrency:
group: docs-lint-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
spelling:
name: Lint documentation
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Docusaurus Build

on: workflow_call

concurrency:
group: docusaurus-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Lint, Build, and Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: e2e-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_execution_cut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Execution cut

on: workflow_call

concurrency:
group: execution-cut-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

jobs:
execution-cut:
name: cutting a new execution layer
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_external_rust_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
isRust:
type: boolean

concurrency:
group: ext-rust-lints-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
rustfmt:
if: always() && inputs.isRust
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_external_rust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
isRust:
type: boolean

concurrency:
group: ext-rust-tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

jobs:
changes:
if: inputs.isRust
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_move_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Move tests

on: workflow_call

concurrency:
group: move-tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

jobs:
# This job ensures that Move unit tests are run if there are changes
# to Move code but not Rust code (If there are Rust changes, they
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_mysticeti_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- cron: "0 5 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: mysticeti-tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
isRust:
type: boolean

concurrency:
group: rust-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

env:
CARGO_TERM_COLOR: always
# Disable incremental compilation.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_rust_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
isRust:
type: boolean

concurrency:
group: rust-lints-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
rustfmt:
if: always() && inputs.isRust
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_rust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
isRust:
type: boolean

concurrency:
group: rust-tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

jobs:
changes:
if: inputs.isRust
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/_turborepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Turborepo CI

on: workflow_call

concurrency:
group: turborepo-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

jobs:
audit:
name: pnpm audit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Typos
on: workflow_call

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: typos-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 8399a95

Please sign in to comment.