From f56602de2731e4e2f3317c42076c2f51379d262e Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Thu, 31 Jul 2025 11:40:15 -0700 Subject: [PATCH] final fixes --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/integration-vision-tests.yml | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index ed14d107c..cd1bf89ee 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -5,7 +5,7 @@ run-name: Run the integration test suite from tests/integration on: push: branches: [ main ] - pull_request: + pull_request_target: branches: [ main ] types: [opened, synchronize, labeled] paths: diff --git a/.github/workflows/integration-vision-tests.yml b/.github/workflows/integration-vision-tests.yml index 04a9e0f93..38da333c2 100644 --- a/.github/workflows/integration-vision-tests.yml +++ b/.github/workflows/integration-vision-tests.yml @@ -5,7 +5,7 @@ run-name: Run vision inference integration test suite from tests/integration/inf on: push: branches: [ main ] - pull_request: + pull_request_target: branches: [ main ] types: [opened, synchronize, labeled] paths: @@ -29,13 +29,16 @@ on: default: '' concurrency: + # This creates three concurrency groups: + # ${{ github.workflow }}-${{ github.ref }}-rerecord (for valid triggers with re-record-tests label) + # ${{ github.workflow }}-${{ github.ref }}-replay (for valid triggers without re-record-tests label) + # ${{ github.workflow }}-${{ github.ref }}-no-run (for invalid triggers that will be skipped) + # The "no-run" group ensures that irrelevant label events don't interfere with the real workflows. group: >- ${{ github.workflow }}-${{ github.ref }}-${{ - (github.event.action == 'opened' || - github.event.action == 'synchronize' || - (github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 're-record-tests'))) && - (contains(github.event.pull_request.labels.*.name, 're-record-tests') && 'rerecord' || 'replay') || - 'no-run' + ((github.event.action == 'opened' || github.event.action == 'synchronize') && 'replay') || + ((github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 're-record-tests')) && 'rerecord' || + 'no-run') }} cancel-in-progress: true