Skip to content

feat(bootstrap): add linux-arm64 platform and advisory Linux ARM CI legs - #384

Open
StefanSteiner wants to merge 4 commits into
tableau:mainfrom
StefanSteiner:feat/linux-arm64-ci
Open

StefanSteiner wants to merge 4 commits into
tableau:mainfrom
StefanSteiner:feat/linux-arm64-ci

Conversation

@StefanSteiner

@StefanSteiner StefanSteiner commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Upfront work for Linux ARM (aarch64-unknown-linux-gnu) so CI can show what breaks before the next full Hyper API release.

  • hyperdb-bootstrap: new Platform::LinuxArm64 (linux-arm64), host detection, and the manylinux2014_aarch64 wheel tag in the builtin pin.
  • No digest pinned yet. aarch64 wheels first appeared on PyPI at 0.0.27426, a Linux-only upload. The pin stays at 0.0.26479, which has no aarch64 wheel. verify reports linux-arm64 as "not yet published" when it has a tag, no digest, and no wheel. A platform that pins a digest and is missing is still a hard failure, so the four existing platforms are checked exactly as before.
  • CI: two advisory (continue-on-error) legs on ubuntu-24.04-arm: test (ubuntu-24.04-arm) and hyperdb-api-node (build + smoke, linux-arm64). Both download hyperd 0.0.27426 with --version (unverified, WARN logged), since the pin has no ARM wheel. Existing check names are unchanged. The release verify gates match exact names, so these cannot block a release.

Deliberately not in this PR

  • npm linux-arm64-gnu packages and release matrix entries (npm-build-publish.yml, assemble-npm.sh, bin.js, index.js, drift guard). They need an aarch64 wheel at the pinned version, and adding them now would break the next release. Follow-up once a full release with all platforms ships.
  • Bumping the hyperd pin (it would be an engine change mixed into a platform change, and 0.0.27426 has no macOS/Windows wheels).

Test plan

  • cargo test -p hyperdb-bootstrap (32 unit + doc tests pass), including new tests for NotYetPublished and the 404 tolerance
  • cargo clippy -p hyperdb-bootstrap --all-targets --all-features -- -D warnings, cargo fmt --check, RUSTDOCFLAGS="-D warnings" cargo doc
  • hyperdb-bootstrap verify against live PyPI: four platforms OK, linux-arm64 "not yet published"
  • markdownlint on touched files
  • ARM legs on this PR, native ubuntu-24.04-arm against hyperd 0.0.27426.r3182f176: workspace tests pass (110 test binaries, 0 failures) and the Node addon builds and passes its smoke test.

Finding from the ARM run

The first ARM run failed two tests, sync_/async_query_timeout_cancels_slow_query. This was not ARM-specific: 0.0.27426 words a server-side query timeout as 53S01 "The query exceeded the time limit of N milliseconds", where older engines said "canceled". The timeout fires on time (112 ms for a 100 ms limit). The tests now accept the SQLSTATE and both wordings, which should also de-risk the pin bump to the next full release.

Teach hyperdb-bootstrap about aarch64 Linux: Platform::LinuxArm64
(slug linux-arm64), host detection, and the manylinux2014_aarch64 wheel
tag in the builtin pin. aarch64 wheels first appeared on PyPI at
0.0.27426 (a Linux-only upload), so the pinned 0.0.26479 has none: the
pin carries the tag but no digest, and verify reports the platform as
not yet published instead of failing. A platform that pins a digest and
is missing is still a hard failure.

CI gains two advisory (continue-on-error) legs on ubuntu-24.04-arm: the
workspace test job and the hyperdb-api-node build + smoke job. Both fetch
hyperd 0.0.27426 via --version, since the pin has no aarch64 wheel yet.
Existing check names are unchanged and the release verify gates match
exact names, so the advisory legs cannot block a release.
hyperd 0.0.27426 reports a server-side query timeout as 53S01 "The query
exceeded the time limit of N milliseconds" instead of a "canceled"
message. The timeout itself still fires on time (112 ms for a 100 ms
limit); only the text the two timeout tests matched on changed. Accept the
SQLSTATE and the new wording alongside the old.

Also run the advisory ARM leg with --no-fail-fast so one failing test
binary does not hide the results of the rest.
0.0.27579 is the first full Hyper API release with wheels for all five
platforms, including manylinux2014_aarch64. Bump the pin (toml + the
mirrored npm-build-publish.yml values, drift guard green), add the
linux-arm64 sha256, and point the advisory Linux ARM CI legs at the pin
instead of a --version override.
…and hyperdb-api-node

Add the hyperdb-mcp-linux-arm64-gnu and hyperdb-api-node-linux-arm64-gnu
platform packages: a native ubuntu-24.04-arm leg in the npm build matrix
(bundling the pinned linux-arm64 hyperd, drift guard green), publish and
version-injection loops, launcher/loader selection for ARM Linux glibc,
the napi target and ci-copy-artifact mapping, assemble-npm.sh host
detection, the cargo-about target list, and the in-source version guard.
musl remains unsupported.
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