Repository navigation
fix(packaging): build the Linux agent on glibc 2.34 so older distros run it - #5545
Conversation
…run it The GAIA agent wouldn't start on Ubuntu 22.04, Debian 12 and RHEL 9: it was frozen on the newest Ubuntu runner, so its Python runtime needed glibc 2.38 and failed at launch with "GLIBC_2.38 not found". The Linux binary is now built in a Rocky Linux 9 container (glibc 2.34) with the distro's own shared-library Python 3.12. A build check fails if the binary or anything packed in it needs a newer glibc, and the smoke test now runs on Rocky 9, Ubuntu 22.04, Debian 12 and Ubuntu 24.04 before a release can use the build. The bundled OpenSSL now comes from RHEL and would look for CA certificates under /etc/pki, so a runtime hook points it at the host's bundle when its own default is missing; otherwise HTTPS from run_python scripts would fail on Ubuntu and Debian. The smoke test checks that on every distro. Closes #5526
|
Verdict: Approve with suggestions This fixes the Linux agent refusing to start on Ubuntu 22.04, Debian 12 and RHEL 9: the binary is now built on glibc 2.34, and the build fails if anything inside it needs a newer glibc. Before release, it is smoke-tested on all four target distros. I found no correctness bugs. The design holds up: the glibc gate won't pass on an empty scan, the CA-bundle hook does nothing when the host's default store already works, and the tests cover the parsing details that could go wrong. The one thing to confirm before merge is the new container build itself. Nothing on this PR has run Real-world evidenceN/A: the evidence stage reported no CLI, API or MCP surface changed. This PR changes the packaging and CI pipeline only. The verdict rests on a static review. The new tests didn't run here because pytest isn't installed on this runner. Only the workflow dispatch named above can prove the build works on real distros. 🔍 Technical detailsIssues found 🟡 Container build is unverified (
None of these looks wrong, but the PR's own test plan depends on that dispatch, so tick it before merge. 🟢 This would also need 🟢 Strengths
|
…ject backport Rocky 9's own libgcc_s imports _dl_find_object@GLIBC_2.35, which RHEL 9's glibc 2.34 backports and Ubuntu 22.04 and Debian 12 have natively, so a bare version cap rejected a binary that runs on every target. Also catches GLIBC_ABI_DT_RELR, which needs glibc 2.36 but carries no number.
|
The dispatch is green on the final commit: the Rocky 9 freeze, the glibc gate, all four distro smoke tests, and the unchanged Windows and macOS rows (run 39677811952).
|
…5625) The v0.25.1 notes stopped at the release PR (amd#5474). That left fixes that users will notice out of the notes, and the changelog stopped short of the release commit. This PR adds those three fixes: the GAIA agent starts on Ubuntu 22.04, Debian 12 and RHEL 9 (amd#5545); Intel Macs can install again (amd#5546, amd#5481); and Windows settings folders you can read but can't create files in now load (amd#5469). It also adds six fixes from rc6 and rc7 and regenerates the changelog from git against rc7. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.1.mdx --tag v0.25.1` - [x] `pytest tests/unit/test_docs_json_release.py` - [x] `mintlify validate` from `docs/` - [x] The changelog lists 213 commits, the same count as `git rev-list --count v0.25.0..v0.25.1-rc7`. The narrative stays within the 350-word patch cap.
amd#5545 shipped in GAIA 0.25.1, which package 0.3.1 was released with, so the fix belongs under 0.3.1, not Unreleased.
…md#5857) ## Summary The published `@amd-gaia/gaia` docs now state that the Linux x64 agent needs glibc 2.34 or newer. ## Why amd#5545 rebuilt the Linux agent on glibc 2.34 so it starts on Ubuntu 22.04, Debian 12 and RHEL 9, but the package docs never recorded the fix or the floor. Someone on an older distro had no way to tell why the agent would not start. ## Linked issue Closes amd#5557 ## Changes - `[Unreleased]` CHANGELOG entry for the glibc 2.34 rebuild - glibc 2.34 floor added to the README requirements, SPEC section 2.4 and SKILL section 4 ## Test plan - [ ] `grep -n glibc hub/agents/gaia/npm/{README,SPEC,SKILL}.md` shows the same floor in all three - [ ] The CHANGELOG entry matches the v0.25.1 release note ## Evidence Docs only, no code or agent behaviour changed, so no screenshots or API output apply. ## Checklist - [x] I have linked a GitHub issue above (`Closes #N` / `Fixes #N` / `Refs #N`). - [x] I have described **why** this change is being made, not just what changed. - [ ] I have run linting and tests locally (`python util/lint.py --all`, `pytest tests/unit/`). - [ ] I have attached **real-world evidence** matched to the surface I changed (see Evidence above), or marked each surface N/A. - [x] I have updated documentation if user-visible behavior changed (see CONTRIBUTING.md). --------- Co-authored-by: burgulvedant <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
The GAIA agent wouldn't start on Ubuntu 22.04, Debian 12 or RHEL 9: it was frozen on the newest Ubuntu runner, so it needed glibc 2.38 and died at launch with
GLIBC_2.38 not found. The shipped v0.25.0 agent has the same problem. The Linux binary is now built on glibc 2.34 (Rocky Linux 9), which covers all three. The build now fails if anything packed into the binary needs a newer glibc, and the smoke test runs on all four distros before a release can use the build./etc/pki, which Ubuntu and Debian don't have, so arun_pythonscript's HTTPS would have failed there. A small runtime hook points it at the host's CA bundle, and the smoke test checks this on every distro. On Ubuntu and Debian, the run shows the hook switching to/etc/ssl/certs/ca-certificates.crt.test_installers_headless.ymlinstalls published releases, so itsknown_failures.jsonentry for GAIA agent won't start on Ubuntu 22.04, Debian 12 or RHEL 9: the Linux build needs glibc 2.38 #5526 stays for now.ubuntu22-tui-debshould clear at the next RC, which rebuilds packages from the candidate's agent.ubuntu22-install-shinstalls the hub's flagship, so it clears only after the next flagship release. Remove the entry for each row once it stops matching.Test plan
build_flagship_sidecar.ymldispatched on this branch (run 39677811952): the glibc check passes at 2.34, and the smoke test passes on Rocky 9 (2.34), Ubuntu 22.04 (2.35), Debian 12 (2.36) and Ubuntu 24.04 (2.39)python -m pytest hub/agents/gaia/python/tests/test_linux_glibc_floor.py🔍 Technical details
libpython, which PyInstaller needs. Rocky 9'spython3.12package has one and is built for the same glibc.UV_PYTHON_PREFERENCE=only-systemkeeps uv from substituting another interpreter.check_glibc.pyreads every ELF file in the one-file archive (230 in this build) with PyInstaller'sCArchiveReader, then checks each glibc symbol imported above the floor. The only exception allowed is_dl_find_object@GLIBC_2.35. RHEL 9's glibc 2.34 backports it, Rocky's ownlibgcc_simports it, and Ubuntu 22.04 and Debian 12 have it natively.GLIBC_ABI_DT_RELRcounts as 2.36. If it finds nolibpython3or reads nothing, the check stops with an error instead of passing.publish.yml,release_agent_gaia.ymland the dry-run train call this workflow withuses:, so they pick up the change unedited. The newdistro-smokejob is part of what they wait on.Closes #5526