Skip to content

[v3-3-test] Don't force full CI tests for non-test workflow and prek-only changes (#68802) - #68999

Merged
potiuk merged 1 commit into
v3-3-testfrom
backport-a4c269a-v3-3-test
Jun 26, 2026
Merged

potiuk merged 1 commit into
v3-3-testfrom
backport-a4c269a-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

ENVIRONMENT_FILES forced the full test matrix on any .github/workflows
change and on any scripts/ci/prek change. Those over-match: non-test
workflows (security scans, doc publishing, notifications, backporting,
stale/calendar bots) cannot affect test outcomes, and prek hooks drive
static checks rather than the test matrix.

Exclude non-test workflows from ENVIRONMENT_FILES (test/CI-config
workflows like ci-amd, run-unit-tests, k8s-tests still force full), and
move scripts/ci/prek to a new PREK_FILES group that triggers only the CI
image build (so mypy-scripts and image-based static checks still run for
a prek-only change) without forcing the full matrix.

Static checks still run on every PR regardless; this only stops the
unnecessary full test matrix for changes that cannot affect tests.
(cherry picked from commit a4c269a)

Co-authored-by: Jarek Potiuk jarek@potiuk.com

…only changes (#68802)

ENVIRONMENT_FILES forced the full test matrix on any .github/workflows
change and on any scripts/ci/prek change. Those over-match: non-test
workflows (security scans, doc publishing, notifications, backporting,
stale/calendar bots) cannot affect test outcomes, and prek hooks drive
static checks rather than the test matrix.

Exclude non-test workflows from ENVIRONMENT_FILES (test/CI-config
workflows like ci-amd, run-unit-tests, k8s-tests still force full), and
move scripts/ci/prek to a new PREK_FILES group that triggers only the CI
image build (so mypy-scripts and image-based static checks still run for
a prek-only change) without forcing the full matrix.

Static checks still run on every PR regardless; this only stops the
unnecessary full test matrix for changes that cannot affect tests.
(cherry picked from commit a4c269a)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@Lee-W
Lee-W marked this pull request as ready for review June 26, 2026 00:56
@potiuk
potiuk merged commit 6ad3c2c into v3-3-test Jun 26, 2026
115 checks passed
@potiuk
potiuk deleted the backport-a4c269a-v3-3-test branch June 26, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant