From 94e75b33e0e11c6c713c5cd61ff41e436032ffe2 Mon Sep 17 00:00:00 2001 From: Manu Zhang Date: Wed, 21 Oct 2026 22:35:52 +0800 Subject: [PATCH] fix(ci): scope PR tests to relevant workflow changes Skip unrelated GitHub workflow and configuration updates in the general, AWS, SQL catalog, and sanitizer test suites. Keep each suite's own workflow and shared actions as inputs, together with sanitizer suppression files. Co-authored-by: Codex --- .github/workflows/aws_test.yml | 17 +++++++++++------ .github/workflows/sanitizer_test.yml | 19 +++++++++++++------ .github/workflows/sql_catalog_test.yml | 17 +++++++++++------ .github/workflows/test.yml | 17 +++++++++++------ 4 files changed, 46 insertions(+), 24 deletions(-) diff --git a/.github/workflows/aws_test.yml b/.github/workflows/aws_test.yml index 5135704611..264ee69a10 100644 --- a/.github/workflows/aws_test.yml +++ b/.github/workflows/aws_test.yml @@ -25,12 +25,17 @@ on: - '**' pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.asf.yaml' - - '.devcontainer/**' - - '**/*.md' - - 'dev/**' - - 'mkdocs/**' + paths: + # Run for code/build changes and this suite's workflow dependencies. + - '**' + - '!.asf.yaml' + - '!.devcontainer/**' + - '!.github/**' + - '!**/*.md' + - '!dev/**' + - '!mkdocs/**' + - '.github/workflows/aws_test.yml' + - '.github/actions/**' concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/sanitizer_test.yml b/.github/workflows/sanitizer_test.yml index b2d1e011a8..e9796bc955 100644 --- a/.github/workflows/sanitizer_test.yml +++ b/.github/workflows/sanitizer_test.yml @@ -25,12 +25,19 @@ on: - '**' pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.asf.yaml' - - '.devcontainer/**' - - '**/*.md' - - 'dev/**' - - 'mkdocs/**' + paths: + # Run for code/build changes and this suite's workflow dependencies. + - '**' + - '!.asf.yaml' + - '!.devcontainer/**' + - '!.github/**' + - '!**/*.md' + - '!dev/**' + - '!mkdocs/**' + - '.github/workflows/sanitizer_test.yml' + - '.github/actions/**' + - '.github/lsan-suppressions.txt' + - '.github/ubsan-suppressions.txt' concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/sql_catalog_test.yml b/.github/workflows/sql_catalog_test.yml index 28ddaae32d..b476cf5f6a 100644 --- a/.github/workflows/sql_catalog_test.yml +++ b/.github/workflows/sql_catalog_test.yml @@ -25,12 +25,17 @@ on: - '**' pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.asf.yaml' - - '.devcontainer/**' - - '**/*.md' - - 'dev/**' - - 'mkdocs/**' + paths: + # Run for code/build changes and this suite's workflow dependencies. + - '**' + - '!.asf.yaml' + - '!.devcontainer/**' + - '!.github/**' + - '!**/*.md' + - '!dev/**' + - '!mkdocs/**' + - '.github/workflows/sql_catalog_test.yml' + - '.github/actions/**' concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a85e6f24a6..f252c0e806 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,12 +25,17 @@ on: - '**' pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.asf.yaml' - - '.devcontainer/**' - - '**/*.md' - - 'dev/**' - - 'mkdocs/**' + paths: + # Run for code/build changes and this suite's workflow dependencies. + - '**' + - '!.asf.yaml' + - '!.devcontainer/**' + - '!.github/**' + - '!**/*.md' + - '!dev/**' + - '!mkdocs/**' + - '.github/workflows/test.yml' + - '.github/actions/**' concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}