-
Notifications
You must be signed in to change notification settings - Fork 32
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Considerations for the responsible use of GitHub Actions #726
Comments
I think this is a good idea - i.e., trigger checks only when a PR is either marked ready for review or already ready for review. Draft PRs don't trigger any checks. This can be done using the
This seems generally a good idea especially for the faster actions, e.g. linting (see also (4)).
I think looking at changes to which files should trigger an R CMD check and codecov makes a lot of sense.
I don't really see the issue here as I can't imagine delaying a push/PR by half an hour is often an issue (except e.g. if running out of battery). |
Another option here would be e.g. to run the R CMD check workflows only on one platform (e.g. macos) and then on all platforms upon entering the merge queue (also would require setting up a merge queue) |
Draft PRs currently trigger checks. See #695 for example.
Then we need to fix all the liting issues in
I'm a little wary of this approach as it could cause loop holes in the checks.
|
Yes, sorry I wasn't clear - that was meant as part of the desired future state. |
I'm updating the description with things we are agreeing on. These can be logged as issues later when we have a final list. |
Another thing that is noted in the linked article is that some Runners are faster than others. So we should benchmark all the workflows between Ubuntu-latest vs macoS latest. The key ones are:
|
I think for this point and all other need to stop and think about the burden placed on new contributors (if you want any). |
We are all using precommit here: https://github.com/cdcgov/Rt-without-renewal and its working really well but I don't think when we spin it out we will require all contributors do so (we will just keep it running in the CI as we do now) |
Is another option to use the CI tag's ( |
Yes, and we do use these at times. However, it is again that is probably only available to those who are already package developers. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
We've had a lot of internal discussions on the responsible use of GitHub Actions. Some points have been laid out in this article by an RSE team at Imperial. A lot of these are already implemented here. However, more can be done.
EpiNow2 still has some really long CI runtimes and this is continually being addressed. See the most recent change in #722, for example.
This issue is to gather ideas on what more can be done to improve our CI usage. Here are a few ideas that have come up:
Thoughts? @sbfnk @seabbs @Bisaloo
Current agreements
- [ ] Requires changing trigger to "pull_request".
R CMD Check
locally before pushing changes.The text was updated successfully, but these errors were encountered: