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 20 low-value CLI and runtime tests - #34445
Remove 20 low-value authored test registrations across eight CLI/runtime suites (39 → 19), including the entire resume-capability inventory suite. Drop copied config/source strings, tests of private fixture helpers, duplicate launcher/installer cases, and setup that never reaches its claimed boundary. Remove the deleted suite’s stale timing entry.
Keep installed CLI/ASAR loading, real launcher argv/environment/signal and listener cleanup, AppImage identity fences, installer ownership refusal/migration, hook render churn, shell capability negotiation, and artifact preview/retry behavior. Correct the retained stale-grant read fixture to use a text path and the producer’s complete text-result shape; PNG paths are refused by the real text producer.
Validation: formatting, lint, AST declaration/callback/wrapper checks, unit discovery and runtime routing passed using isolated static tools. The packaged-launcher alias and parameterized registrations are counted once per authored declaration. Exact flaky-pattern scans found no baseline-count change. Runtime validation is through this PR’s CI; no local tests, installs, builds, or app launches were run. No production code changes. Net 368 fewer lines.
The changes remove selected tests from the CLI and runtime suites. The terminal-artifact stale-grant test now uses /tmp/out.txt and expects a text response. The change also removes the timing entry for the deleted host-authority capability test suite.
Priority: Low
Merge Risk: Minimal · up to f8b97
The change is mergeable, but restoring focused checks for packaged skill guides, Linux serve routing, terminal parameter projection, and resume capability routing would reduce future regression risk.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description clearly explains the test removals, retained coverage, validation, and lack of production changes. However, it omits required template content, including the Linked Issue, Visual Proof…
Add the missing template sections and information. Include an actual issue link after "Fixes #", state "N/A" with a reason for Visual Proof because there are no UI changes, complete the Testing and Checklist items, address cross-platform an…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: removing 20 low-value CLI and runtime tests.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
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. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files.
Full details: Description check
Explanation
The description clearly explains the test removals, retained coverage, validation, and lack of production changes. However, it omits required template content, including the Linked Issue, Visual Proof or an explicit N/A statement, checklist status, cross-platform impact notes, and the required testing checklist details.
Resolution
Add the missing template sections and information. Include an actual issue link after "Fixes #", state "N/A" with a reason for Visual Proof because there are no UI changes, complete the Testing and Checklist items, address cross-platform and compatibility considerations, and complete or explicitly mark the remaining required sections as applicable or not applicable.
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 retained test creates an ASAR directly and applies only builderConfig.asarUnpack. It does not check builderConfig.files or invoke a packaged skills get command. A future change can reinclude source Markdown while the retained tests still pass.
Suggested fix
describe('packaged CLI assets', () => {
+ it('ships embedded skill guides with the CLI instead of source Markdown', () => {+ expect(builderConfig.asarUnpack).toContain('out/cli/**')+ expect(builderConfig.files).toContain('!skill-guides{,/**/*}')+ })+
it('loads worktree link validation from the installed CLI', async () => {
Retain a focused packaged Linux serve forwarding test.
serve --recipe-json --project-root ... is a supported CLI route. The Linux launcher must pass this route to app.asar.unpacked/out/cli/index.js in Node mode. The retained --help test does not detect a regression that redirects only serve to AppRun, or changes its arguments.
Retain the plain-terminal parameter projection assertion.
createWebRuntimeSessionTerminalResult reaches the non-agent path and passes buildPlainCreateTerminalParams to session.tabs.createTerminal. The retained tests cover only resolveCreateTerminalShellParams, so they do not detect regressions in the builder's shell, select, or navigation projection.
Preserve behavior coverage for every gated resume agent.
Deleting this suite removes the only exact coverage for the agent-to-capability mapping. The Record constraint checks keys and accepts any capability string. Retained routing tests cover only a subset, so a wrong value for opencode2, dsh, zcode, kiro, or hermes can compile and go undetected. That error can make an older host attempt structured resume and return invalid_argument instead of using the legacy path.
Keep the coverage as a routing matrix that asserts structured versus legacy delivery. Do not restore a flag-only inventory test.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 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 20 low-value authored test registrations across eight CLI/runtime suites (39 → 19), including the entire resume-capability inventory suite. Drop copied config/source strings, tests of private fixture helpers, duplicate launcher/installer cases, and setup that never reaches its claimed boundary. Remove the deleted suite’s stale timing entry.
Keep installed CLI/ASAR loading, real launcher argv/environment/signal and listener cleanup, AppImage identity fences, installer ownership refusal/migration, hook render churn, shell capability negotiation, and artifact preview/retry behavior. Correct the retained stale-grant read fixture to use a text path and the producer’s complete text-result shape; PNG paths are refused by the real text producer.
Validation: formatting, lint, AST declaration/callback/wrapper checks, unit discovery and runtime routing passed using isolated static tools. The packaged-launcher alias and parameterized registrations are counted once per authored declaration. Exact flaky-pattern scans found no baseline-count change. Runtime validation is through this PR’s CI; no local tests, installs, builds, or app launches were run. No production code changes. Net 368 fewer lines.