Skip to content

Adding coderabbit artifacts#1052

Open
nirandaperera wants to merge 3 commits into
rapidsai:mainfrom
nirandaperera:adding-coderabbit-artifacts
Open

Adding coderabbit artifacts#1052
nirandaperera wants to merge 3 commits into
rapidsai:mainfrom
nirandaperera:adding-coderabbit-artifacts

Conversation

@nirandaperera

Copy link
Copy Markdown
Contributor

Adding coderabbit artifacts based on the following PRs

Lets merge after 26.06 release

Signed-off-by: niranda perera <niranda.perera@gmail.com>
@nirandaperera nirandaperera requested review from a team as code owners May 18, 2026 23:59
@nirandaperera nirandaperera requested a review from msarahan May 18, 2026 23:59
@nirandaperera nirandaperera added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels May 19, 2026

@pentschev pentschev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is overall positive. I left some comments but I didn't read word-by-word, and I don't know if reviewers/humans are even expected to be as detailed on exact wording and examples being added. Are there any guidelines for authors/reviewers of changes like those proposed in this PR?

Comment thread .coderabbit.yaml Outdated
Comment on lines +45 to +47
- Use `RAPIDSMPF_EXPECTS` for precondition checks and `RAPIDSMPF_FAIL`
for unreachable / failure paths. The `RAPIDSMPF_EXPECTS` condition
must be a pure predicate with no side effects.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are exceptions in cpp/src/bootstrap, see

// NOTE: Do not use RAPIDSMPF_EXPECTS or RAPIDSMPF_FAIL in this file.
// Using these macros introduces a CUDA dependency via rapidsmpf/error.hpp.
// Prefer throwing standard exceptions instead.
as an example. Can we ensure explicit exceptions for code that should NOT have any CUDA linkage?

Comment thread AGENTS.md
Comment on lines +213 to +221
- **C++**: Use the macros from
[`cpp/include/rapidsmpf/error.hpp`](cpp/include/rapidsmpf/error.hpp):
- `RAPIDSMPF_EXPECTS(cond, msg[, exception_type])` for precondition checks
(the condition must be a pure predicate — no side effects)
- `RAPIDSMPF_FAIL(msg[, exception_type])` for unreachable / failure paths
- `RAPIDSMPF_CUDA_TRY(cuda_call[, exception_type])` for every CUDA call
- `RAPIDSMPF_CUDA_TRY_ALLOC(cuda_call[, num_bytes])` for CUDA allocations
- `RAPIDSMPF_CUDA_TRY_FATAL(cuda_call)` /
`RAPIDSMPF_EXPECTS_FATAL(cond, msg)` in destructors / `noexcept` paths

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, exceptions for code that do not link to CUDA.

Comment thread cpp/REVIEW_GUIDELINES.md Outdated
Comment on lines +259 to +260
6. **Modern C++ / CCCL** — `cuda::std::` / libcudacxx in device code,
C++20 standard-library algorithms in host code.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can/should we we be explicit stating "prefer C++20 over older standards when an alternative is available to simplify/improve code being proposed"?

@wence- wence- left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really very positive on this grab-bag of things that might easily go out of date as we refactor.

Can we just actually write documentation and get any of these models to look at it?

Comment thread AGENTS.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this file entirely. Instead capture specific patterns in skills if you must.

Signed-off-by: niranda perera <niranda.perera@gmail.com>
@nirandaperera nirandaperera requested review from pentschev and wence- May 19, 2026 23:43
@nirandaperera

Copy link
Copy Markdown
Contributor Author

@wence- @pentschev I generalized the REVIEW_GUIDELINES.md files now.

@nirandaperera

Copy link
Copy Markdown
Contributor Author

Can we just actually write documentation and get any of these models to look at it?

@wence- I am not really sure. Maybe we can set it as a prerequisite of the review. The coderabbit PRs in cudf and rmm were creating a static instruction set. So, I was mimicking those artifacts

@vyasr

vyasr commented May 20, 2026

Copy link
Copy Markdown
Contributor

Can we just actually write documentation and get any of these models to look at it?

@wence- I am not really sure. Maybe we can set it as a prerequisite of the review. The coderabbit PRs in cudf and rmm were creating a static instruction set. So, I was mimicking those artifacts

Any files you put in knowledge_base.code_guidelines.filePatterns in your .coderabbit.yml will be read. cudf points to its developer documentation, for instance. We almost certainly have unnecessary duplication though that we should improve over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants