Repository navigation
build(orcad): server node-pty slots at glibc 2.28, plus a glibc 2.17 compat slot - #24134
Conversation
|
There was a problem hiding this comment.
Important
The default server glibc slots never actually link libstdc++ statically, so they will not pass the new GLIBCXX_3.4.25 floor they are built under — while the workflow comment and the doc both claim they do. Details inline.
Reviewed changes
- Server glibc slots now build in
manylinux_2_28and are gated at glibc 2.28 /GLIBCXX_3.4.25: thelinux_glibc_floorjob moves from anubuntu:20.04container to digest-pinned manylinux_2_28 images, andverify-linux-glibc-floor.cjsgains named floor profiles (DESKTOP_GLIBC_FLOORunchanged at 2.31,SERVER_SLOT_GLIBC_FLOOR2.28,COMPAT_SLOT_GLIBC_FLOOR2.17). - New
linux-x64-glibc217compat slot: built inmanylinux2014_x86_64viadocker runwith-static-libstdc++/-static-libgcc, gated at 2.17, and refused iflibstdc++.so/libgcc_s.soremains inDT_NEEDED. - Compat Node pin:
NODE_RUNTIME_COMPAT_ASSETS/COMPAT_SERVER_TARGETSplusnodeRuntimeAsset(),NODE_DIST_PLATFORMS['linux-x64-glibc217'], and a--print-runtimemode on the prebuild script. - Refactors:
prebuildCompileGypitakes an options object, generated-block rendering splits intorenderAssetTable, andcheck-node-runtime-pinvalidates both asset tables.
I verified the pinned compat archive name and archiveSha256 against unofficial-builds v24.21.0/SHASUMS256.txt, and that nodeRuntimeAsset() is prototype-safe.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| os: [ubuntu-22.04, ubuntu-24.04-arm] | ||
| # Design D6: server glibc slots are built and gated on glibc 2.28, where the pinned Node's | ||
| # own floor is; the desktop keeps its Ubuntu 20.04 gate. gcc-toolset-14 supplies C++20 and | ||
| # links newer libstdc++ symbols statically, so the slot needs only RHEL 8's GLIBCXX_3.4.25. |
There was a problem hiding this comment.
This comment says the default server glibc slots link newer libstdc++ symbols statically, but build-orcad-prebuilds.mjs:219 only enables -static-libstdc++ for linux-x64-glibc217. Either the code needs to static-link the default glibc slots too, or this comment (and the matching doc sentence) should be corrected.
There was a problem hiding this comment.
Correction to the premise here: the default glibc slots pass the GLIBCXX_3.4.25 gate while dynamically linked (CI on 3b9038aeff: linux_glibc_floor x64 and arm64 both green), so no code change is required. What remains valid is only the wording — the comment claims a static link the build does not do.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| same gate at a **glibc 2.28 / `GLIBCXX_3.4.25`** floor instead of the desktop's 2.31, because | ||
| the pinned Node they ship beside already runs on 2.28 and a 2.31 slot would leave 2.28–2.30 | ||
| hosts with a runtime but no terminal (design D6). The container's gcc-toolset supplies C++20 | ||
| and links newer libstdc++ symbols statically, so the slot needs only RHEL 8's system |
There was a problem hiding this comment.
As with the workflow comment, this says the container's gcc-toolset "links newer libstdc++ symbols statically", but the default server glibc slots get no -static-libstdc++ (build-orcad-prebuilds.mjs:219 gates it on isCompatSlot). Once the build is fixed, this sentence should describe the real behavior.
There was a problem hiding this comment.
Correction to the premise here: the default glibc slots pass the GLIBCXX_3.4.25 gate while dynamically linked (CI on 3b9038aeff: linux_glibc_floor x64 and arm64 both green), so no code change is required. What remains valid is only the wording — this sentence claims a static link the build does not do.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…c 2.17 compat slot
Design D6: the default linux-{x64,arm64}-glibc node-pty slots now build in
manylinux_2_28 (digest-pinned) and are gated at glibc 2.28 / GLIBCXX_3.4.25
through a floor profile on verify-linux-glibc-floor.cjs; the desktop keeps
its Ubuntu 20.04 (2.31) default.
Adds the opt-in linux-x64-glibc217 compat target: NODE_RUNTIME_COMPAT_ASSETS
pins the unofficial glibc-217 Node (update/check pin scripts cover it, outside
SERVER_TARGETS), and a new CI lane builds the compat slot in manylinux2014
with static libstdc++, gates it at glibc 2.17 with no shared C++ runtime in
DT_NEEDED, and smokes it under the glibc-217 Node.
…erTarget; keep the glibc doc's slot-name paragraph intact
3b9038a to
b3aade3
Compare
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (16)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe changes add an opt-in Priority: ➖ Normal Merge Risk: 🔵 Low · up to This changes build and CI tooling for the Linux node-pty prebuilds. The risk is that the new glibc 2.28 floor job fails in CI because the default slots may link a newer libstdc++ than the gate allows. Runtime behavior is not affected because the compatibility slot is opt-in. Confirm the manylinux lanes pass before merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The compatibility runtime remains opt-in and outside default server packaging and SSH deployment. Downloads retain hash checks, and the new qualification lane does not gain additional repository permissions. No introduced security-control bypass was established, but upstream provenance and concurrent build recovery are not fully proven. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 51.72% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 14 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |

ELI5
Orca's pinned Node runs on Linux with glibc 2.28, but the node-pty builds needed 2.31, so hosts on 2.28–2.30 (RHEL 8, Debian 10) would have been refused. Server builds now target 2.28. There's also an optional build for very old hosts (glibc 2.17, CentOS 7).
What Changed
linux_glibc_floorinnode-server-tests.ymlnow builds the server glibc slots in manylinux_2_28 images pinned by digest, with gcc-toolset-14 for C++20.verify-linux-glibc-floor.cjstakes a floor per build:GLIBCXX_3.4.25linux-x64-glibc217uses the pinned unofficial glibc-217 Node, whose hash matches the unofficial-builds SHASUMS. It's kept in a separate compat list, not the default 8 targets. Its node-pty is built in manylinux2014 with static libstdc++ and gated at 2.17.Why
This settles the design question the Phase 1 prebuilds raised. Rung A covers 2.28 and newer, matching Node itself. The compat slot is the building block for rung B.
Linked Issue
Part of the Node runtime plan (Phase 2, design D6). Stacked on #24110.
Visual Proof
N/A. This changes CI and the build, with no UI.
Testing
Unit and workflow-shape tests pass, and every pinned digest and hash was checked against upstream.
Not yet run: there's no Docker locally, so this PR's CI is the first real run of the manylinux lanes. In particular it will show whether
-static-libstdc++links on manylinux2014.Not wired yet: the loader, the SSH materializer and the ladder don't choose the compat slot.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.