NO-JIRA: Add CLAUDE.md - #333
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds a new repository documentation file Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment Tip CodeRabbit can generate a title for your PR based on the changes.Add |
|
@sanchezl: This pull request explicitly references no jira issue. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
wangke19
left a comment
There was a problem hiding this comment.
Review Summary
Thanks for adding CLAUDE.md — the architecture section is excellent and the two-process / three-controller breakdown will be very helpful for AI-assisted development. A few issues to address:
🔴 Blocking: make update-deps-gomod does not exist
The target make update-deps-gomod is not defined in this project's Makefile or the vendored build-machinery-go. Running it produces:
make: *** No rule to make target 'update-deps-gomod'. Stop.
The available dependency-related make targets are verify-deps and update-deps-overrides. The correct way to update vendored dependencies is:
go mod tidy && go mod vendorPlease fix this before merging.
🟡 Missing: PR / Commit Conventions (Two-Commit Rule)
This project follows a two-commit PR structure (consistent with other OpenShift operators). Without this guidance, an AI assistant will commit source code, go.mod, go.sum, vendor/, and generated bindata.go all in one commit. Suggest adding a new section:
## PR / Commit Conventions
All PRs must contain exactly 2 commits:
**Commit 1 — code changes only**
Source code changes only. Exclude `go.mod`, `go.sum`, `vendor/`, and all generated files.
**Commit 2 — generated artifacts and dependencies**
All files produced by `make update` or dependency updates:
- `go.mod` and `go.sum`
- `vendor/` (kept in sync via `go mod tidy && go mod vendor`)
- `pkg/operator/v4_00_assets/bindata.go` (produced by `make update-bindata` when `bindata/v4.0.0/` changes)
Always base commits on `upstream/main`, not `origin/main`.
Before pushing, verify:
\`\`\`bash
git log --oneline upstream/main..HEAD # must show exactly 2 commits
git diff upstream/main..HEAD --name-only # confirm files land in the right commit
\`\`\`🟡 Missing: make verify in Commands
make verify runs verify-gofmt, verify-govet, and verify-generated — the standard pre-submit check. Worth adding to the Commands section so an AI knows to run it before declaring work done.
🟡 Missing: Where to add new e2e tests
The test/e2e/ directory contains both e2e.go (OTE path, active) and e2e_test.go (legacy, being phased out). Without guidance, an AI would likely add tests to the wrong file. Suggest adding to ## Testing:
New e2e tests must be added to
test/e2e/e2e.go(OTE format), nottest/e2e/e2e_test.go(legacy — being phased out).
🟡 Minor: bindata.go not identified as generated
The doc says to run make update-bindata after modifying bindata/v4.0.0/, but doesn't name the output file (pkg/operator/v4_00_assets/bindata.go). Calling it out explicitly helps an AI know never to hand-edit it and to commit it in Commit 2, not Commit 1.
ℹ️ Nit: Redundant top-level header
The # CLAUDE.md H1 heading is just the filename — consider dropping it or replacing with something descriptive like # Service CA Operator — AI Assistant Guidelines.
|
|
||
| # Update all generated files | ||
| make update | ||
|
|
There was a problem hiding this comment.
make update-deps-gomod does not exist in this project. The build-machinery-go vendored copy and the project Makefile only define verify-deps and update-deps-overrides. Running this will immediately fail with No rule to make target.
Please replace with:
# Update vendored dependencies
go mod tidy && go mod vendorThere was a problem hiding this comment.
Thanks for the review. Done.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sanchezl, wangke19 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@sanchezl: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/verified by CI |
|
@wangke19: Jira verification commands are restricted to collaborators for this repo. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/verified by @wangke19 |
|
@wangke19: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/cc @bertinatto |
Add AI assistant guidelines to help AI coding tools (Claude Code, Cursor, Copilot, etc.) understand project structure and workflows. Key sections: - Build & test commands (make targets, OTE framework) - OAuth resources (OAuthAccessToken, OAuthAuthorizeToken, User/Identity) - Token validation architecture - Code generation workflow (make update/verify) - Two-commit PR convention - Testing strategy (unit, E2E with OTE) CLAUDE.md symlinked to AGENTS.md for backwards compatibility. Reference: openshift/service-ca-operator#333
Add AI assistant guidelines to help AI coding tools (Claude Code, Cursor, Copilot, etc.) understand project structure and workflows. Key sections: - Build & test commands (make targets, OTE framework) - OAuth resources (OAuthAccessToken, OAuthAuthorizeToken, User/Identity) - Token validation architecture - Code generation workflow (make update/verify) - Two-commit PR convention - Testing strategy (unit, E2E with OTE) CLAUDE.md symlinked to AGENTS.md for backwards compatibility. Reference: openshift/service-ca-operator#333
Add AI assistant guidelines to help AI coding tools (Claude Code, Cursor, Copilot, etc.) understand project structure and workflows. Key sections: - Build & test commands (make targets, OTE framework) - OAuth resources (OAuthAccessToken, OAuthAuthorizeToken, User/Identity) - Token validation architecture - Code generation workflow (make update/verify) - Two-commit PR convention - Testing strategy (unit, E2E with OTE) CLAUDE.md symlinked to AGENTS.md for backwards compatibility. Reference: openshift/service-ca-operator#333
Add AI assistant guidelines to help AI coding tools (Claude Code, Cursor, Copilot, etc.) understand project structure and workflows. Key sections: - Build & test commands (make targets, OTE framework) - OAuth resources (OAuthAccessToken, OAuthAuthorizeToken, User/Identity) - Token validation architecture - Code generation workflow (make update/verify) - Two-commit PR convention - Testing strategy (unit, E2E with OTE) CLAUDE.md symlinked to AGENTS.md for backwards compatibility. Reference: openshift/service-ca-operator#333
Add AI assistant guidelines to help AI coding tools (Claude Code, Cursor, Copilot, etc.) understand project structure and workflows. Key sections: - Build & test commands (make targets, OTE framework) - OAuth resources (OAuthAccessToken, OAuthAuthorizeToken, User/Identity) - Token validation architecture - Code generation workflow (make update/verify) - Two-commit PR convention - Testing strategy (unit, E2E with OTE) CLAUDE.md symlinked to AGENTS.md for backwards compatibility. Reference: openshift/service-ca-operator#333
Add AI assistant guidelines to help AI coding tools (Claude Code, Cursor, Copilot, etc.) understand project structure and workflows. Key sections: - Build & test commands (make targets, OTE framework) - OAuth resources (OAuthAccessToken, OAuthAuthorizeToken, User/Identity) - Token validation architecture - Code generation workflow (make update/verify) - Two-commit PR convention - Testing strategy (unit, E2E with OTE) CLAUDE.md symlinked to AGENTS.md for backwards compatibility. Reference: openshift/service-ca-operator#333
CLAUDE.md was added in PR openshift#333 as a standalone file. PR openshift#362 later added AGENTS.md (with the same content restructured) plus ARCHITECTURE.md and CONTRIBUTING.md, which together cover everything in the original CLAUDE.md. Replace the standalone file with a symlink so Claude Code discovers the same content as other AI tools reading AGENTS.md — one source of truth, zero duplication.
Add CLAUDE.md with development and architecture guidelines.