Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
inheritance: true
knowledge_base:
linked_repositories:
- repository: 'codeready-toolchain/toolchain-common'
instructions: >
toolchain-common contains shared controllers, utilities, and libraries used by toolchain-e2e.

When reviewing toolchain-e2e changes:
- Check if toolchain-e2e is using deprecated or outdated patterns from toolchain-common when newer/better utilities exist.
- Verify behavioral assumptions — if toolchain-e2e expects specific return values or side effects from toolchain-common functions, check if that behavior is actually implemented.
- If toolchain-e2e duplicates logic that already exists in toolchain-common (pkg/cluster, pkg/condition, pkg/configuration, pkg/status), suggest using the shared implementation instead.
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Potential stale package reference in instructions (pkg/condition).

The guidance lists pkg/condition, but the linked-repo context points to condition helpers under pkg/status/componentconditions.go. This may misdirect cross-repo review checks.

✏️ Suggested wording update
-        - If toolchain-e2e duplicates logic that already exists in toolchain-common (pkg/cluster, pkg/condition, pkg/configuration, pkg/status), suggest using the shared implementation instead.
+        - If toolchain-e2e duplicates logic that already exists in toolchain-common (pkg/cluster, pkg/configuration, pkg/status, including status condition helpers), suggest using the shared implementation instead.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- If toolchain-e2e duplicates logic that already exists in toolchain-common (pkg/cluster, pkg/condition, pkg/configuration, pkg/status), suggest using the shared implementation instead.
- If toolchain-e2e duplicates logic that already exists in toolchain-common (pkg/cluster, pkg/configuration, pkg/status, including status condition helpers), suggest using the shared implementation instead.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.coderabbit.yaml at line 11, The instruction references a stale package path
`pkg/condition`; update the wording to point to the actual shared helpers
location (e.g., `pkg/status` and specifically `componentconditions.go`) so
cross-repo checks aren't misdirected. Edit the .coderabbit.yaml line that lists
`pkg/condition` to instead reference `pkg/status (componentconditions.go)` or
otherwise clarify that condition helpers live under `pkg/status`, and keep the
suggestion to prefer the shared implementation from that file when applicable.

- Flag if toolchain-e2e is making assumptions about toolchain-common's internal state or behavior that isn't documented or guaranteed.
Loading