Merge train: #9613 #9614 (+5 gate repairs, 3 pre-existing on main) - #9623
Merged
Conversation
added 6 commits
September 3, 2026 12:18
… re-walk (#9591) Every watcher was a 25 ms setInterval whose tick re-walked the whole watch target on the main thread (41 % of a core at 3k files; a 362k-file cwd is a wedged loop). notify (inotify / FSEvents / ReadDirectoryChangesW / kqueue) now delivers events through the event pump's producer protocol and a runtime pump slot; liveness moved from the ref'd timer to a runtime has-active slot; the walker survives only as an off-main-thread fallback paced to 5 % of a core. Claude-Session: https://claude.ai/code/session_01NjZgUzTJMGtr8fpruGYdNp
…util_promisify/test) and #9613's thread-locals to the sanctioned forms
…-dead Error variant; record uls (576->566) and string-payload ratchet progress
…d (unrooted-local ratchet 43->39)
This was referenced Sep 3, 2026
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (36)
📝 WalkthroughWalkthroughThe change replaces timer-based filesystem watching with OS event backends and a paced fallback. It adds ChangesOS-backed filesystem watching
BunFS root support
Moving-GC pointer safety
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant Filesystem
participant WatchBackend
participant EventQueue
participant RuntimePump
participant JSWatcher
Filesystem->>WatchBackend: emit filesystem change
WatchBackend->>EventQueue: queue RawEvent
EventQueue->>RuntimePump: notify main thread
RuntimePump->>JSWatcher: deliver change or error
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
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.
Lands the validated train: #9613 (fs.watch uses OS change notifications — inotify/ReadDirectoryChangesW/kqueue via
notify, FSEvents on macOS — instead of a 25 ms whole-tree re-walk on the main thread; #9591) and #9614 (Bun standalone extracted-filesystem root mapping).Five gate repairs carried by the train, three of which were ALREADY RED ON MAIN from earlier landings:
then(#9539) #9595 (train88): 23 raw-handle debt sites acrosspromise/assimilate.rs,promise/combinators.rs,util_promisify.rsand the new gc test converted towith_*/across_*combinators (timing-equivalent — the re-read still happens after the userthen).mysql2/result.rsFIXED, not ceilinged — rows/fields arrays are rooted in aRuntimeHandleScopeand the result tuple is allocated last, taking that file 44 -> 39 findings and the workspace total 566 -> 561. (The--no-raise-vsarm correctly refused the ceiling raise I first tried.)thread_local!blocks ->perry_thread_local!, plus written root-holder verdicts forQUEUE/SHARED; the FSEventsAPIdlopen cache allowlisted inglobal_sink_isolation.pywith its reason; the macOS-deadRawEvent::Errorvariantcfg_attr-allowed.Validation:
run_lint_gates.shall 62 gates pass; release build green; RUST_TEST_THREADS=1 perry-runtime 3037/0; perry-stdlib green; fs.watch + Bun integration suites 2/2 and 2/2; the #9591 gap fixture byte-identical to node.Rebase-merge preserving authorship.
Summary by CodeRabbit
New Features
--bunfs-root <dir>support for compiling Bun standalone sources and resolving virtual Bun paths against extracted files.require,node:fs, andBun.file().Bug Fixes
fs.watchandfsPromises.watchnow use native filesystem notifications for faster, lower-overhead event delivery, with a paced fallback when needed.Documentation
--bunfs-rootoption and virtual path behavior.