Skip to content

Commit

Permalink
ci(DA): restrict concurrency to avoid failures in tests (#5005)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 authored May 29, 2024
1 parent 04031d3 commit dc2febe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,11 @@ jobs:
clientEngine: ['library']
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
concurrency: ${{ github.job }}-${{ matrix.combo }}-${{ matrix.clientEngine }}
# To avoid race conditions when running tests, we need to avoid concurrency
# The tests should not be run concurrently for a given "combo"
# Example: 2 concurrent runs of "turso-node-basic" will share the same database,
# which causes failures in the test expectation
concurrency: ${{ matrix.combo }}
env:
NODE_ENV: development
NODE_MODULES_CACHE: false
Expand Down Expand Up @@ -1369,7 +1373,11 @@ jobs:
clientEngine: ['wasm']
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
concurrency: ${{ github.job }}-${{ matrix.combo }}-${{ matrix.clientEngine }}
# To avoid race conditions when running tests, we need to avoid concurrency
# The tests should not be run concurrently for a given "combo"
# Example: 2 concurrent runs of "turso-vercel-nextjs-edgemw" will share the same database,
# which causes failures in the test expectation
concurrency: ${{ matrix.combo }}
env:
NODE_ENV: development
NODE_MODULES_CACHE: false
Expand Down

0 comments on commit dc2febe

Please sign in to comment.