Repository navigation
Conversation
xeophon
marked this pull request as ready for review
November 24, 2026 20:48
Contributor
ApprovabilityVerdict: Approved at 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. |
This branch has not been deployed
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.
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
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
INSTALLscript in node.py now detects glibc 2.17–2.27 on Linux x86_64 and selects thelinux-x64-glibc-217Node.js flavor instead of the standardlinux-x64build.linux-x64-glibc-217archive downloads from the unofficial Node.js builds host.install_nodeverifies the archive against a newGLIBC_217_SHA256digest before extracting it; other flavors keep the existing flow.ensure_nodepasses the new digest to the installation script.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_VERSIONis 2.17–2.27, instead of always using the officiallinux-x64binary (which needs glibc ≥ 2.28).install_nodetakes a flavor, builds the download URL from the official or unofficial-builds dist as needed, and forlinux-x64-glibc-217verifies the archive against a pinnedGLIBC_217_SHA256(sha256sum -c) before extract.ensure_nodepasses that checksum throughAGENT_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.