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
Enable required workflows? #400
Comments
P.S. Needless to say, everyone with admin privileges can still merge the PR even if the required workflows are failing. |
I thought this was already the case 😅 |
Thanks Indra. Indeed, it is merely an extra psychological speed bump for merging, as one must make the conscious decision to bypass branch protections. When 50% of our workflows are failing because of errors with Matrix or installation of other packages or some environment setup error, it can be tempting to force a merge assuming that all of the workflows fail for similarly trivial reasons. However, I think we agree that some workflows are more important than others and we should make sure they pass as most basic quality assurance checks. You propose For the repo I maintain, However, that means the PR author should not merge their PR until I had time to fix the lints, and this where making it a required workflow comes in for |
I am fine with individual maintainers calling shots on whether the
Btw, we have been cleaning lints here and there (well, most prominently Daniel for the massive repos he maintains 🙈), but the sheer volume of our codebase makes it quite the Herculean task. We should get there in a couple of years 🤞 |
Yes, it's more of a small nudge; as you've highlighted before, in cases where there is a time sensitive issue, it is always possible to bypass required workflows (including |
I'm confused about the goal of setting "required" workflows if we can bypass them. We already have a big red text saying something along the lines of "Merge now and bypass necessary approval", so why would setting some workflows as required add a nudge? Or does it generate a message saying something like "Careful: workflow Finally, in the github docs for required workflows, they say:
|
@rempsyc brought up a good point about making success of some workflows to be a required condition before a PR can be merged. This is to add an extra speed bump to prevent contributors with admin privileges from merging PRs that don't pass even the most basic quality assurance check. For more, see docs on required workflows.
I would propose (if you need a refresher on which workflows we use and why, see workflows summary) the following workflows can be deemed to be required:
R-CMD-check-hard
pkgdown
I don't want
R-CMD-check
to be a required workflow because it is quite fragile and can be easily broken by changes in any of our hundreds of soft dependencies.WDYT?
The text was updated successfully, but these errors were encountered: