Skip to content

test: remove low-value wrapper and inventory suites - #33736

Merged
OrcaWin merged 1 commit into
mainfrom
audit/test-value-448
Oct 26, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
audit/test-value-448

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 52 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1854 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1843
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4

Removes 117 low-value test declarations, including 14 entire suites, and deletes a production cache accessor used only by a removed test. The removals cover copied oracles, source and artifact inventories, framework-wrapper tests, mock-only forwarding, decorative UI copy, and cases whose setup never exercises the named behavior. Useful ownership, durability, rejection, state-transition and delivery coverage remains.

Reviewed 180 sources / 1,224 authored declarations → 1,107. One relocated byte-identical suite was re-reviewed for deletion and receives no new-source credit; the other 179 sources are new reviews. The combined change touches 52 test files plus the obsolete accessor.

Targeted candidate checks: 390 expanded cases passed; eight Windows-only cases skipped locally. Formatting, lint, source/case bindings and private patch reconstruction pass. Unchanged and deleted suites received static review without baseline replay. Fresh full repository CI is required before merge; audit tracker promotion follows CI and merge.

@coderabbitai

coderabbitai Bot commented Oct 26, 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: dd9669d6-a5ba-4e8e-b5bd-d245ca63c7de
Commits

Reviewing files that changed from the base of the PR and between 298ef44 and d59259f.

Files selected for processing: 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; 8 remain after this review.

Walkthrough

The pull request removes or narrows tests across main-process, renderer, and shared-code areas. The changes remove assertions for hook installation, app behavior, automation, browser panes, feature tips, onboarding, native-chat tools, and artifact and migration contracts. One exported test-only accessor for remembered browser-page insets was also removed. The summaries report no other implementation changes.

Priority: Low

Merge Risk: Minimal · up to d5925

