Fix typos and remove literal quotes in error messages - #276
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughCompare error messages now use corrected quoting and spelling. Matching golden files reflect the updated output. Cluster-side missing inline-diff values remain non-error. ChangesCompare error messages
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
c12b2de to
edd237d
Compare
edd237d to
c6f72ee
Compare
c6f72ee to
c051d1b
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@pkg/compare/compare.go`:
- Around line 1070-1075: The inline-diff preprocessing in compare.go is treating
any false found state from NestedString as a missing field before checking the
returned error, which can mask malformed cluster data. Update the logic around
clusterValue, exist, and err so the error from NestedString is handled first and
reported with the existing fmt.Errorf path in the inline-diff preprocessing
block, and only continue when the field is truly absent with no error.
🪄 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: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 14e0a7d4-53c5-4e75-9fd6-b1e3330053ee
📒 Files selected for processing (5)
pkg/compare/compare.gopkg/compare/testdata/NoInput/localerr.goldenpkg/compare/testdata/ReferenceConfigFileDoesntExist/localerr.goldenpkg/compare/testdata/ReferenceV2PerFieldMatcherValidation/localpathNotItTemplateerr.goldenpkg/compare/testdata/UserOverride/localfailOutputerr.golden
✅ Files skipped from review due to trivial changes (4)
- pkg/compare/testdata/NoInput/localerr.golden
- pkg/compare/testdata/ReferenceConfigFileDoesntExist/localerr.golden
- pkg/compare/testdata/ReferenceV2PerFieldMatcherValidation/localpathNotItTemplateerr.golden
- pkg/compare/testdata/UserOverride/localfailOutputerr.golden
c051d1b to
3fd8eec
Compare
Fix spelling errors in error strings ("occurered" → "occurred",
"acces" → "access", "entires" → "entries") and remove unnecessary
escaped literal quotes wrapping two error constants. Update golden
test files to match.
Co-authored-by: Cursor <cursoragent@cursor.com>
3fd8eec to
05b4ba6
Compare
|
@sebrandon1: 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. |
Summary
noRefFileWasPassedandrefFileNotExistsErrorerror constants that were appearing in user-facing outputJira: https://redhat.atlassian.net/browse/CNF-23706
Summary by CodeRabbit