You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remove copy inventories and redundant formatter replays - #35890
Remove tests that copy catalog entries, inspect translation call arguments, or replay the same formatter against itself. Deletes six entire copy-wrapper suites and trims four others, including the Cartesian failure-formatter replay: 28 authored test registrations (29 expanded cases) removed.
Preserves 19 registrations (24 cases) across seven suites for locale-sensitive message assembly, nested placeholder preservation, timeout parsing, diagnostic composition, provider-error precedence, discard-error paths, and stable plugin ordering. Production code is unchanged.
Validation: static registration/body/support checks, formatting, lint, and reference/routing scans passed. Full PR CI will validate the change; no local runtime tests were run.
These assertions check behavior, not just displayed words: a crashed plugin still counts as enabled, and a pending plugin needs review even without needsReconsent. The remaining sorting test cannot catch changes to either decision. Keep these assertions so later changes cannot silently break the Off switch or skip review.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
The deleted fallback tests check behavior, not copied translations. Unknown codes, inherited names such as toString, and known codes with missing values must return the host's original message. These decisions live separately in the renderer helpers, and the surviving tests do not cover them. Keep a small set of fallback assertions while removing the catalog comparisons.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Pet name rules lose testssrc/renderer/src/components/pet/pet-import-failure-text.test.ts:43▶
Deleting this suite also removes the only checks that customPetLabel translates default names but leaves user-chosen names alone. That is a separate decision from copying error strings. Keep this test, or move it to a focused customPetLabel suite.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
The changes modify renderer tests only. They remove tests for localized error messages, English fallbacks, and plugin status helpers. The native-chat tests now check failure wording across English, Spanish, French, Japanese, Korean, and Chinese.
Priority: Low
Merge Risk: Low · up to db0e7
The change weakens protection against future status and error-message regressions. It is mergeable with awareness of those coverage gaps.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description explains the main changes, rationale, preserved coverage, and validation status. However, it omits required template sections, including ELI5, Linked Issue, Visual Proof or an explicit…
Add the required template sections. Include an issue link after “Fixes #”, state “N/A” with a reason for Visual Proof because production behavior is unchanged, document testing platforms and completed checks, and complete the Notes and Chec…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the removal of redundant test coverage and copy inventories, which matches the primary changes.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.
Full details: Description check
Explanation
The description explains the main changes, rationale, preserved coverage, and validation status. However, it omits required template sections, including ELI5, Linked Issue, Visual Proof or an explicit N/A, Testing checkboxes, Notes, and Checklist items.
Resolution
Add the required template sections. Include an issue link after “Fixes #”, state “N/A” with a reason for Visual Proof because production behavior is unchanged, document testing platforms and completed checks, and complete the Notes and Checklist items.
Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
The remaining attention-order test indirectly covers only the error and pending cases. It does not cover the removed kill-list and review precedence, Stopped wording, enabled-state mapping, or direct review detection. Keep compact regression tests for these helper contracts.
The wire validator permits arbitrary messageCode values and incomplete metadata. The surviving uncoded test does not detect regressions for unknown, prototype-like, or incomplete recognized codes. Restore these focused cases so the host-message fallback remains covered.
Restore fallback coverage for returned browser-import failures.
The surviving test covers only a complete recognized code. Add cases for an absent code, an unknown code, and missing parameters for a recognized code. These returned failures can reach browserCookieImportFailureText, which must preserve the host reason. Exception-catch paths bypass this helper and do not need coverage here.
Suggested fix
it('keeps diagnostic detail verbatim', async () => {
i18n.addResourceBundle('es', 'translation', es)
await i18n.changeLanguage('es')
@@
)
expect(browserCookieImportFailureText(failed)).toContain('database is locked {{browser}}')
})
++ it('preserves the host reason for uncoded, unknown, and incomplete failures', () => {+ const reason = 'The browser import failed on the host.'++ expect(browserCookieImportFailureText({ reason })).toBe(reason)+ expect(browserCookieImportFailureText({ reason, reasonCode: 'futureCode' })).toBe(reason)+ expect(+ browserCookieImportFailureText({+ reason,+ reasonCode: 'importFailedWithLog',+ reasonParams: { browser: 'Chrome', logPath: '/tmp/diag.log' }+ })+ ).toBe(reason)+ })
})
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 192fd482-7895-42a7-86e1-aa7cf3bcbb09
Commits
Reviewing files that changed from the base of the PR and between e0f05c3 and db0e7e5.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove tests that copy catalog entries, inspect translation call arguments, or replay the same formatter against itself. Deletes six entire copy-wrapper suites and trims four others, including the Cartesian failure-formatter replay: 28 authored test registrations (29 expanded cases) removed.
Preserves 19 registrations (24 cases) across seven suites for locale-sensitive message assembly, nested placeholder preservation, timeout parsing, diagnostic composition, provider-error precedence, discard-error paths, and stable plugin ordering. Production code is unchanged.
Validation: static registration/body/support checks, formatting, lint, and reference/routing scans passed. Full PR CI will validate the change; no local runtime tests were run.