The change is limited to test-suite reduction and a test-only accessor removal; no actionable production risk is evidenced.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description gives a useful summary of the test removals and reported validation, but it does not follow the required template. It omits the ELI5, What Changed, Why, Linked Issue, Visual Proof, Rev… Complete the required template sections. Add an actual linked issue after “Fixes #”, state “N/A” with a reason for Visual Proof if applicable, document testing and platform coverage, complete the applicable checkboxes, and add the required …
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 8 files. (1 skipped: 1 … 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 change: removing low-value wrapper and inventory test suites.
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 gives a useful summary of the test removals and reported validation, but it does not follow the required template. It omits the ELI5, What Changed, Why, Linked Issue, Visual Proof, Review, Notes, Agent skill upstream boundary, and Checklist sections. The required issue link is also missing.

Resolution

Complete the required template sections. Add an actual linked issue after “Fixes #”, state “N/A” with a reason for Visual Proof if applicable, document testing and platform coverage, complete the applicable checkboxes, and add the required security, compatibility, performance, and upstream-boundary notes.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 8 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

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

🧹 Nitpick comments: 1
src/shared/opencode-cli-version.test.ts: 1

16-16: Trivial · Functional Correctness · Quick win

Keep direct coverage for future-major capability mapping.

The surviving PTY test detects an unverified-v2 promptMode regression through 2.0.17 and 2.0.21. It does not test the future-major pluginApi mapping. The model-startup tests mock capability results.

The current launch behavior does not enter the prefill path for either case. Unverified v2 keeps pluginApi: 'v2' but has promptMode: 'unknown'. A future major has pluginApi: 'unknown', which returns before prefill handling. This is additional regression coverage, not a current launch failure.

Add a focused future-major probe assertion. Do not describe unverified v2 as being outside the plugin-v2 path.

Suggested test
+it('keeps future-major builds out of known launch capability paths', async () => {
+  const execute = vi.fn().mockResolvedValue({
+    code: 0,
+    timedOut: false,
+    stdout: 'opencode v3.0.0'
+  })
+  expect(
+    await probeOpenCodeCliVersion({
+      executablePath: '/future/opencode',
+      env: {},
+      hostIdentity: 'wsl:future-major',
+      execute
+    })
+  ).toMatchObject({
+    pluginApi: 'unknown',
+    promptMode: 'unknown'
+  })
+})

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: 6fcad39c-6647-43c5-bbc0-30dbb5f567f7
Commits

Reviewing files that changed from the base of the PR and between 1ff73e8 and 298ef44.

Files selected for processing: 53
  • src/main/amp/hook-service.test.ts
  • src/main/antigravity/hook-service.test.ts
  • src/main/antigravity/native-account-launch.test.ts
  • src/main/antigravity/native-macos-credentials.test.ts
  • src/main/antigravity/windows-hook-payload-delivery.test.ts
  • src/main/app-icon.test.ts
  • src/main/app-relaunch.test.ts
  • src/main/appimage-runtime-identity.test.ts
  • src/main/appkit-scene-mutation.test.ts
  • src/main/artifacts/artifact-cloud-config.test.ts
  • src/main/artifacts/artifact-cloud-service.test.ts
  • src/main/artifacts/artifact-share-record-allocation.test.ts
  • src/main/asar-transparent-fs.test.ts
  • src/main/automations/automation-dispatch-host-fence.test.ts
  • src/main/automations/automation-owner-fencing.test.ts
  • src/main/automations/automation-run-writer.test.ts
  • src/main/automations/automation-skip-coalescing.test.ts
  • src/renderer/src/components/browser-pane/browser-client-page-attachment-scan-budget.test.ts
  • src/renderer/src/components/browser-pane/browser-client-page-guest-metadata.test.ts
  • src/renderer/src/components/browser-pane/browser-download-destination-toast.test.ts
  • src/renderer/src/components/browser-pane/describe-page/browser-overlay-shortcut-target.test.ts
  • src/renderer/src/components/browser-pane/describe-page/browser-page-url-display.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-guest-page-id-identity.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-paintability.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-viewport.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-viewport.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-webview.test.ts
  • src/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.test.tsx
  • src/renderer/src/components/feature-tips/feature-tip-cli-install-action.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-modal-state.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-telemetry.test.ts
  • src/renderer/src/components/onboarding/NotificationStep.test.tsx
  • src/renderer/src/components/onboarding/ThemeStep.test.ts
  • src/renderer/src/components/onboarding/agent-picked-payload.test.ts
  • src/renderer/src/components/onboarding/onboarding-dismiss-target.test.ts
  • src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
  • src/renderer/src/components/onboarding/use-onboarding-flow-persistence.test.ts
  • src/shared/native-chat/tools/native-chat-tool-preview-scan.test.ts
  • src/shared/native-chat/tools/native-chat-tool-run-outcome.test.ts
  • src/shared/native-chat/tools/native-chat-tool-summary.test.ts
  • src/shared/network/manual-address.test.ts
  • src/shared/node-file-content-equality.test.ts
  • src/shared/node-readable-text.test.ts
  • src/shared/omp-owner-state-title.test.ts
  • src/shared/omp-pi-semantic-title-preservation.test.ts
  • src/shared/opencode-cli-version.test.ts
  • src/shared/orca-yaml-bounds.test.ts
  • src/shared/orcad-artifacts.test.ts
  • src/shared/orcad-migration-manifest-contract.test.ts
  • src/shared/orcad-migration/orcad-migration-blob-transfer.test.ts
  • src/shared/orcad-migration/orcad-migration-source-kind.test.ts
  • src/shared/orcad-profile-preflight.test.ts
Files with no reviewable changes: 45
  • src/main/appkit-scene-mutation.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-guest-page-id-identity.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-cli-install-action.test.ts
  • src/main/asar-transparent-fs.test.ts
  • src/renderer/src/components/onboarding/ThemeStep.test.ts
  • src/renderer/src/components/browser-pane/describe-page/browser-overlay-shortcut-target.test.ts
  • src/main/artifacts/artifact-share-record-allocation.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-webview.test.ts
  • src/main/app-relaunch.test.ts
  • src/shared/orca-yaml-bounds.test.ts
  • src/renderer/src/components/browser-pane/browser-client-page-guest-metadata.test.ts
  • src/shared/node-readable-text.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-viewport.test.ts
  • src/shared/native-chat/tools/native-chat-tool-summary.test.ts
  • src/main/artifacts/artifact-cloud-config.test.ts
  • src/main/automations/automation-owner-fencing.test.ts
  • src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
  • src/main/antigravity/native-macos-credentials.test.ts
  • src/shared/orcad-migration/orcad-migration-blob-transfer.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts
  • src/shared/omp-pi-semantic-title-preservation.test.ts
  • src/main/antigravity/native-account-launch.test.ts
  • src/renderer/src/components/onboarding/agent-picked-payload.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-telemetry.test.ts
  • src/shared/native-chat/tools/native-chat-tool-run-outcome.test.ts
  • src/shared/omp-owner-state-title.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-viewport.ts
  • src/shared/native-chat/tools/native-chat-tool-preview-scan.test.ts
  • src/shared/network/manual-address.test.ts
  • src/renderer/src/components/onboarding/onboarding-dismiss-target.test.ts
  • src/renderer/src/components/browser-pane/host-guest/browser-page-paintability.test.ts
  • src/shared/orcad-profile-preflight.test.ts
  • src/renderer/src/components/browser-pane/browser-download-destination-toast.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-modal-state.test.ts
  • src/renderer/src/components/browser-pane/browser-client-page-attachment-scan-budget.test.ts
  • src/main/automations/automation-run-writer.test.ts
  • src/main/amp/hook-service.test.ts
  • src/shared/orcad-migration/orcad-migration-source-kind.test.ts
  • src/shared/orcad-migration-manifest-contract.test.ts
  • src/main/antigravity/windows-hook-payload-delivery.test.ts
  • src/main/antigravity/hook-service.test.ts
  • src/main/automations/automation-skip-coalescing.test.ts
  • src/main/automations/automation-dispatch-host-fence.test.ts
  • src/renderer/src/components/browser-pane/describe-page/browser-page-url-display.test.ts
  • src/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.test.tsx

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

@OrcaWin
OrcaWin force-pushed the audit/test-value-448 branch from 298ef44 to d59259f Compare October 26, 2026 02:34
@OrcaWin
OrcaWin merged commit 0cf038c into main Oct 26, 2026
33 checks passed
chucoding added a commit to chucoding/orca that referenced this pull request Oct 26, 2026
The case asserted that the label reads exactly `1024 × 768`, which
restates the format string rather than any behavior, and main now
treats such copied-string tests as low value (stablyai#33736, stablyai#33778).

Refs stablyai#31014

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nwparker added a commit that referenced this pull request Oct 26, 2026
Main's #33736 dropped the only test that the terminal-history.v1 kind reaches
runtime status, which is what makes a mover send it.

Co-Authored-By: Claude <noreply@anthropic.com>
AmoabaKelvin added a commit that referenced this pull request Oct 29, 2026
…31145)

* feat(browser): flash the page viewport size while the pane resizes

Resizing the built-in browser pane gave no sign of the page's size, so
landing on a CSS breakpoint meant guessing or reading innerWidth in
DevTools. The existing zoom badge now also flashes the guest's
innerWidth × innerHeight after each resize, so zoom and size share one
corner instead of stacking. The size comes from the host box, UI zoom
and the guest's live zoom level, because a UI zoom change overwrites
the guest's zoom behind the pane's remembered level.

Refs #31014

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(browser): cover no size flash on tab open and tab switch

The issue promises the size badge stays hidden when a tab opens or is
shown again, but the e2e only checked it after the 1.4s fade had
already passed, so a stray flash would go unnoticed. A renderer-side
counter now records every size flash, and the hook test covers a pane
that is hidden and shown again at a new size.

Refs #31014

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(browser): cover the badge shared by zoom and size feedback

Zoom and size feedback now share one label and one fade timer, so the
latest change wins, but nothing exercised that hook directly. The new
test checks that a size flash replaces the zoom label and restarts the
fade instead of letting the earlier timer hide it early.

Refs #31014

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(browser): keep the size badge exact under Chrome's zoom presets

After rebasing onto per-site zoom (#31621), zoom levels snap to Chrome
presets such as 90%, so the badge drifted a pixel from innerWidth: the
zoom factor snapped levels that UI zoom sets freely, and rounding did
not match Blink. The factor now uses the guest's level as is, and the
size mirrors Blink's AdjustForAbsoluteZoom::AdjustInt on the integer
DIP size, checked against the e2e's measured guest sizes.

Refs #31014

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(browser): never show a size flash that may be wrong or stale

Before dom-ready the guest's zoom cannot be read, and a saved site zoom
lands at that moment, so sizing it at the default zoom could flash a
wrong number. A flash left running when the page went inactive or was
parked at 0×0 could also come back stale, since nothing measures it
then. Both cases now skip or hide the flash, because no size is better
than a misleading one.

Refs #31014

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(browser): announce the first resize after a tab opens

Skipping measurements until the guest zoom is readable also dropped the
baseline, and a new tab's opening measurement usually arrives before
dom-ready, so the first resize afterwards only set a baseline and never
showed the badge. The baseline is now kept as the host box size and
converted at the zoom readable when the next measurement comes, so no
zoom is guessed and the first real resize is still announced.

Refs #31014

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(browser): drop the size format case that only copied the string

The case asserted that the label reads exactly `1024 × 768`, which
restates the format string rather than any behavior, and main now
treats such copied-string tests as low value (#33736, #33778).

Refs #31014

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(browser): fold the size readout into its hook and drop tests that don't prove it

Moves the guest-size conversion into the hook that uses it, inlines the
one-use label formatter and predicate, and drops the e2e spec, the badge
timer test and the predicate tests. The conversion keeps its test against
sizes measured from a real guest.

* fix(browser): keep the size flash off under viewport presets and out of the pane's render

A preset pins the page size, and mobile emulation's layout viewport can
differ from the host box, so the readout only runs on a free-sized pane.
The badge now owns its label and fade state behind a ref handle, so a
resize drag re-renders only the badge instead of the whole page pane.

* fix(browser): skip the size flash while a phone or remote viewer sets the page metrics

* fix(browser): fold the screen scale into the size readout's rounding

Blink rounds the guest viewport in device pixels with the screen scale
times page zoom as its factor, so ignoring the screen scale left the
badge 1px off at most non-100% zoom levels on 2x screens.

* fix(browser): port Blink's exact zoom rounding to the size readout

Chromium 150's AdjustForAbsoluteZoom::AdjustInt adds 0.5 in float math
before dividing when zoomed in and truncates with a 0.01 slack, so the
+1 rule showed the badge 1px wide at many zoomed-in sizes.

* fix(browser): size the readout's guest frame in whole DIPs before the screen scale

Chromium rounds a guest frame to whole DIPs and only then scales it to
device pixels, so a fractional split width read one device pixel short.

* fix(browser): round the readout's guest frame up to whole DIPs

A live sweep at 1.2 UI zoom on a 2x screen showed Chromium sizes the
guest frame as the ceiling of the box in DIPs, not the nearest DIP.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
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