Skip to content

Run harness Node on legacy glibc task images - #3270

Open
xeophon wants to merge 1 commit into
codex/fix-legacy-curl-downloadsfrom
fix/node-legacy-glibc-runtime
Open

xeophon wants to merge 1 commit into
codex/fix-legacy-curl-downloadsfrom
fix/node-legacy-glibc-runtime

Conversation

@xeophon

@xeophon xeophon commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The official Linux x64 Node binary requires glibc 2.28. Several SWE-sweep tasks pin older distributions to reproduce their original Python, JavaScript, and native build environments. On those images Node fails in the dynamic loader before the harness starts.

Use the Node.js project's glibc 2.17 compatibility build on Linux x64 with glibc 2.17–2.27. Verify its pinned SHA-256 before extraction and keep the existing exact-version and startup checks. Installation stays in the private harness directory. The task's system interpreter, libc, and PATH retain their original behavior. Release checksums

Stacked on #3149, which supplies the old-curl retry loop. The glibc selection and archive check are the changes in this PR.

Validation

  • Started Node and ran npm from the harness installation on the 13 pinned SWE-sweep images for arrow-py, babel, dateutil, dayjs, godot, isomorphic-git, luxon, mpmath, numpy, opencv, pandas, scikit-learn, and scipy. All 13 passed with the current Node 24.22.3 pin. All 13 also passed a compatibility replay using the older 22.23.4 pin, its checksum, and its original version gate.
  • The Verifiers unit suite passed with 313 tests and 19 skips. Repository pre-commit checks passed.

The corresponding SWE-sweep taskset PR contains the isolated verifier corrections and their unscored controls. prime-envs #1101

Note

Install glibc-217 Node.js flavor on legacy glibc Linux task images

The INSTALL script in node.py now detects glibc 2.17–2.27 on Linux x86_64 and selects the linux-x64-glibc-217 Node.js flavor instead of the standard linux-x64 build.

  • The linux-x64-glibc-217 archive downloads from the unofficial Node.js builds host.
  • install_node verifies the archive against a new GLIBC_217_SHA256 digest before extracting it; other flavors keep the existing flow.
  • ensure_node passes the new digest to the installation script.
  • Behavioral Change: Linux x86_64 hosts with glibc 2.17–2.27 now get a different Node.js binary from a different download host.

Macroscope summarized 9bdc926.


Note

Medium Risk
Changes bootstrap Node selection and supply-chain verification for legacy SWE task images; mistakes could break ACP harness startup or accept a tampered unofficial binary.

Overview
Harness Node install now picks a Linux x64 glibc 2.17-compatible tarball from unofficial Node builds when getconf GNU_LIBC_VERSION is 2.17–2.27, instead of always using the official linux-x64 binary (which needs glibc ≥ 2.28).

install_node takes a flavor, builds the download URL from the official or unofficial-builds dist as needed, and for linux-x64-glibc-217 verifies the archive against a pinned GLIBC_217_SHA256 (sha256sum -c) before extract. ensure_node passes that checksum through AGENT_NODE_GLIBC_217_SHA256. Existing version gates, Alpine/musl paths, and curl retry behavior are unchanged.

Reviewed by Cursor Bugbot for commit 9bdc926. Bugbot is set up for automated code reviews on this repo. Configure here.

@macroscopeapp

macroscopeapp Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 9bdc926

Macroscope's review found this PR approvable — Legacy glibc task images use a checksum-pinned compatible Node build while other platforms retain their existing downloads. The change preserves system libc and validates the download before replacing the dedicated harness installation.

You can add or adjust custom eligibility rules. Learn more.

@xeophon
xeophon added this pull request to stack #3271 November 24, 2026 21:01

This branch has not been deployed

No deployments
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