Apply `green-ci` tool #3493
Unrelated to this PR, but ubuntu-22.04 is a bit old at this point
For what is worth, I do like the lists like
build:
- Release
it makes it easier to add/remove entries without messing with git blame
Same comment about lists format also here
However, I have maintained that all workflows always run on push to main because I know this is often something that maintainers usually want.
I don't know how much I count as a "maintainer", but I personally like keeping the same path triggers for pull requests and pushes, so as to keep CI to the really minimum, also on main
++ on @giordano comment on list.
Fair point. Changed the format to align with this in all workflows in 6436091b0dcb83dac34ef405dad6d8b0f4ec2349.
See 6436091b0dcb83dac34ef405dad6d8b0f4ec2349.
Thanks for the feedback @giordano, @ImanHosseini. I added path triggers in fe6de2d414d5ce36177443ed571ad11489c64437.
Opened #3503 to follow up.
With anchors you can reduce duplication
paths: &paths
- '.github/workflows/bcload.yml'
- 'enzyme/**'
# Triggers the workflow on pushes to open pull requests with code changes
pull_request:
paths: *paths
Oh nice, I haven't seen that before!
Implemented in b95282e0.
Approved these changes.
The failing MLIR CI doesn't seem relevant to this PR.
this shuoldn't need to run for any changes in the test directory
we can avoid running this for any changes in the test directory
this doesn't apply to tags, no?
Good point! Reverted in eeb7c447.
The simplest thing to do is to specify paths-ignores, which I did in fa22d0a483b50e5825c998e4e955b28b2a9d0307. I've found this to be flaky in the past so we should check such paths do actually get ignored once merged.
Same - done in fa22d0a483b50e5825c998e4e955b28b2a9d0307.
Hm that didn't work - that job failed. Will revisit shortly.
ImanHosseini
joewallwork
This PR aligns the Enzyme GitHub Actions workflows with best practices for green CI/CD. In particular, some workflows are only triggered when relevant files are changed. However, I have maintained that all workflows always run on push to
mainbecause I know this is often something that maintainers usually want.Some minor formatting changes were also made.
Note: in this PR, I tested the skill I've been developing for applying the green-ci tool. I was using Kimi-K3.