Skip to content

chore: add CodeRabbit review config - #63

Open
rmems wants to merge 1 commit into
mainfrom
chore/coderabbit-config
Open

rmems wants to merge 1 commit into
mainfrom
chore/coderabbit-config

Conversation

@rmems

@rmems rmems commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Adds a .coderabbit.yaml for CodeRabbit reviews. This PR only adds that one file.

Baseline (same in every repo)

  • request_changes_workflow: false and fail_commit_status: false, so CodeRabbit never blocks a merge
  • Auto-review on; draft PRs skipped (auto_review.drafts: false)
  • chill review profile

Tailoring for blackwell-kernel-lab

  • Stack: CUDA C++ kernels + Python tools; CPU CI with -DBKL_ENABLE_CUDA=OFF; GPU/sanitizer jobs self-hosted and gated
  • Extra path filters: !results/**
  • Path instructions: kernels/**/*.cu, kernels/**/CMakeLists.txt, {tools,kernels/tools}/**/*.py, **/*.sh, fixtures/**, …
  • Tools: on ruff, shellcheck, actionlint, yamllint, markdownlint; off biome

Validated against CodeRabbit's schema.v2.json, with no unknown keys and every path_instructions glob matching a tracked file.


Devin Review


Summary by cubic

Adds a CodeRabbit review config so CodeRabbit can review this repo without ever blocking a merge.

  • Enables auto-review on non-draft PRs with the chill profile.
  • Avoids reviewed file noise from results/**.
  • Provides path-specific instructions for CUDA kernels, CMake, Python tools, shell scripts, fixtures, and workflows.
  • Enables ruff, shellcheck, actionlint, yamllint, and markdownlint; disables biome.

Written for commit aaf6ca3. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Chores
    • Added automated code review configuration with checks for Python, shell scripts, GitHub Actions, YAML, and Markdown.
    • Configured reviews to skip results files and avoid requesting changes or failing commit status.

@codeant-ai

codeant-ai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR aaf6ca3 Oct 01, 2026 · 00:46 00:47

@codeant-ai

codeant-ai Bot commented Oct 1, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T00:48:08.648532Z aaf6ca3 PR opened
🔒 Security Review ✅ Completed 2026-10-01T00:48:35.978875Z aaf6ca3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: rmems/blackwell-kernel-lab/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: d3840e2a-8f25-4f4b-884f-090121caf666

📥 Commits

Reviewing files that changed from the base of the PR and between 22cc4f3 and aaf6ca3.

📒 Files selected for processing (1)
  • .coderabbit.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Adds a draft CodeRabbit configuration. It sets review behavior, excludes results/**, defines path-specific review instructions, and enables selected lint tools.

Changes

CodeRabbit configuration

Layer / File(s) Summary
Review behavior and tool configuration
.coderabbit.yaml
Sets the review profile and automation behavior, excludes results/**, adds path-specific instructions, and enables Ruff, ShellCheck, actionlint, yamllint, and markdownlint. Biome is disabled.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to aaf6c

The added review configuration has no established actionable issue; its path instructions correspond to tracked repository files.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding a CodeRabbit review configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:M This PR changes 30-99 lines, ignoring generated files label Oct 1, 2026
@gitar-bot

gitar-bot Bot commented Oct 1, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This PR adds a CodeRabbit configuration file for automated code reviews. The YAML structure is valid, contains no security vulnerabilities, and appears properly configured for the repository's tech stack (CUDA C++ kernels, Python tools, shell scripts, and CI workflows). The configuration appropriately enables relevant linters (ruff, shellcheck, actionlint, yamllint, markdownlint) and sets up non-blocking reviews with the "chill" profile. No merge-blocking issues identified.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@codeant-ai

codeant-ai Bot commented Oct 1, 2026

Copy link
Copy Markdown

CodeAnt Nitpicks

1 code suggestion

1. This comment says the configuration was not pushed, but this committed file is the active repository review policy and the statement is false.

Comment mismatch · .coderabbit.yaml:2

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 3 potential issues.

Devin Review

Comment thread .coderabbit.yaml
- path: kernels/**/CMakeLists.txt
instructions: CMake must keep configuring on a CPU-only host with `cmake -S kernels -B build/kernels-cpu -DBKL_ENABLE_CUDA=OFF`; every CUDA-only target or `find_package(CUDAToolkit)` must sit behind `BKL_ENABLE_CUDA`.
- path: '{tools,kernels/tools}/**/*.py'
instructions: 'Python 3 (system python3 in CI). CI gate: `python3 tools/check_*.py` and `tools/test_*.py`. Keep code compatible with the declared Python floor. The NVML/f0 tooling must run without a GPU using the fakes in `tools/nvml_fakes.py`; do not make hosted checks depend on live hardware.'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Python gate instructions differ from CI

