Skip to content

gh-141004: Don't trigger run-tests when Tools/check-c-api-docs/ignored_c_api.txt is changed - #143583

Merged
ZeroIntensity merged 4 commits into
python:mainfrom
StanFromIreland:ignore-capi-tests
Jan 13, 2026
Merged

gh-141004: Don't trigger run-tests when Tools/check-c-api-docs/ignored_c_api.txt is changed#143583
ZeroIntensity merged 4 commits into
python:mainfrom
StanFromIreland:ignore-capi-tests

Conversation

@StanFromIreland

@StanFromIrelandStanFromIreland commented Jan 8, 2026

Copy link
Copy Markdown
Member

Comment threadTools/build/compute-changes.py Outdated
@StanFromIreland

Copy link
Copy Markdown
MemberAuthor

@hugovk maybe you could please take a look?

@ZeroIntensityZeroIntensity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'm fine with this. Since it's right before the weekend, I'll give others a few more days to take a look before merging.

Comment on lines +26 to +28
Path(".github/CODEOWNERS"),
Path(".pre-commit-config.yaml"),
Path(".ruff.toml"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth keeping CONFIGURATION_FILE_NAMES and just flattening it here, but I'm not going to block the PR on it.

Comment threadTools/build/compute-changes.py Outdated
@hugovkhugovk added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jan 9, 2026
@hugovk

Copy link
Copy Markdown
Member

Idle thought, we could write:

ifnot (doc_fileorfileinRUN_TESTS_IGNORE):

As:

ifnotdoc_fileandfilenotinRUN_TESTS_IGNORE:

I think that's a little clearer?


An unrelated condition that could be made clearer in this file is:

ifnothas_platform_specific_changeornotplatforms_changed:
aelse:
b

Is the same as:

ifnot (has_platform_specific_changeandplatforms_changed):
aelse:
b

And flip to put the positive first:

ifhas_platform_specific_changeandplatforms_changed:
belse:
a

Comment threadTools/build/compute-changes.py Outdated
@ZeroIntensity
ZeroIntensity merged commit 1176fac into python:mainJan 13, 2026
53 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 13, 2026
…cs/ignored_c_api.txt` is changed (pythonGH-143583)
(cherry picked from commit 1176fac)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 13, 2026
…cs/ignored_c_api.txt` is changed (pythonGH-143583)
(cherry picked from commit 1176fac)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bedevere-app

Copy link
Copy Markdown

GH-143793 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Jan 13, 2026
@bedevere-app

Copy link
Copy Markdown

GH-143794 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Jan 13, 2026
@StanFromIreland
StanFromIreland deleted the ignore-capi-tests branch January 13, 2026 13:32
ZeroIntensity pushed a commit that referenced this pull request Jan 13, 2026
…ocs/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 1176fac)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
ZeroIntensity pushed a commit that referenced this pull request Jan 13, 2026
…ocs/ignored_c_api.txt` is changed (GH-143583) (GH-143793)
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 1176fac)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@StanFromIreland@hugovk@ZeroIntensity