Repository navigation
refactor: group host storage and worker infrastructure - #37606
Merged
Merged
Conversation
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.
Filesystem primitives, credential persistence and worker transport currently sit directly under src/main. Group 41 source/test files under their concrete domain owners and update their callers, mocks, build inputs and active test paths together.
Moved code imports Windows retry operations and worker transport types from their defining modules. The browser persistence fixture shares its existing rename stub with that concrete owner. CLI imports, guarded Rollup output and ASAR unpack paths move together for macos-tree-clone; worker entry filenames stay unchanged.
Validation: 27 focused test files (271 passed, one existing skip), CLI and main-process builds, and a plain-Node smoke that loads the emitted CLI after the main build and performs a real macOS tree clone. Two independent source/boundary audits passed.
pnpm check:changedpassed 25/26 gates; broad unit selection reported seven assertions in three unmoved test files. Running those files on pristine main reproduces the same seven failures. Five are macOS temp-path alias assertions; two involve Bun opening a read-only SQLite database. All 25 assertions pass in a diagnostic Node run with a canonical temp root. After rebasing, all 25 static/type/import checks and the 27 focused test files pass again. The fresh broad related-test selection was interrupted after exceeding 13 minutes under the repository scoped-check allowance; its unit gate is not reported as green. Detailed controls remain local; no test or application logic was changed to mask failures.Follows merged #37600. This batch reduces the direct
src/mainfile count from 410 to 369.