Repository navigation
chore: update shared Bun pin to 7bd4fdff3d - #176103
Conversation
Advance Bun 1.4.3 to 1.4.4 with the upstream f2405c38 sync, WebKit f8521bb454, the source-map-disable cache fix, and shared VM source buffers and source-map URIs. Linux qualification completed all 36 paired CI selections, the five-repeat targeted matrix with Node controls, Bun-only install smoke, readiness, startup, throughput, and memory gates. The exact 30-file Gateway workload reduced median final RSS by 35.41%, with lower RSS in all five pairs and unchanged assertion outcomes. Retain the recorded inherited failures and confirmation decisions. The six-platform pin is byte-identical to the release converter output. Independent P2 review is scoped-clean.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 80c6c34e45
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Current head is 6d34024. The CI documentation finding is fixed; the approved pin bytes and all six release hash records are unchanged. The PR body includes the Linux and full Mac gate records, preserved confirmation verdicts, and the dual-all trial's three classified test issues with their landed repairs. |
|
🦞👀 Re-review progress:
|
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex review: needs maintainer review before merge. What this changesUpdates the shared Bun pin to 7bd4fdff3d, refreshes all six platform hash records, and aligns the CI runtime documentation. Example: Run the fixed 30-file Gateway workload with one worker and forced garbage collection.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-approved runtime update remains absent from main, the documentation finding is resolved, and no actionable defect remains in the reviewed diff. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared JSON pin supplies runtime identities and checksums to CI, local tooling, installers, and app packaging; the existing stager downloads and verifies the selected Bun executable. flowchart TD
A[Shared Bun pin] --> B[Runtime stager]
C[Published Bun artifacts] --> B
B --> D[Checksum and revision verification]
D --> E[CI and local tooling]
D --> F[App runtime packaging]
Technical reviewBest possible solution: Advance the existing shared pin with the supplied qualification evidence once the normal exact-head checks pass. Do we have a high-confidence way to reproduce the issue? This maintenance PR supplies paired runtime qualification and a linked source-map crash reproduction; no target code was executed during this read-only review. Is this the best way to solve the issue? Updating the existing shared pin and its documentation is the smallest complete integration of the qualified runtime fixes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against adb12365084a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceDocs +2, Other 0. Total +2 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 18, 2026, 2:26 AM ET / 06:26 UTC. |
|
Merged via squash auto-merge.
|
Upgrade the shared runtime from b76e to Bun 1.4.4 at 7bd4fdff3d with WebKit f8521bb454, preserving the fork's documented compatibility divergences. Includes the upstream sync in openclaw/bun#177, the disabled-source-map startup fix in openclaw#189, and VM source-buffer/URI sharing in openclaw#190. Align the CI guide with the exact pin. Qualified by full Linux Gate A and Mac Gate B, including paired CI replay, targeted Node controls, Node-hidden installation, readiness and cold-start checks, HTTP, and memory workloads. The fixed 30-file Linux workload retained all assertions and reduced median final RSS by 35.41%; Mac VM messaging RSS was 0.848x. Dual-all trial 39063500503 had 4 Bun-only failures versus 5, with agent-chat RSS down 27%; all three newly observed failures were classified as OpenClaw test issues and repaired by openclaw#175846/openclaw#175872. Preserved UI build-race, staged-read ordering and Rosetta noise qualifications are detailed in the PR. The pin matches the approved candidate byte for byte, including all six platform archive and executable hashes. Focused staging tests pass on Node and S2, and independent P2 review is scoped-clean.
What Problem This Solves
Reduces retained source memory in the Bun runtime used by OpenClaw and fixes startup when source maps are disabled.
User Impact
The shared pin moves from
b76e4b4e67to7bd4fdff3d, upgrading Bun 1.4.3 to 1.4.4 and WebKit from01f208ae7atof8521bb454. On the fixed 30-file Gateway-server workload, candidate median final RSS was 35.41% lower than the baseline, with lower RSS in every paired run. Existing fork compatibility behavior is retained.Why This Change Was Made
The upstream sync merges oven-sh/bun through
f2405c382d43b89d91a2e7c90d9c5f53505a1e71and incorporates the new WebKit build, replaying 16 fork patches on upstream WebKitb1e30d08. Engine qualification covered 171/171 stress cases, 14 exports and Windows arm64 probes. The source-map fix honors the disable flag in the transpiler cache; the VM memory change shares identical source buffers and source-map URIs. The measured memory results include 0.848× Mac VM messaging RSS and −27% agent-chat RSS in the dual-all CI trial, alongside the Linux 30-file result below.The sync preserves the inherited call-start stack columns and source-map segments, fork bytecode fingerprints, external-require output, prelinked/module namespace behavior, strict Worker argv floor, package parser behavior, percent-path annotation error, symlink argv spelling, virtual TypeScript loader limitations, Node-compatible
ppiddescriptor and manifest-pinned WebKit cache layout. The exact upstream assertions and narrow expected-failure markers remain documented in the sync PR; the Linux fuzzy-wuzzy crash retains its exact-file quarantine. This pin does not claim unrestricted upstream or Node parity.Array holes over
process.envand repeated Worker throwing-stack-getter evaluation remain known gaps. Recorded TLS 1.2 certificate-disclosure ordering is unchanged. Known TLS differences remain: pre-connectsetServername, earlyclose_notify, fatal Duplex transport close timing, nested reset notification and parts of livesetSecureContext. The imported HTTP2 backpressure precondition and the original one-off install-staging observation also remain follow-ups. These are retained differences, not fixes claimed by this update.scripts/lib/openclaw-bun.jsonmatches the supplied six-platform release manifest conversion exactly. The CI pipeline documentation is updated to the same Bun commit, WebKit commit and prerelease tag.Evidence
Linux x64 Gate A used paired baseline/candidate runs on identical source and limits. All 36 Bun-admitted CI selections completed, plus the JSC-sensitive supplement. Overlapping selections are counted separately: baseline 75,177 passed / 5 failed / 219 skipped, candidate 75,188 / 4 / 222. The full UI baseline additionally had a suite-level duplicate custom-element registration failure before assertion collection. All raw failures remain recorded; the gate is a regression comparison, not an all-green suite claim.
The targeted five-repeat matrix with Node controls completed 660 invocations and 220 comparisons across stack/source-position, TLS, VM, Worker heap-cap and the previous Node-routed fixes. Each Bun arm had 4,005 passed / 0 failed / 5 unchanged V8-only skips; Node had 4,010 passed / 0 failed. Direct TLS oracles retained the known Node differences. Fresh current-main Node-hidden installation smoke passed all ten steps with zero Node attempts on both runtimes, including the landed lifecycle-PATH fix #175990.
Readiness fails only above 1.03 with at least 9/12 slower observations, or a TERM-exit increase above 150 ms with at least 9/12 slower. Messaging and both cold-start median limits are 1.05. HTTP uses the predeclared paired confidence-interval noise rule. The memory slice used OpenClaw
2e5329f78072e17c0551ae37a40cb73ba24d2d6e, one worker, the exact original 30-file order and forced GC after each file. All 15 memory invocations retained all 280 assertions with no skips; each had 279 passing assertions and the same documented inherited sessionless-media failure, including all five Node controls.Both predeclared confirmations completed: UI e2e = SHARED_BUILD_RACE and install-download = FLAKE_OR_ORDER. UI production-build failures reproduced on both runtimes (baseline 2/4, candidate 1/4), with 18,000 direct filesystem operations clean; the staged-read injection passed five isolated runs and two full-unit runs per Bun, and all nine diagnostic probes invoked the injected hook. The separate Node-hidden install failure belonged to OpenClaw's lifecycle-PATH prefix check and was fixed before the successful fresh smoke. Original failures and invalid setup attempts remain retained. An unscored readiness observer was corrected to dereference WeakRef registry entries before any scored pair ran; all scored observations passed complete workload and shutdown checks.
The dual-all CI trial (
steipete/bun-s2-trial, main plus this pin) passed the declared criterion: 4 Bun-only failures versus 5, Bun/Node ratio 0.715, and agent-chat RSS down 27%. All three newly observed Bun-only failures were classified as no fork regression:src/gateway/server/ws-connection.test.ts)_writevobservation/adapter assumption also failed on b76e. #175846 uses and tests the public one-write batching boundary.src/cli/update-cli.candidate-admission.test.ts)src/gateway/server-methods/models-auth-refresh.catalog.integration.test.ts)The full Mac Gate B record passed with its recorded noise qualifications: the full 70-file arm64 corpus retained 1,324 passing assertions and seven existing skips per runtime; VM messaging RSS ratio was 0.848474 across five pairs with 991 identical passing assertions each. Native Worker Gateway root/tree RSS ratios were 1.000208/0.997749. Signing, hardened runtime, timestamps, notarization and primary-signature assessments passed for all four Darwin executables. Rosetta's Worker pair completed all work but both runtimes required shutdown cleanup, classified as shared timeout noise; Rosetta timing/RSS is report-only. Native x64 release smoke passed at the candidate head.
Focused pin-staging tests passed 11/11 on Node and 11/11 on candidate Bun. Independent P2 review is scoped-clean. Script lint and the selected app-CI tests passed. The frozen-source changed-file run retained a graph-root budget failure that also reproduces with b76e; two missing-base-reference SQLite checks passed when rerun against their exact frozen base. No limits were changed. Exact-head PR CI remains part of landing.
Targeted file groups and invocation costs (five runs per runtime)
stack-source-positiontls-preconnect-setServernametls-close-notify-directtls-close-notify-serversrc__gateway__artifact-downloadstest__talk-browser-defaultstest__scripts__control-ui-cold-load-tracesrc__infra__owned-directory-observationsrc__infra__tailscale-route-owner.workersrc__state__openclaw-database-preflight.startup-preparedsrc__state__openclaw-state-ownershipsrc__gateway__session-utils.fs.display-positionextensions__team-reports__src__render__themesrc__infra__worker-task-poolsrc__agents__prepared-model-catalog-worker.heap.integrationsrc__agents__prepared-model-catalog-worker.custody.integrationsrc__infra__sqlite-worker-broker-lifecyclesrc__infra__sqlite-worker-brokersrc__config__sessions__session-transcript-worker-readerssrc__state__openclaw-state-read-workersrc__infra__worker-task-pool.memorysrc__agents__prepared-model-catalog-worker.workspace-heap.integrationsrc__config__sessions__session-transcript-worker-lanessrc__state__openclaw-state-read-worker.bunsrc__infra__worker-task-pool.retirement-failuresrc__agents__code-mode.failure-phasesrc__logging__console-capturesrc__plugins__public-surface-generationsrc__plugins__plugin-instance-callbackssrc__plugins__plugin-instance-constructorssrc__plugins__plugin-instance-reflectionsrc__canvas__wrapsrc__infra__sqlite-capabilitiessrc__secrets__egress-proxy__proxy-serversrc__secrets__egress-proxy__proxy-server.lifecyclesrc__secrets__egress-proxy__proxy-server.websocketjsc-regex-redaction-1jsc-regex-redaction-2jsc-intl-datetimejsc-intl-graphemejsc-node-vm-code-mode-1jsc-node-vm-code-mode-2jsc-gc-weakrefjsc-stack-error-formatDirect oracles have no Vitest assertions. Their observations were compared in full after removing only runtime/version provenance.
Node differences: tls-preconnect-setServername (5/5), tls-close-notify-direct (5/5), tls-close-notify-server (5/5), jsc-node-vm-code-mode-1 (5/5).
Full Mac Gate B record
Full Mac Gate B record
Candidate
7bd4fdff3d4035bcea50718673c663f5474bae89qualified against the shared b76e baseline. This was the full engine-plus-upstream-sync gate with fresh paired observations for every requested cohort. Historical corpus source:2f532dfc6942ea28a820160a23f0da3b7d039555; current harness source:d0d1f4c3b7a2da1fc91293f27cc94809210ab944. Qualification completed 2026-10-17 at 19:32 UTC. This section reproduces the gate marker's scope, results, rules and qualifications; machine identifiers and private evidence paths are omitted.Rosetta
owned-directory-observationshared timeouts were retained: first repetition baseline/candidate 148.041/534.464 seconds (9 pass, 1 timeout each); second 523.069/532.797 seconds (9 pass, 1 timeout each); third both outer wrappers timed out at about 604 seconds before collecting assertions. None is represented as passing proof.The Rosetta Worker pair is SHARED_TIMEOUT_NOISE. Both arms completed all eight verified turns and every required request (control-plane 24, control-UI 12, history 48, subscriptions 4 plus 12 during load, readyz 12, session updates 8 and sessions-list 12). Baseline/candidate completed 2,010/2,002 observed tasks, but both reached the teardown deadline and required cleanup; TERM-to-exit was 2,277/2,272 ms. Neither exit is claimed clean, and the predeclared rule did not call for a quiet re-pair.
Predeclared rules: adjacent alternating pairs; admission load1 below 70 on the shared Mac or below 85% of logical CPUs on EC2; Worker observations below 85%. Shared timeouts count as noise; candidate-only timeout gets one quiet re-pair and a repeat stops; candidate-only non-timeout failure stops except an already declared confirmation rule. Worker smoke requires functional completion, the paired clean-exit rule and median RSS <=1.10. Mac readiness is report-only because quiet Linux owns that gate. VM messaging median RSS must be <=1.05; the old Gateway contract is six successful trials.
A zero-workload EC2 setup failure due to missing
lockfwas retained, then the same lock was held withfcntl.flock; no test, Worker or heap limit changed. Source, runtime, harness, coverage, outcome, admission, process and cleanup audits passed. The dedicated test instance was terminated and cleanup verified; no new dedicated host was allocated. No live Gateway was used.