The stated python3 tools/check_*.py gate passes expanded filenames to one script. Hosted CI runs individual checks, some with arguments. Update the guidance to name the actual commands.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread .coderabbit.yaml
@@ -0,0 +1,38 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Review configuration schedules GPU validation

GPU change detection classifies this new configuration as an unknown file. A same-repository PR therefore schedules a self-hosted GPU run; confirm that this is intended for review-only changes.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread .coderabbit.yaml
@@ -0,0 +1,38 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# Draft CodeRabbit config for rmems/blackwell-kernel-lab (generated locally, not pushed).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Configuration comment describes an unpublished draft

The committed configuration still says “generated locally, not pushed.” Remove that draft note before merging so readers do not mistake the active configuration for a local file.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

4 issues found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".coderabbit.yaml">

<violation number="1" location=".coderabbit.yaml:1">
P3: Exclude `.coderabbit.yaml` from GPU change detection so a review-configuration-only PR does not schedule the self-hosted GPU job.</violation>

<violation number="2" location=".coderabbit.yaml:2">
P3: The header comment says this config was "generated locally, not pushed", but this PR is exactly what pushes the file into the repo. Update the comment so it doesn't describe the file's own committed state as false; dropping the "Draft" label is worth doing too since this becomes the active config.</violation>

<violation number="3" location=".coderabbit.yaml:15">
P2: These path instructions use inline backticks, which CodeRabbit documents as illegal characters that can break path-instruction processing. Remove the backticks from every `instructions` value so the configured guidance is applied.</violation>

<violation number="4" location=".coderabbit.yaml:19">
P3: Replace the wildcard examples with the individual Python check commands from CI; `python3 tools/check_*.py` runs only the first matching script and passes the remaining paths as arguments.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .coderabbit.yaml
- '!results/**'
path_instructions:
- path: kernels/**/*.cu
instructions: CUDA kernels (Blackwell sm_120 target). Check every device allocation, copy, launch and stream call for error checking; bounds and grid/block math; races and missing `__syncthreads()`; host/device pointer confusion; and that timing code synchronizes before reading events. These only build on the self-hosted GPU runner, so reason about correctness carefully rather than assuming CI caught it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: These path instructions use inline backticks, which CodeRabbit documents as illegal characters that can break path-instruction processing. Remove the backticks from every instructions value so the configured guidance is applied.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .coderabbit.yaml, line 15:

<comment>These path instructions use inline backticks, which CodeRabbit documents as illegal characters that can break path-instruction processing. Remove the backticks from every `instructions` value so the configured guidance is applied.</comment>

<file context>
@@ -0,0 +1,38 @@
+  - '!results/**'
+  path_instructions:
+  - path: kernels/**/*.cu
+    instructions: CUDA kernels (Blackwell sm_120 target). Check every device allocation, copy, launch and stream call for error checking; bounds and grid/block math; races and missing `__syncthreads()`; host/device pointer confusion; and that timing code synchronizes before reading events. These only build on the self-hosted GPU runner, so reason about correctness carefully rather than assuming CI caught it.
+  - path: kernels/**/CMakeLists.txt
+    instructions: CMake must keep configuring on a CPU-only host with `cmake -S kernels -B build/kernels-cpu -DBKL_ENABLE_CUDA=OFF`; every CUDA-only target or `find_package(CUDAToolkit)` must sit behind `BKL_ENABLE_CUDA`.
</file context>

Comment thread .coderabbit.yaml
@@ -0,0 +1,38 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# Draft CodeRabbit config for rmems/blackwell-kernel-lab (generated locally, not pushed).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3: The header comment says this config was "generated locally, not pushed", but this PR is exactly what pushes the file into the repo. Update the comment so it doesn't describe the file's own committed state as false; dropping the "Draft" label is worth doing too since this becomes the active config.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .coderabbit.yaml, line 2:

<comment>The header comment says this config was "generated locally, not pushed", but this PR is exactly what pushes the file into the repo. Update the comment so it doesn't describe the file's own committed state as false; dropping the "Draft" label is worth doing too since this becomes the active config.</comment>

<file context>
@@ -0,0 +1,38 @@
+# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
+# Draft CodeRabbit config for rmems/blackwell-kernel-lab (generated locally, not pushed).
+language: en-US
+reviews:
</file context>
Suggested change
# Draft CodeRabbit config for rmems/blackwell-kernel-lab (generated locally, not pushed).
# CodeRabbit config for rmems/blackwell-kernel-lab (generated locally).

