Repository navigation
refactor: group local and WSL filesystem watchers - #33407
Conversation
|
No actionable comments were generated in the recent review.
|
- preflight-critical-path benchmark: resolve the baseline from the first parent of the PR head (HEAD^2^1 on merge-commit checkouts) instead of HEAD^1, which is the base on pull_request checkouts and predates the sync's gated-module moves (win32-utils -> windows-directory-acl); fetch-depth 2 -> 3 so that commit is present. - flaky-test-pattern ratchet: raise git maxBuffer to 64 MB (same as listTrackedFiles); the sync PR's --name-status diff is ~3.2 MB and overflowed Node's 1 MB default (spawnSync git ENOBUFS). - flaky-test-pattern baseline: record 4 findings from two upstream-added watcher tests (stablyai#33407) that the fork's baseline never covered. - delete the orphaned skill-update-roundtrip fixtures test: upstream removed .github/workflows/skill-update-roundtrip.yml in stablyai#31688, so the test reads a file that no longer exists.
ELI5
Place local and WSL filesystem watcher lifecycle code together under its existing filesystem owner.
What Changed
Move 35 files into
src/main/ipc/filesystem/watchers/, update 13 callers and four configuration files, and preserve concrete defining-owner imports. No barrels or forwarding modules are added.The startup-ordering fixture now supplies an explicit watcher-binding mock and imports its preflight subject once during collection instead of repeating ten cached imports inside cases. All ten cases, 52 expectations and preflight calls remain. Subject loading moves outside the first case's 30-second timeout; this is a fixture structure change, not an import-latency fix. Import errors still fail collection.
Why
Watcher lifecycle, events, cancellation, shutdown and platform owners span the flat IPC directory. This completes their planned folder boundary. Fourteen original tracker paths were already deleted by #31922; they stay deleted and receive no move credit.
Linked Issue
Part of the ongoing module organization tracker; planning and validation evidence remain local.
Visual Proof
N/A — no rendered UI change.
Testing
Review
Preserve WSL argv and inline script bytes, physical-exit release, singleton lifecycle/observer state, cancellation/document ownership, partial mocks, mixed-version remote behavior and stable worker outputs. Keep the native ignore suite's Node routing and historical inactive quit mock tables.
Agent skill upstream boundary