Merge train: #9624 #9625 (Bun Transpiler/build, serve) + 3 gate fixes - #9636
Merged
Conversation
added 5 commits
September 3, 2026 14:41
…addr-class allowlist
|
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)
📝 WalkthroughWalkthroughChangesBun runtime compiler
Bun.serve HTTP facade
Estimated code review effort: 5 (Critical) | ~120 minutes Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant BunCode
participant PerryRuntime
participant TypeScriptExtension
participant SWCBundler
BunCode->>PerryRuntime: Call Transpiler or build
PerryRuntime->>TypeScriptExtension: Native FFI call
TypeScriptExtension->>SWCBundler: Transform, resolve, and bundle
SWCBundler-->>TypeScriptExtension: Output or diagnostics
TypeScriptExtension-->>BunCode: String or promise result
sequenceDiagram
participant Client
participant HttpServer
participant BunServe
participant FetchRegistry
Client->>HttpServer: HTTP request
HttpServer->>BunServe: Process pending request
BunServe->>FetchRegistry: Create Fetch Request
BunServe-->>FetchRegistry: Snapshot Fetch Response
HttpServer-->>Client: HTTP response
✨ 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 was referenced Sep 3, 2026
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 #9624 (Bun runtime
Transpiler+buildsubset) and #9625 (Bunserveover native HTTP).Nine conflicts against the just-landed #9621/#9622 tables, resolved as unions with each authors entries preserved: the
expr_new/member.rsguard admitsTranspileralongsideGlob/Terminal; the arity match arms were hand-merged;serves NativeModSig signature was taken from #9625s own file and confirmed to match the shared trailingargs/retbefore merging (a blind union would have given itTranspilers). All 9 methods across the three Bun PRs are present in the native table.Three gate findings fixed, all real:
raw_heap_addressinperry-ext-typescriptused a bare>= 0x10000floor, which admits the fetch/zlib/proxy handle bands — real addresses on Linux, hidden on macOS. Raised to the band top; the crate links onlyperry-ffi, so the constant is a documented mirror with a justifiedaddr_class_allowlist.txtentry.array_from_valuesheld its pending values as raw addresses acrossjs_array_pushcalls that can collect — array and values now rooted throughTransientRootScope. (The gate refused a new baseline entry as firmly as a ceiling raise, so there was no bookkeeping escape.)perry-hir/src/lower/tests.rscrossed the 2000-line cap; last test split out.Validation:
run_lint_gates.shall 62 gates pass; release build green; RUST_TEST_THREADS=1 perry-runtime 3048/0; perry-hir 378/0;issue_9599_bun_platform2/2;native_module27/27 includingarity_table_is_sorted.Rebase-merge preserving authorship.
Summary by CodeRabbit
Transpilersupport for TypeScript/JSX transformation and import scanning.Bun.buildsupport, including external modules andonResolve/onLoadplugins.Bun.serveandimport { serve } from "bun"support with Fetch handlers, request metadata, lifecycle methods, and server properties.