Skip to content

ci: classify pull request validation using a shared path policy - #3825

Draft
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:fix/skip-contributing-only-pr-ci
Draft

He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:fix/skip-contributing-only-pr-ci

Conversation

@He-Pin

@He-Pin He-Pin commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Motivation

#3824 changed only contributor documentation but started code CI. A single filename exclusion does not address other documentation or give the repository a reusable policy.

Modification

Classify the immutable PR diff as full validation, standalone prose, or generated documentation. Read a versioned, repository-configured path policy from the base commit rather than from the proposed PR. The validation workflows share the classification and keep the required formatting and license check names.

Result

Standalone documentation does not start sbt compilation or tests. Generated documentation keeps the focused Paradox build without running the code test matrix. Code, workflow and policy changes, mixed changes, and missing or incomplete comparison data keep full validation. The lightweight classifier and existing required check contexts remain. Main push checks are unchanged.

Tests

Ran the actual workflow classifier locally against 32 cases, including #3824's exact comparison, mixed diffs, both rename directions, missing policy, partial input, and an alternate reStructuredText policy, invalid regexes and noncanonical policy paths. Checked all 456 tracked Markdown paths in batches, the five workflow invariants, and actionlint (excluding the pre-existing runner-label warning). A hosted documentation-only PR should verify the behavior after the policy lands.

References

Refs #3824.
GitHub required status checks and skips.

Motivation:
Markdown-only pull requests need not run code validation, but a hardcoded filename rule is not reusable and required check contexts must remain intact.

Modification:
Read a versioned path policy from the immutable base of the pull request. Share its full, prose, and generated-documentation decisions across workflows. Use the focused Paradox job for generated documentation and the original checks for code or uncertain input.

Result:
Other Markdown documents receive the correct level of validation. Code and mixed changes, workflow and policy edits, or incomplete metadata retain full validation. Main pushes and required check names are unchanged.

Tests:
The actual workflow classifier passed 32 cases, plus groups covering all 456 tracked Markdown paths, five workflow invariants, and actionlint excluding the original runner-label warning. Hosted fork verification is pending.

References:
Refs apache#3824.
@He-Pin
He-Pin force-pushed the fix/skip-contributing-only-pr-ci branch from d22c653 to 723af41 Compare November 29, 2026 06:22
@He-Pin He-Pin changed the title ci: avoid build jobs for CONTRIBUTING-only pull requests ci: classify pull request validation using a shared path policy Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant