Skip to content

test: remove seven low-value cases and repair behavioral assertions - #33453

Merged
OrcaWin merged 3 commits into
mainfrom
audit/test-value-batch319
Oct 25, 2026
Merged

OrcaWin merged 3 commits into
mainfrom
audit/test-value-batch319

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 28 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​107 $\color{#cf222e}{\Huge{\mathbf{−}}}$​198 $\color{#cf222e}{\Huge{\mathbf{−}}}$​91
Prod 1 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1

Remove seven low-value inventory, local timeout-model, and scheduler-timing tests. Repair behavioral assertions and fixtures for agent arguments, canonical workspace paths, catalog loading, cache retirement, host readiness, automation search, and keyboard wire tags. Narrow titles to the behavior exercised.

This test-only change audits 120 sources and repairs 45 authored cases across 28 changed files. Three sources changed upstream during the audit and received a fresh review of the current Kimi trust implementation.

Validation: combined original suite 1,742 passed / 4 skipped; candidate 1,739 passed / 4 skipped, with exact expected test names and statuses. Node, CLI, and web typechecks passed for both versions; candidate formatting and changed-code quality passed. Targeted production-fault controls remain bound to their reviewed source versions. Native platform and opt-in external CLI cases retain their explicit skips.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent 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: 09f32f06-2a36-44c3-a36b-b9b9a3ae295b
Commits

Reviewing files that changed from the base of the PR and between 1e23135 and bcef137.

Files selected for processing: 1
  • config/flaky-test-pattern-baseline.txt
Files with no reviewable changes: 1
  • config/flaky-test-pattern-baseline.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

Walkthrough

This pull request updates tests across startup, vault search, automation, and shared modules. It revises test descriptions, tightens path and search assertions, updates fixtures, and adds parameterized navigation cases. It also removes several tests and checks, including assertions for diagnostics contents, refresh timing, and selected catalog and agent details. The supplied summaries report no production-code changes.

Priority: Low

Merge Risk: Minimal · up to bcef1

The baseline now matches the affected test. No actionable merge-blocking risk remains from this change, subject to normal checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the scope and validation, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, Testing checkboxes, AI Disclosure, Review, boundary co… Add the required template sections. Include an issue link, state N/A with a reason for Visual Proof if there is no UI change, document testing platforms and completed checks, complete applicable checkboxes, and address security, cross-platf…
Docstring Coverage Warning Docstring coverage is 18.18% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 26 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main changes: removing seven low-value tests and repairing behavioral assertions.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the scope and validation, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, Testing checkboxes, AI Disclosure, Review, boundary confirmation, Notes, and Checklist.

Resolution

Add the required template sections. Include an issue link, state N/A with a reason for Visual Proof if there is no UI change, document testing platforms and completed checks, complete applicable checkboxes, and address security, cross-platform, SSH, compatibility, and performance considerations.

  • 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


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: 80f16da9-b68a-435a-a2ac-4d9f821a4c12
Commits

Reviewing files that changed from the base of the PR and between 5447a26 and 1e23135.

Files selected for processing: 28
  • src/main/agent-launch/startup-agent-worktree-create.test.ts
  • src/main/agent-trust-presets.test.ts
  • src/main/ai-vault-search/session-search-file-write.test.ts
  • src/main/ai-vault-search/session-search-index-generation.test.ts
  • src/main/ai-vault-search/session-search-message-rows.test.ts
  • src/renderer/src/components/automations/automation-create-destination.test.ts
  • src/renderer/src/components/automations/automation-detail-tab-navigation.test.ts
  • src/renderer/src/components/automations/automation-extra-agent-args-capability.test.ts
  • src/renderer/src/components/automations/automation-host-cache-controller.test.ts
  • src/renderer/src/components/automations/automation-host-cache.test.ts
  • src/renderer/src/components/automations/automation-host-catalog-source.test.ts
  • src/renderer/src/components/automations/automation-host-diagnostics.test.ts
  • src/renderer/src/components/automations/automation-host-health.test.ts
  • src/renderer/src/components/automations/automation-host-scale-gates.test.ts
  • src/renderer/src/components/automations/automation-list-empty-state.test.ts
  • src/renderer/src/components/automations/automation-list-search-rows.test.ts
  • src/renderer/src/components/automations/automation-run-context.test.ts
  • src/shared/command-token-scanner.test.ts
  • src/shared/commit-message-agent-spec.test.ts
  • src/shared/commit-message-generation.test.ts
  • src/shared/commit-message-omp.spec.ts
  • src/shared/conversation-name-generation.test.ts
  • src/shared/darwin-terminal-names.test.ts
  • src/shared/draft-paste-ready-scanner-grok-trace-replay.test.ts
  • src/shared/dsh-startup.spec.ts
  • src/shared/emoji-shortcode-catalog.lazy.test.ts
  • src/shared/emulator-keyboard-frame.test.ts
  • src/shared/ephemeral-setup-terminal-worktree-id.test.ts
Files with no reviewable changes: 2
  • src/renderer/src/components/automations/automation-list-empty-state.test.ts
  • src/renderer/src/components/automations/automation-host-diagnostics.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment on lines +143 to +144
expect(buildAutomationListSearchRowFingerprint(build(100))).toBe(
buildAutomationListSearchRowFingerprint(build(200))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major · Maintainability & Code Quality · Quick win

Prune the wall-clock ratchet baseline.

The fixed nextRunAt values remove the wall-clock pattern counted by the ratchet. The reported CI run fails because test-no-wall-clock is now 0 but its baseline remains 1. Run pnpm check:flaky-test-pattern-ratchet --prune and include the baseline update.

Source: Pipeline failures

@OrcaWin
OrcaWin merged commit f9df692 into main Oct 25, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant