better concurrency key

This commit is contained in:
Ashwin Bharambe 2025-07-30 11:57:29 -07:00
parent 22067bfa27
commit 7f359320e1

View file

@ -7,7 +7,7 @@ on:
branches: [ main ] branches: [ main ]
pull_request: pull_request:
branches: [ main ] branches: [ main ]
types: [opened, synchronize] types: [opened, synchronize, labeled]
paths: paths:
- 'llama_stack/**' - 'llama_stack/**'
- 'tests/**' - 'tests/**'
@ -17,9 +17,6 @@ on:
- '.github/workflows/integration-tests.yml' # This workflow - '.github/workflows/integration-tests.yml' # This workflow
- '.github/actions/setup-ollama/action.yml' - '.github/actions/setup-ollama/action.yml'
- '.github/actions/run-integration-tests/action.yml' - '.github/actions/run-integration-tests/action.yml'
pull_request:
types: [labeled]
labels: [re-record-tests]
schedule: schedule:
# If changing the cron schedule, update the provider in the test-matrix job # If changing the cron schedule, update the provider in the test-matrix job
- cron: '0 0 * * *' # (test latest client) Daily at 12 AM UTC - cron: '0 0 * * *' # (test latest client) Daily at 12 AM UTC
@ -36,11 +33,15 @@ on:
default: 'ollama' default: 'ollama'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}-${{ contains(github.event.pull_request.labels.*.name, 're-record-tests') && 'rerecord' || 'replay' }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
discover-tests: discover-tests:
if: |
github.event.action == 'opened' ||
github.event.action == 'synchronize' ||
(github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 're-record-tests'))
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
test-types: ${{ steps.generate-test-types.outputs.test-types }} test-types: ${{ steps.generate-test-types.outputs.test-types }}