Skip to content

Support multiple FSEvents watch roots#835

Open
longlho wants to merge 1 commit into
bazelbuild:mainfrom
perplexityai:codex/fsevents-multi-root
Open

Support multiple FSEvents watch roots#835
longlho wants to merge 1 commit into
bazelbuild:mainfrom
perplexityai:codex/fsevents-multi-root

Conversation

@longlho

@longlho longlho commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

On macOS, iBazel collapsed every watched directory into one FSEvents root. When a workspace and a local or overridden repository lived under different top-level directories, no common root existed, so updating the watch list failed.

Group watched directories by top-level tree and compute one recursive watch root per group. This preserves the existing protection against FSEvents' 4,096-path limit without falling back to watching /.

Add a Darwin E2E with the Bazel workspace under /private and an overridden repository under /Users; changing the external source must trigger another run.

Fixes #819.

Test

  • bazel test //... --test_output=errors

@longlho
longlho marked this pull request as ready for review July 17, 2026 20:32
@longlho
longlho requested a review from achew22 as a code owner July 17, 2026 20:32
@longlho

longlho commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

gentle ping @achew22 😄

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.

fsevents watcher fails with 'could not find common root of directories' on macOS

1 participant