Skip to content

refactor: group Parcel watcher process ownership - #33401

Merged
nwparker merged 1 commit into
mainfrom
nwparker/module-organization-parcel-watcher
Oct 25, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/module-organization-parcel-watcher

Conversation

@nwparker

@nwparker nwparker commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 43 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89 $\color{#cf222e}{\Huge{\mathbf{−}}}$​69 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20
Prod 64 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​160 $\color{#cf222e}{\Huge{\mathbf{−}}}$​150 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10

ELI5

Group the Parcel watcher process files with the existing filesystem watcher process modules so their lifecycle is easier to follow.

What Changed

Move 35 production and test/support files into src/main/ipc/filesystem/watcher-process/. Retarget concrete owner imports, mocks, build inputs, runtime probes, and configuration references. Keep the built worker filename and process protocol unchanged; add no barrel exports or forwarding modules.

Why

The supervisor, subscription, failure, and worker entry owners currently span a flat IPC directory and the existing watcher process folder. This places the lifecycle together.

Linked Issue

Part of the ongoing module organization tracker.

Visual Proof

N/A — file organization and import paths only; no visual or interaction changes.

Testing

  • 55 existing suites: 581 passed, one existing skip. Baseline and candidate case identities and outcomes match.
  • Local node typecheck, changed-code quality, process-host/reliability/path-literal gates, Electron build, and standalone orcad build passed.
  • Watcher resource probe passed, including child limits and exact PID cleanup.
  • Native Codex independent source audits include body/literal preservation, concrete import ownership, build/launch paths, and refactor-audit.
  • Local validation ran on macOS with background launch. Linux and Windows coverage runs in required CI.
  • Existing macOS temp-directory spelling assertions fail equally on pristine base and candidate with the default environment; both paired runs pass using the same canonical TMPDIR. No test or product behavior was changed for this.

Review

Preserve cancellation, pool/class identities, process output names, Windows/WSL and remote paths. Fresh required CI and current-main merge validation must pass before merge.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer content is copied or translated.

@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: 2b5c8305-8843-4a27-af47-3786aa588b6e
Commits

Reviewing files that changed from the base of the PR and between 9017194 and 033ebdc.

Files selected for processing: 107
  • config/build-plugins/main-build-entry-points.ts
  • config/knip.json
  • config/process-host-direct-import-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • config/scripts/orcad-entry-build.mjs
  • config/scripts/runtime-file-watcher-fault-harness.mjs
  • config/scripts/runtime-file-watcher-resource-probe.mjs
  • src/main/ipc/filesystem-watcher-document-lifetime.test.ts
  • src/main/ipc/filesystem-watcher-lifecycle-model.test.ts
  • src/main/ipc/filesystem-watcher-listener-lifecycle.ts
  • src/main/ipc/filesystem-watcher-local-events.test.ts
  • src/main/ipc/filesystem-watcher-local-events.ts
  • src/main/ipc/filesystem-watcher-local-install.test.ts
  • src/main/ipc/filesystem-watcher-local-install.ts
  • src/main/ipc/filesystem-watcher-local-unsubscribe.test.ts
  • src/main/ipc/filesystem-watcher-native-capacity.test.ts
  • src/main/ipc/filesystem-watcher-removal-deadline.test.ts
  • src/main/ipc/filesystem-watcher-removal-restore.test.ts
  • src/main/ipc/filesystem-watcher-shutdown.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-canary-directory.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-cancellation-restart.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-child-launch.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-child-launch.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-child-messaging.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-child-recovery.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-child-slot.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-child-termination.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-crash-fuse.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-crash-fuse.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-disconnect-termination.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-entry-path.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-entry-path.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-event-cancellation.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-event-delivery.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-event-delivery.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-host-subscriptions.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-in-process-fallback.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-interrupted-cancellation.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-module-loader.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-module-loader.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-native-error-retirement.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-pending-cancellation.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-pending-subscribe.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-dispose.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-entry.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-entry.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-failure.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-protocol.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-subscription.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-supervisor-options.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-supervisor.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process-test-child.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-process.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-root-path-rewrite.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-shallow-subscription.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-shallow-subscription.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-supervisor-capacity-wait.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-supervisor-capacity-wait.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-supervisor-capacity.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-supervisor-disposal.test.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-supervisor-disposal.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-supervisor-message.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-supervisor-subscribe.ts
  • src/main/ipc/filesystem/watcher-process/parcel-watcher-unsubscribe-timeout.test.ts
  • src/main/ipc/parcel-watcher-crash-fuse-recovery.test.ts
  • src/main/ipc/parcel-watcher-delivery-canary.ts
  • src/main/ipc/parcel-watcher-delivery-health.test.ts
  • src/main/ipc/parcel-watcher-delivery-health.ts
  • src/main/ipc/parcel-watcher-shallow-file-subscription.test.ts
  • src/main/ipc/parcel-watcher-shallow-file-subscription.ts
  • src/main/ipc/runtime-watcher-pending-assignment.ts
  • src/main/ipc/runtime-watcher-pool-lifecycle.ts
  • src/main/ipc/runtime-watcher-pool-shutdown.test.ts
  • src/main/ipc/runtime-watcher-pool-state.ts
  • src/main/ipc/runtime-watcher-predecessor-barriers.ts
  • src/main/ipc/runtime-watcher-process-pool.test.ts
  • src/main/ipc/runtime-watcher-process-pool.ts
  • src/main/ipc/runtime-watcher-quarantine-queue.ts
  • src/main/ipc/runtime-watcher-subscription-failure.ts
  • src/main/ipc/worktree-git-common-narrow-watch.ts
  • src/main/ipc/worktree-git-common-native-upgrade-poll.test.ts
  • src/main/ipc/worktree-git-common-native-upgrade-poll.ts
  • src/main/ipc/worktree-git-common-primary-watch.ts
  • src/main/ipc/worktree-git-common-watch-reconciliation.test.ts
  • src/main/ipc/worktree-git-common-watch.test.ts
  • src/main/ipc/wsl-watcher-process-exit.ts
  • src/main/orcad/orcad-entry.ts
  • src/main/orcad/orcad-forked-child-paths.test.ts
  • src/main/orcad/orcad-runtime-native-preflight.test.ts
  • src/main/orcad/orcad-runtime-native-preflight.ts
  • src/main/plugins/plugin-content-safety.test.ts
  • src/main/plugins/plugin-dev-watcher-unknown-identity.test.ts
  • src/main/plugins/plugin-dev-watcher.test.ts
  • src/main/plugins/plugin-dev-watcher.ts
  • src/main/runtime/file-watcher-host.test.ts
  • src/main/runtime/file-watcher-host.ts
  • src/main/runtime/files/watch/file-watcher-leases.ts
  • src/main/runtime/files/watch/windows-file-watch.ts
  • src/main/runtime/orca-runtime-files-watch.test.ts
  • src/main/runtime/rpc/methods/file-watch-stream-lifecycle.ts
  • src/main/runtime/rpc/methods/files-watch-cleanup.test.ts
  • src/main/runtime/runtime-root-watch-ownership.ts
  • src/main/runtime/runtime-root-watch-teardown.ts
  • tests/tools/repro-watcher-crash-7547/README.md
  • tests/tools/repro-watcher-crash-7547/fixed-child.cjs

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

Walkthrough

Watcher-process modules now reside under filesystem/watcher-process, and references across source files, tests, build configuration, reliability gates, and scripts were updated to match. The summaries describe import-path and test-mock updates, plus a namespace import change in runtime-watcher-process-pool. They report no watcher runtime behavior changes.

Priority: Low

Merge Risk: Minimal · up to 033eb

Watcher-process imports and build entrypoints resolve to their relocated files, with no established runtime or deployment risk.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Description check Warning The description is detailed and covers the main template sections, including the change, rationale, testing, visual proof, and review notes. It does not provide an actual issue link or number, and it … Add the actual linked issue reference, such as Fixes #12345, or document the applicable maintainer exception. Add the Notes and Checklist sections and complete any relevant items.
Docstring Coverage Inconclusive 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 5 functions across 50 files. (42 skipped: … 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 and concisely describes the main change: grouping Parcel watcher process ownership.
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 is detailed and covers the main template sections, including the change, rationale, testing, visual proof, and review notes. It does not provide an actual issue link or number, and it omits the Notes and Checklist sections.

Resolution

Add the actual linked issue reference, such as Fixes #12345, or document the applicable maintainer exception. Add the Notes and Checklist sections and complete any relevant items.

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 5 functions across 50 files. (42 skipped: 5 unsupported, 37 over the file limit.)

Resolution

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

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • 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.

@nwparker
nwparker merged commit 95df4c7 into main Oct 25, 2026
60 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