New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow contributors to easily run CI locally with act
#833
Conversation
3bda54b
to
7c5a387
Compare
act
act
act
Sorry, moving to WIP. Looks like it works locally but has some minor issues on Github... edit: and resolved by adding a |
805a6f7
to
8dea412
Compare
act
act
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel your pain, Rust 1.29 is a massive PITA but I'm not convinced adding another tool is the best solution. Would it not be better if we could just configure CI to run once a new dev has had a single PR CI run approved i.e., manual approval was only needed for the first CI run?
@tcharding yeah I thought this might be a little contentious. Perhaps I should have labeled it as a PoC. I don't know if I would call this "adding another tool" as it is more along the lines of "more easily integrate with existing tools via zero impact changes". I won't push hard. Ultimately the decision belongs to the maintainers, so I am fine if this is marked as an undesired changed and closed. If the concern is continually supporting |
"more easily integrate with existing tools via zero impact changes" is something I happily support I'm not sure if we can configure CI to auto-approve runs but I think we should if it's possible. I didn't get the impression that README promises act would work but perhaps add this: "We do not actively support Regarding the code, it looks fine, just please add newlines to ends of new files. |
Agreed. I have no intention of ever running this (you can already run concept ACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 8dea412
Maybe the README comment could be clearer that this is not really supported, but I'm fine with the current text.
8dea412
to
4b8d342
Compare
Just pushed @Kixunil suggested change to explicit state that it isn't directly supported. Also added newlines at the ends of the new files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
ACK 4b8d342
Disable problematic jobs that involve Github Actions caching or `cross` whenever the environment is set to ACT. This allows running the CI pipeline locally and hopefully speeds up PR cycle times by reducing unexpected CI pipeline results.
4b8d342
to
006193f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 006193f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 006193f
Its good with the boys, its good with me :) Thanks |
Disable problematic jobs that involve Github Actions caching or
cross
whenever the environment is set to ACT. This allows running the CI pipeline locally and hopefully speeds up PR cycle times by reducing unexpected CI pipeline results.Motivation
The CI pipeline does not run until maintainer approval. This allows an easy path for contributors to test out the CI pipeline locally and avoid unexpected results. I personally kept hitting issues here due to MSRV always throwing me off
Potential issues
act
does not support Github Actions caching feature which is used in thefuzz
workflow so I simply disabled it ifact
is detected.the
cross
workflow is similarly disabled. I kept hittingsh: 1: cargo: not found
(see: Build fails withsh: 1: cargo: not found
cross-rs/cross#260). I tried a few different workaround but had no success.I'm hoping this is acceptable as it still improves the local testing situation and covers the
Tests
workflow