Comment thread .coderabbit.yaml
- path: kernels/**/CMakeLists.txt
instructions: CMake must keep configuring on a CPU-only host with `cmake -S kernels -B build/kernels-cpu -DBKL_ENABLE_CUDA=OFF`; every CUDA-only target or `find_package(CUDAToolkit)` must sit behind `BKL_ENABLE_CUDA`.
- path: '{tools,kernels/tools}/**/*.py'
instructions: 'Python 3 (system python3 in CI). CI gate: `python3 tools/check_*.py` and `tools/test_*.py`. Keep code compatible with the declared Python floor. The NVML/f0 tooling must run without a GPU using the fakes in `tools/nvml_fakes.py`; do not make hosted checks depend on live hardware.'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3: Replace the wildcard examples with the individual Python check commands from CI; python3 tools/check_*.py runs only the first matching script and passes the remaining paths as arguments.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .coderabbit.yaml, line 19:

<comment>Replace the wildcard examples with the individual Python check commands from CI; `python3 tools/check_*.py` runs only the first matching script and passes the remaining paths as arguments.</comment>

<file context>
@@ -0,0 +1,38 @@
+  - path: kernels/**/CMakeLists.txt
+    instructions: CMake must keep configuring on a CPU-only host with `cmake -S kernels -B build/kernels-cpu -DBKL_ENABLE_CUDA=OFF`; every CUDA-only target or `find_package(CUDAToolkit)` must sit behind `BKL_ENABLE_CUDA`.
+  - path: '{tools,kernels/tools}/**/*.py'
+    instructions: 'Python 3 (system python3 in CI). CI gate: `python3 tools/check_*.py` and `tools/test_*.py`. Keep code compatible with the declared Python floor. The NVML/f0 tooling must run without a GPU using the fakes in `tools/nvml_fakes.py`; do not make hosted checks depend on live hardware.'
+  - path: '**/*.sh'
+    instructions: Shell scripts. Must pass shellcheck; quote expansions and never echo secrets or tokens. `kernels/tools/check_compute_sanitizer_runner.sh` runs in CPU CI; keep it runnable without CUDA.
</file context>
Suggested change
instructions: 'Python 3 (system python3 in CI). CI gate: `python3 tools/check_*.py` and `tools/test_*.py`. Keep code compatible with the declared Python floor. The NVML/f0 tooling must run without a GPU using the fakes in `tools/nvml_fakes.py`; do not make hosted checks depend on live hardware.'
instructions: 'Python 3 (system python3 in CI). Follow the individual Python check commands and arguments in `.github/workflows/ci-cpu.yml`. Keep code compatible with the declared Python floor. The NVML/f0 tooling must run without a GPU using the fakes in `tools/nvml_fakes.py`; do not make hosted checks depend on live hardware.'

Comment thread .coderabbit.yaml
@@ -0,0 +1,38 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3: Exclude .coderabbit.yaml from GPU change detection so a review-configuration-only PR does not schedule the self-hosted GPU job.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .coderabbit.yaml, line 1:

<comment>Exclude `.coderabbit.yaml` from GPU change detection so a review-configuration-only PR does not schedule the self-hosted GPU job.</comment>

<file context>
@@ -0,0 +1,38 @@
+# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
+# Draft CodeRabbit config for rmems/blackwell-kernel-lab (generated locally, not pushed).
+language: en-US
</file context>

@rmems

rmems commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai Please address all of the review comments and PR comments on this PR (including Cubic's) by committing fixes to this branch. Keep request_changes_workflow: false and fail_commit_status: false, and keep the file valid against schema.v2.json.

@coderabbitai

coderabbitai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
printf '\n=== Configuration outline ===\n'
ast-grep outline .coderabbit.yaml || true
printf '\n=== Configuration ===\n'
cat -n .coderabbit.yaml
printf '\n=== Review comments ===\n'
gh api --paginate repos/rmems/blackwell-kernel-lab/pulls/63/comments --jq '.[] | {id, user: .user.login, path, line, body, html_url, in_reply_to_id}'
printf '\n=== Reviews ===\n'
gh api --paginate repos/rmems/blackwell-kernel-lab/pulls/63/reviews --jq '.[] | {id, user: .user.login, state, body, html_url}'
printf '\n=== PR comments ===\n'
gh api --paginate repos/rmems/blackwell-kernel-lab/issues/63/comments --jq '.[] | {id, user: .user.login, body, html_url}'

Length of output: 34047


@rmems I found four distinct issues across Cubic’s, Devin’s, and CodeAnt’s comments. I’ll route the fixes through the coding workflow for commits to this PR branch.

  • Replace the stale draft header in .coderabbit.yaml.
  • Remove backticks from all path instruction values.
  • Replace the Python wildcard guidance with the actual CI commands and arguments.
  • Exclude .coderabbit.yaml from GPU change detection and add regression coverage.
  • Preserve request_changes_workflow: false and fail_commit_status: false.
  • Validate the updated configuration against schema.v2.json.

  • 📌 Create a pull request with these changes

You are interacting with an AI system.

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

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant