Repository navigation
chore: delete verified-unused modules and exports - #27438
Merged
Merged
Conversation
Removes seven modules that only their own tests import, dead orcad exports and protocol constants, spells orcad's configuration exit code once, reuses the shared errorMessage helper, and drops links to the deleted docs/reference folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
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. Comment |
9 tasks done
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.
ELI5
Some files and exported names in Orca are no longer used by anything except their own tests. This PR deletes them, writes one orcad exit code in one place instead of five, and removes comments that point to a documentation folder that no longer exists. Nothing the app does changes.
What Changed
Before: the build carried seven modules that only their own tests import, a few orcad exports nobody reads, orcad's "configuration fault" exit code (78) typed out as a bare number in five files, two private copies of the shared
errorMessagehelper, and comments linking to the deleteddocs/reference/folder.After: those modules and exports are gone, and so is everything that pointed at them (CI path filters, the shard-timing table, one focus-read baseline row). The exit code lives in one new module with no imports,
orcad-configuration-exit.ts. The launcher can import it without pulling anything else into its tiny bundle. orcad now uses the sharederrorMessage. The dead doc links are removed, and the sentence each one supported is kept.Path ledger (importers on
origin/main@92e204fdac):src/shared/issue-link-input.tsrenderer/.../terminal-pane/shell-ready-marker-scan.tsmain/shell-ready-marker-scanner.ts)renderer/.../terminal-pane/terminal-drop-runtime-owner.tsmain/ssh/ssh-remote-cli-launcher.tscomputer-e2e.ymlfilter and test list)main/ssh/ssh-session-command-audit.tsssh-windows-hosts.ymlfilter)main/ssh/remote-install-coexistence.tsmain/ssh/ssh-previous-relay-census-test-double.tsisFlattenedNodePtyLoaderMessageORCAD_EXIT_OKPROTOCOL_VERSIONitself unchanged)launcher.ts,orcad-bundled-runtime.ts,orcad-native-preflight.ts,orcad-profile-preflight.ts,orcad-exit-code.tsORCAD_EXIT_CONFIGURATIONerrorMessage/errorTextinorcad-daemon-supervision.ts,orcad-local-serve-selection.tsshared/error-messageNet lines: production −543, tests −573, CI/config −4.
Why
The rule for this cleanup phase is to delete only what can be shown to be unreachable. Each symbol was checked with
git grep -woversrc config tests .github mobile packages scripts, and every hit is listed above. The same check ran separately over the 176@ts-nocheckfiles, because a passing typecheck cannot see callers in those, and it found zero hits. The bundler builds that fail on a missing import (build:electron-vite,build:cli,build:orcad) all pass.The exit code needed a module with no imports.
orcad-exit-code.tsimports the server's error classes, so if the launcher imported that file, the server graph would leak into the launcher.orcad-launcher-isolation.integration.test.tspins the launcher's input list, and it now lists the one new constant file.These are left for their owning PRs: the larger SSH dead-export sweep (relay-only files that later PRs delete whole),
ssh-host-relay-terminals-once-connected.ts(owned by the SSH terminal PR), and the ~200 other danglingdocs/referencementions outside orcad.Linked Issue
N/A (maintainer cleanup; Phase 3.99 Wave 0, PR 0.7).
Visual Proof
N/A: no UI or behaviour change. orcad exits with code 78 in exactly the same cases as before.
Testing
pnpm tc,pnpm lint,pnpm run check:code-quality:changed,pnpm check:focus-read-ratchet(1142 reads, down 2)pnpm build:electron-vite,pnpm build:cli,pnpm build:orcadpnpm teston the orcad preflight, launch-contract, profile-preflight, serve-selection, daemon-supervision, loader-diagnosis, bundled-runtime and launcher-isolation suites, plus the ci-shard and focus-ratchet script testsI manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Notes
Security, cross-platform, SSH, mobile and wire: no runtime path changes. Protocol constants that were removed are unused names; the daemon protocol number is unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)