Skip to content

ci: use diff of previous patchset for path filters#2373

Closed
Alex-Welsh wants to merge 1 commit into
stackhpc/2025.1from
ci-smarter-reruns
Closed

ci: use diff of previous patchset for path filters#2373
Alex-Welsh wants to merge 1 commit into
stackhpc/2025.1from
ci-smarter-reruns

Conversation

@Alex-Welsh

Copy link
Copy Markdown
Member

When a user makes a PR, CI is run conditionally based on the files that change. If a second commit is then pushed, e.g. to update docs or add a relase note, that commit would retrigger all CI even though it doesn't affect the filtered files. This change fixes that interaction, so the new patchset is compared to the previous, instead of the branch it is merging into.

@github-actions github-actions Bot added the waiting-review PR is waiting for a review label Jun 16, 2026
When a user makes a PR, CI is run conditionally based on the files that
change. If a second commit is then pushed, e.g. to update docs or add a
relase note, that commit would retrigger all CI even though it doesn't
affect the filtered files. This change fixes that interaction, so the
new patchset is compared to the previous, instead of the branch it is
merging into.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@Alex-Welsh

Copy link
Copy Markdown
Member Author

Cool idea I think, but I've just realised it can be used to bypass CI if you push a major change, then quickly push a minor one - to docs or something - before CI on the first one is finished. Would have to check the status of the previous patchset and that seems like a bit of a mess. Dropping this for now

@Alex-Welsh Alex-Welsh closed this Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-review PR is waiting for a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant