Repository navigation
ci: skip the tests and the plugin verification on main for a push that changes only documentation, as for a pull request - #2309
Merged
lagergren merged 1 commit intoNov 27, 2026
Conversation
…t changes only documentation, as for a pull request changes.yml listed the changed files of a pull request only, so a push to main of documentation only ran the whole test matrix and the verification against every IDE release, of the code of the commit before, which its own push had tested. The main push of redhat-developer#2300 (docs only) held two macOS runners of the organization's short pool in the queue for over 100 minutes. A push now counts as documentation only when every commit of it changes only docs/ and the root Markdown files: the compare API lists the files of the whole range, as the several commits of a rebase merge. A push without a previous commit (the first of a branch), one that doesn't only add commits (a rewritten history), and one of 300 files or more, which the API may cut, still run everything. The Build Plugin zip workflow still runs, since the plugin's description comes from README.md. The changes jobs of ci.yml and IJ.yml get contents: read for the compare API. Checked against main's history: redhat-developer#2300's push (a900e49) is documentation only; redhat-developer#2289's, three merges at once, redhat-developer#2294's rebase merge (docs and a template), a new branch and a diverged range all run everything. Part of redhat-developer#2298
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 33 minutes. View limit details
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2309 +/- ##
=======================================
Coverage 58.51% 58.51%
=======================================
Files 847 847
Lines 36501 36501
Branches 7560 7560
=======================================
Hits 21360 21360
Misses 12136 12136
Partials 3005 3005 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2298: a push to main that changes only documentation skips the tests and the plugin verification, as a pull request of documentation only already does.
Why
changes.ymllisted the files of a pull request only, so every push to main ran the whole test matrix and the verification against every IDE release, also for documentation only: the code of the commit before, which its own push had tested. The main push of #2300 (docs only) held two macOS runners of the organization's short pool in the queue for over 100 minutes, ahead of the pull requests behind it.What
changes.yml: on a push, the compare API lists the files of the whole rangebefore...after, so that the several commits of a rebase merge count together. It is documentation only when every file is underdocs/or a Markdown file at the root, as for a pull request.statusother thanahead, as a rewritten history), and one of 300 files or more, which the API may cut.README.md.changesjobs ofci.ymlandIJ.ymlgetcontents: read, for the compare API.Checked
The step, run locally against main's history:
10a04d91..a900e494, #2300 (docs)ff1902e1..10a04d91, #2289 (code)e25c0382..a900e494, three merges at once01058929..e25c0382, #2294's rebase merge (docs and a template)0000…..a900e494, a new branch4f30741e..a900e494, a diverged rangeactionlint passes on the three workflows, and the branch merges cleanly with #2308. The push path itself runs only on main, so the first docs-only push after this merge is its real test.