Skip to content

chore: config for gemini code review bot#1334

Open
leonardmq wants to merge 3 commits intomainfrom
leonard/kil-604-chore-gemini-code-assist-guidelines
Open

chore: config for gemini code review bot#1334
leonardmq wants to merge 3 commits intomainfrom
leonard/kil-604-chore-gemini-code-assist-guidelines

Conversation

@leonardmq
Copy link
Copy Markdown
Collaborator

@leonardmq leonardmq commented Apr 23, 2026

What does this PR do?

Add styleguide for Gemini code review bot; and config.yaml:

Also added a note to prevent .agents/ from complaining about @pytest.mark.asyncio decorator missing on async tests, since this is optional.

Checklists

  • Tests have been run locally and passed
  • New tests have been added to any work in /lib

Summary by CodeRabbit

  • Documentation
    • Clarified code review and style guides: async Python tests no longer require explicit asyncio marks, and UI review guidance links reorganized.
  • Chores
    • Updated tool configuration to add new ignore patterns and explicitly enable memory settings.
  • CI
    • Adjusted debug-content checks to exclude internal tooling directories from TODO/print scanning.

@leonardmq leonardmq requested a review from scosman April 23, 2026 05:51
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3e7c1135-2f18-43de-bdbf-3e1595ed6aa6

📥 Commits

Reviewing files that changed from the base of the PR and between 91b5d9e and 154a524.

📒 Files selected for processing (1)
  • .gemini/styleguide.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .gemini/styleguide.md

📝 Walkthrough

Walkthrough

Update documentation and CI/config: clarify pytest async-test handling, relocate frontend guide links into .agents/, add a .gemini style guide, adjust .gemini/config.yaml to ignore a client tree and enable memory, and exclude .gemini from debug-detector scans.

Changes

Cohort / File(s) Summary
Code Review Docs
.agents/code_review_guidelines.md
Clarifies that async tests do not require @pytest.mark.asyncio due to global pytest config; updates UI/frontend guide links to point at .agents/ locations.
Gemini Style & Config
.gemini/styleguide.md, .gemini/config.yaml
Adds a new Kiln styleguide delegating review guidance to .agents/*; adds ignore_patterns to exclude the kiln_ai_server_client tree and sets memory_config.disabled: false.
CI Debug Detector
.github/workflows/debug_detector.yml
Updates grep exclusions so .gemini is ignored when scanning for print( and TODO/FIXME markers.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 I hop through docs with a curious nose,
Moved guides and rules where clarity grows.
Async tests now run without a mark,
Config keeps memory and hides a dark.
Hooray — tidy paths and a springtime spark!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: config for gemini code review bot' accurately and concisely captures the main purpose of the changes—configuring the Gemini code review bot with styleguide and config files.
Description check ✅ Passed The description addresses the core question of what the PR does, documents the configuration changes with external reference links, and includes a completed checklist; however, it omits the 'Related Issues' section from the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch leonard/kil-604-chore-gemini-code-assist-guidelines

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 and usage tips.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the code review guidelines to clarify that @pytest.mark.asyncio is not required and corrects the paths for frontend documentation. Feedback identifies a missing config.yaml file mentioned in the PR description and notes inconsistent indentation in the updated list items.

Comment thread .agents/code_review_guidelines.md
Comment thread .agents/code_review_guidelines.md
- `./frontend_design_guide.md`
- `./frontend_controls.md`
- `.agents/frontend_design_guide.md`
- `.agents/frontend_controls.md`
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The bot suggested the path should be from the root. Not sure - @tawnymanticore ?

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
.gemini/styleguide.md (1)

9-10: Polish spelling/grammar to reduce review noise.

There are a few doc typos (“self explanitory”, “non obvious”, “where ever”, “modifing”, “a SDK”, “a input”, missing period after etc.). This is low risk but worth cleaning up in a style guide.

Also applies to: 16-18, 27-27, 42-45

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.gemini/styleguide.md around lines 9 - 10, The style guide contains several
spelling/grammar typos that should be corrected to reduce review noise; update
the listed phrases ("self explanitory" -> "self-explanatory", "non obvious" ->
"non-obvious", "where ever" -> "wherever", "modifing" -> "modifying", "a SDK" ->
"an SDK", "a input" -> "an input") and add the missing period after "etc." and
any similar punctuation errors, and sweep the document to fix the same issues
where noted (other occurrences of these phrases in the file).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.gemini/styleguide.md:
- Line 3: Change the third-line heading "### Issues to watch for" to an H2 by
replacing the triple-hash with double-hash (i.e., "## Issues to watch for") so
the document's heading sequence increments from H1 to H2 and resolves the
markdownlint MD001 warning; update the heading text in .gemini/styleguide.md
where the "### Issues to watch for" heading appears.
- Line 13: The file contains the literal token "`TODO`" (and mentions "`FIXME`")
which triggers the CI Debug Detector and blocks merging; update the offending
sentence that mandates "TODO comments" so it does not include the exact
substring TODO/FIXME (e.g., reword to "comments requiring follow-up" or "items
to resolve before final PR") and ensure the phrase in the
`.gemini/styleguide.md` that currently reads "`TODO` comments: before the final
PR, all `TODO` comments must be resolved..." is rewritten to avoid those exact
tokens while preserving the intent that outstanding work must be resolved before
final PR.

---

Nitpick comments:
In @.gemini/styleguide.md:
- Around line 9-10: The style guide contains several spelling/grammar typos that
should be corrected to reduce review noise; update the listed phrases ("self
explanitory" -> "self-explanatory", "non obvious" -> "non-obvious", "where ever"
-> "wherever", "modifing" -> "modifying", "a SDK" -> "an SDK", "a input" -> "an
input") and add the missing period after "etc." and any similar punctuation
errors, and sweep the document to fix the same issues where noted (other
occurrences of these phrases in the file).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a80bf231-a7a8-4085-bb04-d4c96d1d96cf

📥 Commits

Reviewing files that changed from the base of the PR and between 41ee2ca and 0b5f8d0.

📒 Files selected for processing (3)
  • .agents/code_review_guidelines.md
  • .gemini/config.yaml
  • .gemini/styleguide.md

Comment thread .gemini/styleguide.md Outdated
Comment thread .gemini/styleguide.md Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

📊 Coverage Report

Overall Coverage: 92%

Diff: origin/main...HEAD

No lines with coverage information in this diff.


Comment thread .gemini/styleguide.md
@@ -0,0 +1,47 @@
# Kiln Code Review Guidelines
Copy link
Copy Markdown
Collaborator

@scosman scosman Apr 23, 2026

Choose a reason for hiding this comment

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

can we do this without duplication of .agents/code_review_guidelines.md? It'll get out of sync if we duplicate. I've been trying to migrate to 1 source of truth and scripts like setup_claude.sh

Maybe even just "Read the core review guidelines at ...."

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

True, did not really think of that but I assume it can indeed go read the other files. Just updated, we will see if it does

Comment thread .gemini/config.yaml
@@ -0,0 +1,5 @@
ignore_patterns:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hmmmm. I have another PR to stop adding more top level cruft. Will is respect any other DIR? .agents/.gemini? Configurable?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I can't find a way. Still think change is worth it, gemini CR is great. But make the one a pointer so no dupe??

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Did not see a way in the docs but also did not look that much; and if no way, probably not worth building our own layer on top to spawn the configs. Worst case if it messes up we find out quickly and can fix easily.

The main intent with this one was to get it to stop dropping billions of comments about needing @pytest.mark.asyncio on all the test cases

@leonardmq leonardmq requested a review from scosman April 23, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants