Repository navigation
fix(release): build x86 Linux packages against glibc 2.34 - #466
Merged
Merged
Conversation
|
Assessment: Approve I reviewed head Checks that held
The regression controls are well targeted: there are workflow-routing tests, and each checker rule has its own isolated mutation. |
kevin-orellana
enabled auto-merge (squash)
November 16, 2026 19:45
pgrayy
approved these changes
Nov 16, 2026
7 tasks done
10 tasks done
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.
Human readable section
Problem: The x86-64 Linux archive retained from
Release Boxrun 43488349029 cannot start on the selected Amazon Linux 2023 baseline. Itsboxexecutable requires GNU C library (glibc) 2.35, but that system provides 2.34. Evenbox --versionfails before Box starts. The x86 build uses Ubuntu; the ARM64 build already uses an Amazon Linux 2023 container.Solution: Build x86 with the existing Amazon Linux 2023 container. Check the architecture, program loader, and glibc requirements of all three packaged executables, and verify the packaged Box version. The checker keeps ARM64 as its default and adds an explicit x86 target.
Trade-off: The x86 release job also builds the existing container image. The x86 archive remains a workflow artifact; downloader integration, installed-package qualification, and publication are separate milestones. Workloads still require Box's
EXPERIMENTAL_X86_SUPPORT=TRUEenvironment setting.Both native Linux jobs build in an Amazon Linux 2023 container and check the same three-executable package layout. The x86-64 package remains a workflow artifact. Edit the diagram.
Description
The release workflow sends both native Linux targets through the existing pinned Amazon Linux builder. macOS keeps its existing build path. ARM64 keeps its existing package and workload checks.
python3 scripts/check-linux-package.py stage/box-core --target x86_64-unknown-linux-gnuchecksbox,strands-box-sock-alias, andstrands-box-contain-trampoline. It requires the x86 machine type,/lib64/ld-linux-x86-64.so.2, and public glibc requirements no newer than 2.34. Omitting--targetpreserves the ARM64 check. The workflow runs the checker inside the existing builder with the source mounted read-only, matching ARM64. A failed check fails the x86 build job before artifact upload. Every build also verifies its packaged Box version.This change does not modify Box runtime code, access rules, the experimental flag, the downloader, or published release assets.
Related Issues
Part of #45: X3, package validation. This does not close the x86 delivery tracker. Native test automation in #446 remains a separate change.
Type of Change
Bug fix
Testing
39e7b9c, stamped0.2.3: all three executables pass architecture, loader, and glibc 2.34 checks inside the builder with the source mounted read-only. Nativebox --versionexits 0 and reportsstrands-box 0.2.3. Release compilation took 2 minutes 27 seconds with cached dependencies. Archive SHA-256:12c872663378da843c14153e8d2163f348bd7a688f1800f655aa9fd6b248668b.70eb3af, version stamp0.2.3: native Amazon Linux 2023 rejectsbox --versionbecausehypotrequiresGLIBC_2.35. The new checker also rejects this archive. The build job succeeded; the overall run later ended canceled./srcis read-only. No rebuild or workload run was required for this control.box --versionreportsstrands-box 0.2.3.box --versionexits 0 and printsstrands-box 0.2.3. The build used Rust 1.98.1 and the same 408 compiled package/version entries as the retained build; release compilation took 9 minutes 24 seconds.Hosted packaging tests and all four CodeQL analyses pass at
39e7b9c. The updated Actions analysis reports no findings.Actionlint reports four diagnostics that also occur on unchanged
bd388093: two existing cache-mode keys and two existingxcode-27runner labels. The workflow parses as YAML, and all six affected shell blocks passbash -n.Native package comparison
The retained x86 archive has SHA-256
7127bb660210ebf0b432289e1e42ac140d0337880074fa13f91820eb4868b7b3. The replacement archive has SHA-2561a60bd959346463bf57a5283eaf681d99fa6b349fb04cd78785a7225788b4f0b. Each archive contains all three executables from its own build. The same checker rejects the retained archive and accepts the replacement. The replacement'shypotimport requiresGLIBC_2.2.5, below the 2.34 ceiling.The original hosted job did not preserve its stamped source tree. The comparison matches its recorded source, version stamp, compiler, target, features, and compiled package versions; it is not a byte-for-byte reproducibility claim.
The historical comparison uses source
70eb3afand the same0.2.3version stamp to isolate the build-environment change. The separate native build of39e7b9cvalidates this PR's package. Local native builds stamped the two shipped crate versions and their lockfile entries directly;cargo-editwas unavailable. No dependencies changed during stamping or compilation. These checks do not qualify an installed release. No new Codex, Claude, installed-package lifecycle, or published-download runs are claimed.A full unsigned GitHub release rehearsal remains deferred while the shared release workflow is reserved for the v0.2.3 publication. No tag or release was published by this work.
python3 -m unittest discover -s scripts -p 'test_*.py' -v. No Rust source or Cargo inputs changed in this PR, so Cargo unit tests and lint were not rerun. The native release builds are recorded above.cargo fmt --allandcargo clippy --workspace --all-targets --all-features -- -D warnings— not applicable; no Rust changes.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.