Skip to content

Remove low-value CLI, desktop, mobile, and web tests - #4373

Merged
SawyerHood merged 1 commit into
mainfrom
bb/test-audit-clients-thr_s3kmw74uzx
Sep 25, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/test-audit-clients-thr_s3kmw74uzx

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Several CLI, desktop, mobile, web and integration tests could not fail on their own:

  • a repo-wide grep for a bb workflows catalog command that never existed;
  • help-text and runbook prose pins;
  • literal restatements of the code under test;
  • a dark-theme SSR test that only asserted the wrapper it added itself.

Others duplicated a stronger test, or kept test-only exports alive.

What changed

Found by a read-only test audit using the repo test-audit skill (#4361).

  • CLI:
    • Deletes the bb workflows catalog grep, the bb thread log help-string pin and the createDevTurboCommand restatement. createDevTurboCommand is no longer exported.
    • Deletes the Docs and GitHub "official plugin frontend bundle" copies and helpers/plugin-copy.ts. The plugin-forks CI job owns building copied plugins. The GitHub nav panel and PR thread-tab registration assertions move to plugins/github/app.test.tsx.
    • Folds stop, compact, clear, cancel-plan and clear-goal into one table. Every row still fails if the CLI fetches the thread first.
  • Integration and QA:
    • Deletes the merge-base helper test (precedence is owned by packages/domain/test/environment.test.ts) and makes the helper file-private.
    • Deletes three runbook prose pins and keeps the permission-mode cross-check.
  • Desktop:
    • Deletes two server-probe tests that their siblings contain.
    • SIGINT and SIGTERM are tested through registerDesktopShutdownSignalHandlers, which now owns its once-only state.
    • Browser permissions are tested only through the session handlers, now including notifications and geolocation.
    • Folds the Linux window-factory and terminal-open tests into tables.
  • Mobile:
    • Deletes the SF Symbol source scan, which cannot fail on its own.
    • The shellHref and isNativeOnlyShellPath cases now run through resolveShellIncomingLink.
    • Font tests use literal expected values instead of values read from the module under test.
  • Web: deletes the dark-theme SSR test and duplicate marketplace serialization cases. The empty and cleared-category cases move into marketplace-routes.

Production +9/−17, tests +375/−1326.

How you verified

  • pnpm exec turbo run test lint typecheck passes for all 9 touched packages, plus bb-plugin-simple-notes and @bb/domain.
  • Desktop smokes (smoke:browser-cdp, smoke:browser-broker, smoke:packaged, smoke:appimage-lifecycle) pass under xvfb against a built AppImage. @bb/integration-tests test:smoke passes 31/31.
  • An independent verifier used before and after worktrees on 175d5ac and 78 mutations across the 47 removed or merged test declarations.
    • Result: 0 lost. The only losses are 7 inventory or prose pins, removed on purpose.
    • Shutdown exit codes (130/143), double-signal handling and stop/quit order are unchanged and caught by the new table.

AGENT GENERATED

🤖 Generated with Claude Code

- delete the repository-wide grep for a `bb workflows catalog`
  command that never existed on main.
- delete the Docs and GitHub "official plugin frontend
  bundle" tests and helpers/plugin-copy.ts. The plugin-forks CI job owns
  building copied plugins; the Docs registration is asserted by
  plugins/docs/app.test.tsx; the GitHub nav panel and PR thread tab
  registration assertions move to plugins/github/app.test.tsx.
- delete the integration test of requireEnvironmentMergeBaseBranch
  (precedence is owned by packages/domain/test/environment.test.ts) and
  make the helper file-private.
- fold the stop/compact/clear/cancel-plan/clear-goal tests into one
  table; every row fails if the CLI pre-fetches the thread.
- delete the createDevTurboCommand literal restatement and
  un-export it.
- delete the `bb thread log` help-string pin.
- delete the three manual-runbook prose pins; keep the permission
  mode cross-check.
- delete two server-probe tests contained in their siblings.
- delete the SF Symbol source scan and literal restatement that
  cannot fail while "maps every icon name" passes.
- delete the dark-theme SSR test that asserted its own wrapper.
- delete the duplicate 503 case and search-serialization.test.ts;
  the empty-search case moves to marketplace-routes.
- assert browser permissions only through the session handlers
  (now including notifications and geolocation) and un-export the
  predicate.
- test SIGINT and SIGTERM through registerDesktopShutdownSignalHandlers
  as one table; the register function owns its once-only state, so
  handleDesktopShutdownSignal and createDesktopShutdownState are no longer
  exported.
- move shellHref and isNativeOnlyShellPath cases onto
  resolveShellIncomingLink and un-export both helpers.
- replace module-derived font expectations with literals and drop
  the tautological font tests.
- fold the three Linux window-factory tests into one table.
- fold the eight terminal-open tests into one table.

Skipped: none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@SawyerHood
SawyerHood merged commit b8387b3 into main Sep 25, 2026
18 checks passed
@SawyerHood
SawyerHood deleted the bb/test-audit-clients-thr_s3kmw74uzx branch September 25, 2026 22:19
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