Repository navigation
ROSAENG-67544: Remove ocm-cli dependency from ocm-common - #169
andreadecorte merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift-online/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe changes remove two module dependencies, switch the keyring environment-variable constant source, and make the connection builder use standard verbosity for its default logger. New tests cover default and caller-supplied loggers. ChangesOCM dependency and logger updates
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The dependency cleanup and keyring substitution show no concrete integration failure. Callers needing debug verbosity can provide a logger; no material merge-blocking risk is established. 🚥 Pre-merge checks | ✅ 9 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (9 passed)
Full details: Ai-AttributionExplanation AI use is mentioned in the pull-request description, which labels the content “AI-generated.” The reviewed commit includes
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
- Replaced ocm-cli/pkg/properties.KeyringEnvKey with local consts.KeyringEnvKey - Removed ocm-cli/pkg/debug dependency from connection builder - Default logger now uses glog.Level(1); callers use WithLogger() for debug logging - Added tests for connection builder default logger behavior - Ran go mod tidy to remove ocm-cli from go.mod Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
c0afff2 to
5f310e5
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Prow setup ongoing, will merge this PR manually |
Summary
Remove the circular module dependency on
github.com/openshift-online/ocm-clifromocm-common. A shared library should not depend on its CLI consumer.This dependency was introduced when the config and connection-builder packages were migrated from ocm-cli (commit 97a7ba6).
Changes
pkg/ocm/config/config.gogithub.com/openshift-online/ocm-cli/pkg/propertieswithgithub.com/openshift-online/ocm-common/pkg/ocm/constsproperties.KeyringEnvKey→consts.KeyringEnvKey(the constant already existed locally with the same value"OCM_KEYRING")pkg/ocm/connection-builder/connection.gogithub.com/openshift-online/ocm-cli/pkg/debuggetLogger()to always useglog.Level(1)as the default log levelWithLogger()API to provide their own loggerpkg/ocm/connection-builder/connection_test.go(new)WithLogger()overridego.mod/go.sumgo mod tidyto removegithub.com/openshift-online/ocm-clifrom dependenciesValidation
grep -r "ocm-cli" --include="*.go" .— no matchesgrep "ocm-cli" go.mod— not presentmake test— all 26 test packages passJira
ROSAENG-67544
AI-generated. Review for accuracy.
@andreadecorte requested in Slack thread
Summary by CodeRabbit