Skip to content

revert(daemon): ship official Node in the macOS terminal host again, keep stall telemetry - #33688

Merged
Jinwoo-H merged 1 commit into
mainfrom
jinwoo/revert-darwin-node-patch-keep-telemetry
Oct 26, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
jinwoo/revert-darwin-node-patch-keep-telemetry

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​16 $\color{#cf222e}{\Huge{\mathbf{−}}}$​592 $\color{#cf222e}{\Huge{\mathbf{−}}}$​576
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​71 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1002 $\color{#cf222e}{\Huge{\mathbf{−}}}$​931

Summary

Reverts #29133 except its daemon stall telemetry. The macOS terminal host goes back to the official Node 24.22.1 download, and the daemon protocol goes back to v51.

We want field data before committing to a patched Node runtime. The telemetry that stays (daemon_async_io_health: stalled once per daemon incarnation, then recovered with a duration bucket) tells us how often worker-pool stalls happen on official Node and how long they last.

What stays

  • daemon_async_io_health event, schema, registry entry and main-owned allow-list
  • Emission from DaemonPtyAdapter.getAsyncIoHealth, matched by daemon identity fields
  • app_version_match classification shared with the adoption event

What goes

  • Node source build, libuv patch, probe, stress fixtures and their tests
  • Mac workflow build steps, the old-ref guard and the hourly/daily token re-mint that only the long build needed
  • darwin_terminal_node PR check and its routing
  • Protocol v52 (back to v51). No release or hourly build published v52; the two in-flight hourly builds containing it were cancelled.

Testing

  • 657 tests across telemetry, protocol, PR routing and release workflow suites pass
  • pnpm tc:node passes
  • Protocol crossing check: upgrade from v1.4.240 adopts live terminals, rollback keeps them

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 413fabc9-efc0-41c3-a5de-c9fea6c0bf68
Commits

Reviewing files that changed from the base of the PR and between 99d0eed4ac63803c21c2f5ffd297b82d210fdaae and dcc24ee.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
Walkthrough

The change removes the patched Darwin terminal Node build, verification, stress, and PR-routing path. macOS workflows now download pinned Darwin Node runtimes for both architectures and use shorter job timeouts. Release job dependencies and dispatch polling change, and daemon compatibility protocol values return from 52 to 51. Ad hoc Windows publication waits for macOS completion without a direct success dependency. Windows runner detection now treats expression-based labels as potentially Windows.

Priority: Normal

Merge Risk: Low · up to 99d0e

This revert returns the macOS build to the official Node download and protocol v51. The release macOS job has a 60-minute limit, which is shorter than its configured publication retries. A slow, failing notarization could cancel the job before retries finish. Consider raising the limit or trimming the retry budget, but this is bounded and matches the pre-#29133 configuration.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the main changes, rationale, retained telemetry, removed components, and reported testing. However, it omits several template sections, including the linked issue, ELI5, Visua… Add the required template sections and complete them. Include an actual linked issue or explain the maintainer exception, add an ELI5, label the change and rationale clearly, state N/A with a reason for Visual Proof if there is no UI change…
Docstring Coverage Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 12 functions across 12 files. (7 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: restoring the official Node runtime on macOS while retaining stall telemetry.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the main changes, rationale, retained telemetry, removed components, and reported testing. However, it omits several template sections, including the linked issue, ELI5, Visual Proof or an explicit N/A, checklist items, review notes, and AI disclosure where applicable.

Resolution

Add the required template sections and complete them. Include an actual linked issue or explain the maintainer exception, add an ELI5, label the change and rationale clearly, state N/A with a reason for Visual Proof if there is no UI change, complete the Testing checkboxes, add the required checklist confirmations, and provide AI Disclosure if applicable. Include security, cross-platform, SSH, mobile, compatibility, and performance considerations in Notes or mark them N/A with reasons.

Full details: Docstring Coverage

Explanation

Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 12 functions across 12 files. (7 skipped: 7 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 14bcf442-e190-4fb7-9904-d2af496786a9
Commits

Reviewing files that changed from the base of the PR and between ddd55a4 and 99d0eed4ac63803c21c2f5ffd297b82d210fdaae.

Files selected for processing: 35
  • .github/workflows/adhoc-mac-build.yml
  • .github/workflows/daily-mac-build.yml
  • .github/workflows/hourly-mac-build.yml
  • .github/workflows/pr.yml
  • .github/workflows/release-cut.yml
  • .github/workflows/release-mac-build.yml
  • config/node-runtime-patches/darwin-worker-wait.json
  • config/node-runtime-patches/darwin-worker-wait.patch
  • config/reliability-gates.jsonc
  • config/scripts/__fixtures__/darwin-terminal-worker-wait.c
  • config/scripts/__fixtures__/darwin-threadpool-wait.h
  • config/scripts/adhoc-windows-parallelism.test.mjs
  • config/scripts/build-darwin-terminal-node.mjs
  • config/scripts/build-darwin-terminal-node.test.mjs
  • config/scripts/darwin-terminal-node-probe.cjs
  • config/scripts/darwin-terminal-node-workflow.test.mjs
  • config/scripts/darwin-terminal-worker-stress.cjs
  • config/scripts/macos-terminal-host-bundle.cjs
  • config/scripts/mobile-release-check-scope.test.mjs
  • config/scripts/package-electron-runtime-contract.test.mjs
  • config/scripts/pr-auxiliary-preflight-admission.test.mjs
  • config/scripts/pr-code-change-scope.mjs
  • config/scripts/pr-darwin-terminal-node-route.mjs
  • config/scripts/release-mac-build-workflow-dispatch.test.mjs
  • config/scripts/release-windows-signing-gate.test.mjs
  • config/scripts/run-release-mac-build-workflow.mjs
  • config/scripts/verify-darwin-terminal-node.mjs
  • config/scripts/win32-test-lane-registration.test.mjs
  • docs/bug-reproductions/darwin-worker-wakeup.md
  • docs/reference/macos-daemon-tcc-attribution.md
  • src/main/daemon/daemon-foreground-confirmation-protocol.test.ts
  • src/main/daemon/daemon-protocol-version.ts
  • src/shared/local-build-compatibility-contract.json
  • src/shared/local-build-compatibility-contract.ts
  • src/shared/telemetry-daemon-event-schemas.ts
Files with no reviewable changes: 16
  • config/scripts/build-darwin-terminal-node.test.mjs
  • config/node-runtime-patches/darwin-worker-wait.json
  • config/scripts/fixtures/darwin-threadpool-wait.h
  • config/scripts/fixtures/darwin-terminal-worker-wait.c
  • config/scripts/mobile-release-check-scope.test.mjs
  • config/scripts/darwin-terminal-node-probe.cjs
  • config/scripts/pr-auxiliary-preflight-admission.test.mjs
  • config/scripts/verify-darwin-terminal-node.mjs
  • config/scripts/pr-darwin-terminal-node-route.mjs
  • config/scripts/darwin-terminal-worker-stress.cjs
  • config/scripts/build-darwin-terminal-node.mjs
  • docs/bug-reproductions/darwin-worker-wakeup.md
  • config/node-runtime-patches/darwin-worker-wait.patch
  • config/scripts/darwin-terminal-node-workflow.test.mjs
  • .github/workflows/pr.yml
  • config/reliability-gates.jsonc

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@@ -49,8 +49,7 @@ jobs:
if: ${{ !cancelled() && (!inputs.qualification_only || needs.qualification-template.result == 'success') && github.repository == 'stablyai/orca' }}
# Keep Blacksmith mac notarization outside SignPath’s GitHub-hosted Windows provenance.
runs-on: blacksmith-6vcpu-macos-15
# Includes the 180-minute cold runtime build and the existing packaging retry budget.
timeout-minutes: 360
timeout-minutes: 60

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major · Stability & Availability · Quick win

Give the release job enough time for its configured retries.

If the first publication attempt takes 45 minutes, this 60-minute job limit leaves at most 15 minutes for installation, build, verification, and two remaining publication attempts. GitHub cancels a job when its job timeout expires. Increase the outer limit to cover the intended retries, or reduce the retry budget. Otherwise, a transient notarization failure can cancel an otherwise recoverable release build. (docs.github.com)

…keep stall telemetry

Reverts #29133 except its daemon async-I/O stall telemetry, so we can measure how
often stalls happen on official Node before committing to a patched runtime.
Protocol returns to v51: no release or hourly build published v52.
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.

1 participant