mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
fix(ci): simplified concurrency and job eligibility criteria
This commit is contained in:
parent
d1b300ead9
commit
18576349ca
3 changed files with 17 additions and 25 deletions
|
@ -192,7 +192,7 @@ runs:
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.inference-mode }}-logs-${{ github.run_id }}-${{ github.run_attempt || '' }}-${{ inputs.provider }}
|
name: ${{ inputs.inference-mode }}-logs-${{ github.run_id }}-${{ github.run_attempt || '' }}-${{ inputs.provider }}-${{ inputs.run-vision-tests }}-${{ inputs.stack-config }}
|
||||||
path: |
|
path: |
|
||||||
*.log
|
*.log
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
20
.github/workflows/integration-tests.yml
vendored
20
.github/workflows/integration-tests.yml
vendored
|
@ -38,27 +38,23 @@ on:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# This creates three concurrency groups:
|
# This creates three concurrency groups:
|
||||||
# ${{ github.workflow }}-${{ github.ref }}-rerecord (for valid triggers with re-record-tests label)
|
# ${{ github.workflow }}-${{ github.ref }}-rerecord (for labeled events with re-record-tests label)
|
||||||
# ${{ github.workflow }}-${{ github.ref }}-replay (for valid triggers without re-record-tests label)
|
# ${{ github.workflow }}-${{ github.ref }}-replay (for all non-labeled events)
|
||||||
# ${{ github.workflow }}-${{ github.ref }}-no-run (for invalid triggers that will be skipped)
|
# ${{ github.workflow }}-${{ github.ref }}-no-run (for labeled events without re-record-tests label)
|
||||||
# The "no-run" group ensures that irrelevant label events don't interfere with the real workflows.
|
# The "no-run" group ensures that irrelevant label events don't interfere with the real workflows.
|
||||||
group: >-
|
group: >-
|
||||||
${{ github.workflow }}-${{ github.ref }}-${{
|
${{ github.workflow }}-${{ github.ref }}-${{
|
||||||
((github.event.action == 'opened' || github.event.action == 'synchronize') && 'replay') ||
|
github.event.action == 'labeled' && (
|
||||||
((github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 're-record-tests')) && 'rerecord' ||
|
contains(github.event.pull_request.labels.*.name, 're-record-tests') && 'rerecord' || 'no-run'
|
||||||
'no-run')
|
) || 'replay'
|
||||||
}}
|
}}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
discover-tests:
|
discover-tests:
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'push' ||
|
github.event.action != 'labeled' ||
|
||||||
github.event_name == 'schedule' ||
|
contains(github.event.pull_request.labels.*.name, 're-record-tests')
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
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 }}
|
||||||
|
|
20
.github/workflows/integration-vision-tests.yml
vendored
20
.github/workflows/integration-vision-tests.yml
vendored
|
@ -30,27 +30,23 @@ on:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# This creates three concurrency groups:
|
# This creates three concurrency groups:
|
||||||
# ${{ github.workflow }}-${{ github.ref }}-rerecord (for valid triggers with re-record-tests label)
|
# ${{ github.workflow }}-${{ github.ref }}-rerecord (for labeled events with re-record-tests label)
|
||||||
# ${{ github.workflow }}-${{ github.ref }}-replay (for valid triggers without re-record-tests label)
|
# ${{ github.workflow }}-${{ github.ref }}-replay (for all non-labeled events)
|
||||||
# ${{ github.workflow }}-${{ github.ref }}-no-run (for invalid triggers that will be skipped)
|
# ${{ github.workflow }}-${{ github.ref }}-no-run (for labeled events without re-record-tests label)
|
||||||
# The "no-run" group ensures that irrelevant label events don't interfere with the real workflows.
|
# The "no-run" group ensures that irrelevant label events don't interfere with the real workflows.
|
||||||
group: >-
|
group: >-
|
||||||
${{ github.workflow }}-${{ github.ref }}-${{
|
${{ github.workflow }}-${{ github.ref }}-${{
|
||||||
((github.event.action == 'opened' || github.event.action == 'synchronize') && 'replay') ||
|
github.event.action == 'labeled' && (
|
||||||
((github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 're-record-tests')) && 'rerecord' ||
|
contains(github.event.pull_request.labels.*.name, 're-record-tests') && 'rerecord' || 'no-run'
|
||||||
'no-run')
|
) || 'replay'
|
||||||
}}
|
}}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
discover-tests:
|
discover-tests:
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'push' ||
|
github.event.action != 'labeled' ||
|
||||||
github.event_name == 'schedule' ||
|
contains(github.event.pull_request.labels.*.name, 're-record-tests')
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
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:
|
||||||
rerecord-tests: ${{ steps.check-rerecord-tests.outputs.rerecord-tests }}
|
rerecord-tests: ${{ steps.check-rerecord-tests.outputs.rerecord-tests }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue