(janitor/test-prune): remove extension tests that only pin constants and dead code - #6677
Open
kilo-code-bot[bot] wants to merge 1 commit into
Open
kilo-code-bot[bot] wants to merge 1 commit into
kilo-code-bot[bot] wants to merge 1 commit into
Conversation
Remove tests that cannot detect a production regression: - request-order.test.ts: isLatestRequest is `a === b` with no callers, so the test re-asserts JavaScript equality on dead code. - settings-dialog-state.test.ts: asserts a Jotai `atom(false)` default, restating the literal rather than exercising repository logic. - agent-context-compaction.test.ts "tuning constants": asserts tuning constants equal their own literals. - workflow-script-diff.test.ts "pins the exported context and ceiling constants": asserts DIFF_CONTEXT_LINES/MAX_DIFF_LINES equal their literals; behavioral diff coverage remains in the same file.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Test-only pruning of four extension test files; no production code touched. Verified that Files Reviewed (4 files)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Prunes four low-value tests in the browser extension that add maintenance churn without detecting a plausible production regression. All changes are test-only; no production code is touched.
Removed and surviving coverage
apps/extension/src/shared/request-order.test.ts(deleted)isLatestRequest(1, 2) === falseandisLatestRequest(2, 2) === true.isLatestRequestis(a, b) => a === b, and a repo-wide search shows it has zero production callers — it is dead code. The test re-asserts JavaScript===on a function nothing uses, so no production behavior change can fail it.apps/extension/entrypoints/sidepanel/settings-dialog-state.test.ts(deleted)store.get(settingsDialogOpenAtom)defaults tofalse.atom(false). The test restates the literal initializer through Jotai; it verifies Jotai's default-value behavior, not repository-owned logic.apps/extension/src/shared/agent-context-compaction.test.ts—describe('tuning constants')block (removed)KEEP_RECENT_EXCHANGES === 2,KEEP_RECENT_EXCHANGES_MANUAL === 0,SUMMARY_PREFIX.length > 0.splitEventsForCompaction,hasCompactableHistory, andrenderEventsAsTranscript(includingKEEP_RECENT_EXCHANGES_MANUALas an argument), which exercise what these constants drive.apps/extension/entrypoints/sidepanel/workflow-script-diff.test.ts—pins the exported context and ceiling constantsblock (removed)DIFF_CONTEXT_LINES === 3,MAX_DIFF_LINES === 1200.buildUnifiedScriptDiff, includingMAX_DIFF_LINESvia the{ length: MAX_DIFF_LINES + 1 }too-large inputs.Verification
pnpm --filter kilo-extension test(focused: the two edited files) — 21 passed.oxlint(type-aware, extension config) on changed files — 0 warnings, 0 errors.tsc --noEmitfor the extension package — passes (afterpnpm --filter @kilocode/trpc build).oxfmt apps/extension— formatted;git diffconfirms only the four intended test files changed.