From 0770c781310d79345f796458d4b2e7935374cb9a Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 13 Jan 2026 14:48:39 +0100 Subject: [PATCH] [3.13] gh-141004: Don't trigger `run-tests` when `Tools/check-c-api-docs/ignored_c_api.txt` is changed (GH-143583) (GH-143794) gh-141004: Don't trigger `run-tests` when `Tools/check-c-api-docs/ignored_c_api.txt` is changed (GH-143583) (cherry picked from commit 1176facbf21388ef29276ec55a95a66423f61191) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> --- Tools/build/compute-changes.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Tools/build/compute-changes.py b/Tools/build/compute-changes.py index db347e737f30..7be2503c7dff 100644 --- a/Tools/build/compute-changes.py +++ b/Tools/build/compute-changes.py @@ -19,14 +19,16 @@ if TYPE_CHECKING: from collections.abc import Set GITHUB_DEFAULT_BRANCH = os.environ["GITHUB_DEFAULT_BRANCH"] -GITHUB_CODEOWNERS_PATH = Path(".github/CODEOWNERS") GITHUB_WORKFLOWS_PATH = Path(".github/workflows") -CONFIGURATION_FILE_NAMES = frozenset({ - ".pre-commit-config.yaml", - ".ruff.toml", - "mypy.ini", +RUN_TESTS_IGNORE = frozenset({ + Path("Tools/check-c-api-docs/ignored_c_api.txt"), + Path(".github/CODEOWNERS"), + Path(".pre-commit-config.yaml"), + Path(".ruff.toml"), + Path("mypy.ini"), }) + UNIX_BUILD_SYSTEM_FILE_NAMES = frozenset({ Path("aclocal.m4"), Path("config.guess"), @@ -167,11 +169,7 @@ def process_changed_files(changed_files: Set[Path]) -> Outputs: if file.name == "reusable-wasi.yml": platforms_changed.add("wasi") - if not ( - doc_file - or file == GITHUB_CODEOWNERS_PATH - or file.name in CONFIGURATION_FILE_NAMES - ): + if not doc_file and file not in RUN_TESTS_IGNORE: run_tests = True platform = get_file_platform(file) -- 2.47.3