Start notification-mode runs before watch discovery - #838
Open
longlho wants to merge 2 commits into
Open
Conversation
longlho
marked this pull request as ready for review
August 6, 2026 14:17
Contributor
Author
|
this improved our cold start for web specifically by like 40% |
longlho
added a commit
to perplexityai/bazel-watcher
that referenced
this pull request
Aug 7, 2026
## Why Notification-mode devservers can stay alive while iBazel discovers their watch graph. Waiting for that query before launch puts a large, unnecessary delay on startup. ## What changed Port [bazelbuild#838](bazelbuild#838) onto the Perplexity fork: - start notification-mode runs before watch discovery - install watchers afterward and send a catch-up graph build - preserve query-first behavior for restart-mode targets, builds, tests, and coverage - compose the upstream lifecycle change with our structured BEP output notifications
Contributor
Author
|
gentle ping @achew22 pls pls :) |
Contributor
Author
|
im also more than happy to help maintain this project as well |
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.
Why
ibazel rundiscovers the full transitive watch graph before starting the target. In large workspaces, this can delay a notification-mode dev server by tens of seconds even though the process can stay alive while iBazel installs watchers.What
ibazel_notify_changestargets before full watch discoveryVerification
The notification example served before watch discovery completed, received the catch-up build without restarting, then rebuilt normally after a source edit.