Skip to content

Commit

Permalink
provide job concurrency settings for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Aug 3, 2023
1 parent 4bd10f6 commit 5812e61
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nucliadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
branches:
- main

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

jobs:
# Job to run pre-checks
pre-checks:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
branches:
- main

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

jobs:
# Job to run pre-checks
pre-checks:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
branches:
- main

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

jobs:
# Job to run pre-checks
pre-checks:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nucliadb_ingest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

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

env:
CONTAINER_REGISTRY: eu.gcr.io/${{ secrets.PROJECT_ID }}
IMAGE_NAME: ingest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
branches:
- main

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

jobs:
# Job to run pre-checks
pre-checks:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nucliadb_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ on:
- "nucliadb_telemetry/src/**"
- "nucliadb_utils/**"

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

env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nucliadb_node_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
- ".github/workflows/nucliadb_node_release.yml"
- "nucliadb_node_binding/Cargo.toml"

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

jobs:
build:
name: Build on ${{ matrix.platform || matrix.os }} (${{ matrix.target }} - ${{ matrix.manylinux || 'auto' }})
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_reader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
push:
branches:
- main

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

env:
API_VERSION: 1
COMPONENT: nucliadb-reader
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
branches:
- main

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

jobs:
# Job to run pre-checks
pre-checks:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ on:
- "nucliadb_telemetry/**"
- "nucliadb_protos/python/**"
- "nucliadb_node/**"

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

env:
API_VERSION: 1
COMPONENT: nucliadb-search
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nucliadb_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

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

env:
HASH: $(git rev-parse --short "$GITHUB_SHA")
BRANCH: ${GITHUB_REF##*/}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nucliadb_telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
- ".github/workflows/nucliadb_telemetry.yml"
- "nucliadb_telemetry/**"

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

jobs:
# Job to run pre-checks
pre-checks:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
push:
branches:
- main

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

env:
API_VERSION: 1
COMPONENT: nucliadb-train
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
branches:
- main

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

jobs:
# Job to run pre-checks
pre-checks:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nucliadb_writer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
push:
branches:
- main

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

env:
API_VERSION: 1
COMPONENT: nucliadb-writer
Expand Down

2 comments on commit 5812e61

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 5812e61 Previous: b760df9 Ratio
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error 4504.393667071037 iter/sec (stddev: 0.000010444303720888578) 5804.479338298567 iter/sec (stddev: 1.4505330313876097e-7) 1.29

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 5812e61 Previous: a40981d Ratio
nucliadb/tests/benchmarks/test_search.py::test_search_returns_labels 74.27196087847766 iter/sec (stddev: 0.0003010024078275346) 60.779932309336715 iter/sec (stddev: 0.0019119907918232523) 0.82
nucliadb/tests/benchmarks/test_search.py::test_search_relations 174.35237355796522 iter/sec (stddev: 0.00009002277517393894) 182.57436721258293 iter/sec (stddev: 0.0002220745559283828) 1.05

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.