Repository navigation
feat(gateway): distribute verified native release binaries - #2790
Conversation
|
@hidb4ai Thanks for lowering the Linux baseline to glibc 2.35 in 5699be8. Here is a measurement that could take it further without tying the baseline to the runner image. 2.35 still excludes RHEL/Rocky/Alma 9 and Amazon Linux 2023 (glibc 2.34), and RHEL 8 / Debian 10 (2.28). Building with
The x86_64 binary passed this PR's own
The aarch64 binary passed the same smoke test under qemu user emulation on Suggestion for the two Linux jobs:
For a later Windows change, if useful: a cross-build to @hidb4ai 感谢在 5699be8 里把 Linux 基线降到 glibc 2.35。这里补充一组实测数据,或许能把门槛再降一些,同时让基线不再依赖 runner 镜像。 2.35 仍然排除了 RHEL/Rocky/Alma 9 和 Amazon Linux 2023(glibc 2.34),以及 RHEL 8 / Debian 10(2.28)。改用
x86_64 二进制在下表所有环境中都通过了本 PR 自带的
aarch64 二进制在 qemu 用户态模拟下, 对两个 Linux 任务的建议:
以后做 Windows 支持时供参考:交叉编译到 |
Which issue or RFC does this PR close?
Related to the PowerContext 1.6.0 release preparation in #2783 and Gateway RFC #2199.
Rationale for this change
Gateway users currently need a Rust toolchain and a source checkout. This adds verified native downloads to the same PowerContext GitHub Release so users can run
pc-gatewaydirectly. Docker image distribution remains out of scope.What changes are included in this PR?
--version/-Vand--help/-h, available without Core or configuration. Official binaries embed the release version, full source SHA and unsuffixed Rust target; the Cargo crate version remains independent.Are there any user-facing changes?
Archives use
powercontext-gateway-<version>-<rust-target>.tar.gzunder the PowerContext release tag. Linux binaries require glibc 2.28+; their builds and native smoke checks run on Ubuntu 22.04. The Rocky Linux 8 checks validate older userspace on both native architectures, while sharing the runner's kernel. They do not establish compatibility with historical kernels or an entire older distribution.macOS binaries target macOS 15+ and are unsigned and not notarized. Core's Python/SQLite requirements and provider CLI requirements are separate from the Gateway's glibc baseline. Core and provider CLIs remain separately installed.
There are no native Windows archives or container images in this change. Windows still requires Unix transport and shutdown portability work; the guide describes running the Linux package inside WSL2 and distinguishes this from native Windows support and WSL2 host acceptance.
This PR does not change model request handling, database schemas or migration identities. It must merge before creating a release tag that should contain Gateway assets. Rerunning an older tag without this workflow does not backport distribution support.
Core smoke checks use uv-managed Python with a checked SQLite 3.38+ runtime and emit subprocess diagnostics on failure.
How was this change tested?
The candidate validation workflow checks out source commit
32b8bb27ada453347324de608588989f7a64b62a. Its temporary launcher is outside this PR; it calls the distribution workflow and produces candidate artifacts without publishing release assets.uv run prek run -a, including Ruff and full type checks, passed on the pinned source in CI.uv run pytest tests/test_gateway_distribution.py tests/test_ci_pipeline.py tests/test_workflow_actions.py -q: 85 passed locally and in CI. Archive round-trip checks cover the glibc 2.28 metadata for both Linux targets.These checks cover real SQLite Core startup, identity, proxying and authentication without model-provider calls. Published-attachment download verification requires release execution. No release assets have been published.
AI usage statement
OpenAI Codex assisted with the implementation, documentation and validation.