build: Import most of graham-code-review - #191
Conversation
Merge in to `switchyard-rust-review` skill. Thanks Ayush! Signed-off-by: Graham King <grahamk@nvidia.com>
WalkthroughThe ChangesRust Review Skill
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.agents/skills/switchyard-rust-review/SKILL.md (1)
101-110: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winKeep the workspace test gate mandatory.
The repository’s testing guidance defines
cargo test --workspaceas the Rust workspace gate, but this section makes it conditional and defaults tocargo test -p <affected-crate>. Keep the package test as an optional fast check, then require the workspace test for review validation.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.agents/skills/switchyard-rust-review/SKILL.md around lines 101 - 110, Update the testing commands in the review validation guidance so cargo test --workspace is mandatory for Rust changes, while cargo test -p <affected-crate> remains an optional narrow fast check. Preserve the existing formatting, clippy, Python-test, and reporting guidance, and retain the workspace test requirement for shared or cross-crate changes.
🧹 Nitpick comments (1)
.agents/skills/switchyard-rust-review/SKILL.md (1)
53-55: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winScope
parking_lot::RwLockto synchronous code. In async paths, a contendedparking_lotlock blocks the executor thread; keeptokio::sync::RwLockthere and useparking_lotonly for synchronous critical sections.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.agents/skills/switchyard-rust-review/SKILL.md around lines 53 - 55, Revise the locking guidance in the Rust review skill to scope parking_lot::RwLock to synchronous critical sections only. Explicitly retain tokio::sync::RwLock for async paths where contention could block the executor, while preserving the existing no-.await-across-lock condition for synchronous usage.Source: MCP tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.agents/skills/switchyard-rust-review/SKILL.md:
- Around line 38-40: Update the review-target identification step in SKILL.md to
inspect the PR diff rather than relying on bare git diff; use the
platform-provided diff or an explicit base-to-HEAD comparison such as
<base>...HEAD so committed PR changes are included, while retaining git status
and diff-stat context as appropriate.
---
Outside diff comments:
In @.agents/skills/switchyard-rust-review/SKILL.md:
- Around line 101-110: Update the testing commands in the review validation
guidance so cargo test --workspace is mandatory for Rust changes, while cargo
test -p <affected-crate> remains an optional narrow fast check. Preserve the
existing formatting, clippy, Python-test, and reporting guidance, and retain the
workspace test requirement for shared or cross-crate changes.
---
Nitpick comments:
In @.agents/skills/switchyard-rust-review/SKILL.md:
- Around line 53-55: Revise the locking guidance in the Rust review skill to
scope parking_lot::RwLock to synchronous critical sections only. Explicitly
retain tokio::sync::RwLock for async paths where contention could block the
executor, while preserving the existing no-.await-across-lock condition for
synchronous usage.
🪄 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: Enterprise
Run ID: ae3525d3-6f66-4821-b452-f665185f2315
📒 Files selected for processing (1)
.agents/skills/switchyard-rust-review/SKILL.md
Merge in to
switchyard-rust-reviewskill.Thanks Ayush!
Summary by CodeRabbit