-
Notifications
You must be signed in to change notification settings - Fork 4
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
Setup pre-commit.ci #124
Comments
There are a number of reasons why we haven't been able to use it in the past and have opted for running pre-commit ourselves. I can link you to threads, please feel free to let us know if any of those reasons have materially changed. I'd love to use the service if possible. |
Links would be helpful Or simply a comment here with a list of outstanding issues. Perhaps we can use that as a way to close them out one-by-one so as to unblock this issue |
We had some offline discussions about this. CCCL and cuCollections are using pre-commit.ci but there are some limitations.
Nonetheless, we are in agreement that this is worth trying. I will open a PR for RMM and request for ops to install the application in the rapidsai org so we can try it out. |
This PR adds configuration for pre-commit.ci, reformats the pre-commit config file, and updates pre-commit hooks. See rapidsai/build-planning#124 for the motivation. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Ray Douglass (https://github.com/raydouglass) - Matthew Murray (https://github.com/Matt711) - Jake Awe (https://github.com/AyodeAwe) URL: #1746
Things seem to be working well in RMM aside from cc: @davidwendt @vyasr |
This PR adds configuration for pre-commit.ci. See rapidsai/build-planning#124 for the motivation.
This was done for cuDF in PR: rapidsai/cudf#17795 |
Regarding the roll out.
|
The plan for the immediate future is to have both our style checks run and pre-commit CI at the same time. The primary purpose of the latter is to support autofixing so that we don't need to always make local change, although of course this introduces unverified commits which is annoying. The main beneficial case is to not have to do local work when CI indicates a style issue. It remains to be seen how many people will actually leverage this feature. I think between rmm and cudf we should get enough data in a few months to make a call. @bdice have we seen anyone actually use the autofix in rmm yet? I don't think so, but I could have missed something. I guess what I'm really asking is, what is our criteria going to be for determining whether pre-commit.ci is worth it given that we are going to have to maintain a separate style check CI run anyway for the foreseeable future? |
I expect this to be useful in a few cases:
I have used the autofix in RMM, but mostly as a test. For me, the "worth it?" criteria is trivially satisfied. It gives us small but meaningful benefits at nearly zero ongoing cost. |
Also, pre-commit.ci is faster than our style check jobs. You can get feedback in seconds rather than waiting 2-3 minutes. |
Yup, I'm sold on having My leftover curiosity, mainly for the roll out, is if |
Exactly. |
To make it easier to use
pre-commit
, it would be great to have https://pre-commit.ci configured for all RAPIDS projects. We can also make this a requirement before running other CIAdditionally we could leverage pre-commit.ci to help us fix issues with its bot. Though would recommend that disable autofixing. Otherwise the bot pushes changes into PRs fairly aggressively. It would be better to have users request fixes from the bot. This can be done in
.pre-commit-config.yaml
like soWe may also want to add an exception in our own CI configuration to allow commits from the pre-commit bot when considering whether to run CI
The text was updated successfully, but these errors were encountered: