ci: configure Coderabbit
PATCH 1/1 ci: configure Coderabbit
Coderabbit currently runs in ovsrobot repository (and can be used in public personal forks).
poems are funny, but not really helpful.
Reduce some noise by disabling (or collapsing) some verbose outputs.
---
I copied the tone instructions and some settings from grout. The docstrings check is noisy, and often wrong for C headers (especially EAL arch headers).
Opinions?
--- .coderabbit.yaml | 14 ++++++++++++++ MAINTAINERS | 1 + devtools/check-spdx-tag.sh | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .coderabbit.yaml
.coderabbit.yaml new file +14 -0
@@ -0,0 +1,14 @@ +language: "en-US" +tone_instructions: "Only provide helpful, relevant comments. Be brief and terse but clear." +reviews: + profile: "chill" + collapse_walkthrough: true + changed_files_summary: false + sequence_diagrams: false + suggested_labels: false + poem: false + finishing_touches: + docstrings: + enabled: false + unit_tests: + enabled: false
MAINTAINERS +1 -0
@@ -141,6 +141,7 @@ M: Aaron Conole <[email protected]> M: Michael Santana <[email protected]> F: .github/workflows/build.yml F: .ci/ +F: .coderabbit.yaml Driver information M: Dmitry Kozlyuk <[email protected]>
devtools/check-spdx-tag.sh +1 -1
@@ -18,7 +18,7 @@ print_usage () { no_license_list=\ ':^.git* :^.mailmap :^.ci/* :^README :^*/README* :^MAINTAINERS :^VERSION :^ABI_VERSION '\ ':^license/ :^config/ :^buildtools/ :^*.abignore :^*.cocci :^*/poetry.lock '\ -':^*/Kbuild :^kernel/linux/uapi/version '\ +':^*/Kbuild :^kernel/linux/uapi/version :^.coderabbit.yaml '\ ':^*.ini :^*.data :^*.json :^*.cfg :^*.txt :^*.svg :^*.png' check_spdx() {
Signature · 1 line
2.51.0
Quoted 7 lines · David Marchand
Coderabbit currently runs in ovsrobot repository (and can be used in public personal forks).
poems are funny, but not really helpful.
Reduce some noise by disabling (or collapsing) some verbose outputs.Signed-off-by David Marchand <[email protected]>
Quoted 8 lines
---
I copied the tone instructions and some settings from grout. The docstrings check is noisy, and often wrong for C headers (especially EAL arch headers).Opinions?
---
Hi David,
Can you provide a little more details on what exactly you are proposing?
On the back of this patch, I installed CodeRabbit in my IDE (VSCode), and did a review of one of my recent patchsets - it's quite interesting, actually, and the comments provided were basic but meaningful, alas the free version is limited to like 1 review per 30 minutes or something so it's a bit limiting. On top of that, I found the tool a lot more usable than GitHub Copilot reviews, which are attached to GH pull requests rather than Git branches, and they take a lot less time to boot, so I feel like this tool has potential.
That said, I'm not sure what this patch is supposed to do - is it to have it set up to review patches automatically?
Signature · 2 lines
Thanks, Anatoly
Quoted 31 lines · Anatoly
Quoted 7 lines · David Marchand
Coderabbit currently runs in ovsrobot repository (and can be used in public personal forks).
poems are funny, but not really helpful.
Reduce some noise by disabling (or collapsing) some verbose outputs.Signed-off-by David Marchand <[email protected]>Quoted 8 lines
---
I copied the tone instructions and some settings from grout. The docstrings check is noisy, and often wrong for C headers (especially EAL arch headers).Opinions?
---
Hi David,
Can you provide a little more details on what exactly you are proposing?
On the back of this patch, I installed CodeRabbit in my IDE (VSCode), and did a review of one of my recent patchsets - it's quite interesting, actually, and the comments provided were basic but meaningful, alas the free version is limited to like 1 review per 30 minutes or something so it's a bit limiting. On top of that, I found the tool a lot more usable than GitHub Copilot reviews, which are attached to GH pull requests rather than Git branches, and they take a lot less time to boot, so I feel like this tool has potential.
Quoted 2 lines
That said, I'm not sure what this patch is supposed to do - is it to have it set up to review patches automatically?
The ovsrobot creates pull requests in its dpdk github repository, and Coderabbit and sourcery are invoked on them.
Look for a link in patchwork, under the name "ci/github-robot-post".
For example, this exact patch got a branch and pr in ovsrobot/dpdk:
https://github.com/ovsrobot/dpdk/tree/series_36267
https://github.com/ovsrobot/dpdk/pull/124
Signature · 1 line
David Marchand
Quoted 15 lines · David Marchand
Quoted 11 lines · Anatoly
Can you provide a little more details on what exactly you are proposing?
On the back of this patch, I installed CodeRabbit in my IDE (VSCode), and did a review of one of my recent patchsets - it's quite interesting, actually, and the comments provided were basic but meaningful, alas the free version is limited to like 1 review per 30 minutes or something so it's a bit limiting. On top of that, I found the tool a lot more usable than GitHub Copilot reviews, which are attached to GH pull requests rather than Git branches, and they take a lot less time to boot, so I feel like this tool has potential.
Quoted 2 lines
That said, I'm not sure what this patch is supposed to do - is it to have it set up to review patches automatically?
Quoted 7 lines
The ovsrobot creates pull requests in its dpdk github repository, and Coderabbit and sourcery are invoked on them.
Look for a link in patchwork, under the name "ci/github-robot-post".For example, this exact patch got a branch and pr in ovsrobot/dpdk:
https://github.com/ovsrobot/dpdk/tree/series_36267
https://github.com/ovsrobot/dpdk/pull/124
Btw, you'll notice a bit of noise, due to how the PR is created against ovsrobot/main, and not the exact DPDK main branch at the moment the patch is submitted on the ml.
Signature · 1 line
David Marchand
Burakov, Anatoly
Acked-byQuoted 20 lines · David Marchand
Quoted 19 lines · David Marchand
Quoted 11 lines · Anatoly
Can you provide a little more details on what exactly you are proposing?
On the back of this patch, I installed CodeRabbit in my IDE (VSCode), and did a review of one of my recent patchsets - it's quite interesting, actually, and the comments provided were basic but meaningful, alas the free version is limited to like 1 review per 30 minutes or something so it's a bit limiting. On top of that, I found the tool a lot more usable than GitHub Copilot reviews, which are attached to GH pull requests rather than Git branches, and they take a lot less time to boot, so I feel like this tool has potential.
Quoted 2 lines
That said, I'm not sure what this patch is supposed to do - is it to have it set up to review patches automatically?
The ovsrobot creates pull requests in its dpdk github repository, and Coderabbit and sourcery are invoked on them.
Look for a link in patchwork, under the name "ci/github-robot-post".
Quoted 9 lines
Quoted 3 lines
For example, this exact patch got a branch and pr in ovsrobot/dpdk:
https://github.com/ovsrobot/dpdk/tree/series_36267
https://github.com/ovsrobot/dpdk/pull/124Btw, you'll notice a bit of noise, due to how the PR is created against ovsrobot/main, and not the exact DPDK main branch at the moment the patch is submitted on the ml.
Wow, I didn't know this was a thing! Sourcery actually seems like the more impressive one in terms of summarizing the changes and aiding in review, but those two in tandem look pretty cool indeed. Makes me think of an alternate reality where we use GitHub (or something else more modern) to review code :)
So I guess this patch just configures CodeRabbit better. In that case,
Signature · 2 lines
Thanks, Anatoly
Quoted 32 lines · Anatoly
Quoted 20 lines · David Marchand
Quoted 19 lines · David Marchand
Quoted 11 lines · Anatoly
Can you provide a little more details on what exactly you are proposing?
On the back of this patch, I installed CodeRabbit in my IDE (VSCode), and did a review of one of my recent patchsets - it's quite interesting, actually, and the comments provided were basic but meaningful, alas the free version is limited to like 1 review per 30 minutes or something so it's a bit limiting. On top of that, I found the tool a lot more usable than GitHub Copilot reviews, which are attached to GH pull requests rather than Git branches, and they take a lot less time to boot, so I feel like this tool has potential.
Quoted 2 lines
That said, I'm not sure what this patch is supposed to do - is it to have it set up to review patches automatically?
The ovsrobot creates pull requests in its dpdk github repository, and Coderabbit and sourcery are invoked on them.
Look for a link in patchwork, under the name "ci/github-robot-post".Quoted 9 lines
Quoted 3 lines
For example, this exact patch got a branch and pr in ovsrobot/dpdk:
https://github.com/ovsrobot/dpdk/tree/series_36267
https://github.com/ovsrobot/dpdk/pull/124Btw, you'll notice a bit of noise, due to how the PR is created against ovsrobot/main, and not the exact DPDK main branch at the moment the patch is submitted on the ml.
Quoted 3 lines
Wow, I didn't know this was a thing! Sourcery actually seems like the more impressive one in terms of summarizing the changes and aiding in review, but those two in tandem look pretty cool indeed. Makes me think
Well, Robin gave better feedback on Coderabbit than on Sourcery so far. Coderabbit seems less picky on credits when it comes to opensource projects (I did not check in details, that's *my* feeling when looking at reviews in DPDK PRs where I see sourcery complaining we consumed too many credits recently).
One important difference between the two is that it does not seem possible to tweak sourcery with settings stored in your repo like what is done in this patch.
This may be a problem for the DPDK github org, where we have DPDK and grout starting to use AI bot for reviews, and may have different opinions on how to configure the tools.
Quoted 2 lines
of an alternate reality where we use GitHub (or something else more modern) to review code :)
Erm, my personal opinion, the github PR webui is a *mess*.
Signature · 1 line
David Marchand
Quoted 43 lines · David Marchand
Quoted 32 lines · Anatoly
Quoted 20 lines · David Marchand
Quoted 19 lines · David Marchand
Quoted 11 lines · Anatoly
Can you provide a little more details on what exactly you are proposing?
On the back of this patch, I installed CodeRabbit in my IDE (VSCode), and did a review of one of my recent patchsets - it's quite interesting, actually, and the comments provided were basic but meaningful, alas the free version is limited to like 1 review per 30 minutes or something so it's a bit limiting. On top of that, I found the tool a lot more usable than GitHub Copilot reviews, which are attached to GH pull requests rather than Git branches, and they take a lot less time to boot, so I feel like this tool has potential.
Quoted 2 lines
That said, I'm not sure what this patch is supposed to do - is it to have it set up to review patches automatically?
The ovsrobot creates pull requests in its dpdk github repository, and Coderabbit and sourcery are invoked on them.
Look for a link in patchwork, under the name "ci/github-robot-post".Quoted 9 lines
Quoted 3 lines
For example, this exact patch got a branch and pr in ovsrobot/dpdk:
https://github.com/ovsrobot/dpdk/tree/series_36267
https://github.com/ovsrobot/dpdk/pull/124Btw, you'll notice a bit of noise, due to how the PR is created against ovsrobot/main, and not the exact DPDK main branch at the moment the patch is submitted on the ml.
Quoted 3 lines
Wow, I didn't know this was a thing! Sourcery actually seems like the more impressive one in terms of summarizing the changes and aiding in review, but those two in tandem look pretty cool indeed. Makes me think
Well, Robin gave better feedback on Coderabbit than on Sourcery so far. Coderabbit seems less picky on credits when it comes to opensource projects (I did not check in details, that's *my* feeling when looking at reviews in DPDK PRs where I see sourcery complaining we consumed too many credits recently).
Quoted 6 lines
One important difference between the two is that it does not seem possible to tweak sourcery with settings stored in your repo like what is done in this patch.
This may be a problem for the DPDK github org, where we have DPDK and grout starting to use AI bot for reviews, and may have different opinions on how to configure the tools.
Well, sure, but I meant in terms of actual usefulness of the tool rather than the technicalities of its usage. It may very well be that CodeRabbit is more generous and configurable. I was mostly referring to Sourcery's ability to summarize review and provide context that, at least for the examples that I looked at, seems to be helpful.
Quoted 6 lines
Quoted 4 lines
of an alternate reality where we use GitHub (or something else more modern) to review code :)
Erm, my personal opinion, the github PR webui is a *mess*.
Just about every review format is going to be a mess, but I'm comparing it to patches and patchwork. There's a lot wrong with web UI's such as GitHub/GitLab etc. but they do fix *some* issues with patch workflow, and there's a lot to be said for having reviewed code right in your IDE (which IDE's can do with GitHub integration) where you can debug it and provide comments inline. I personally find that to be valuable.
Signature · 2 lines
Thanks, Anatoly