Repository navigation
attention 2.3.1: real per-platform binaries, arm64 LDAPR gate (Pi 4 SIGILL) - #1456
Merged
Merged
Conversation
@ruvector/attention-linux-arm64-gnu 2.3.0 contains 312 LDAPR instructions (built before #1384 dropped the workspace +rcpc/cortex-a76 flags) and SIGILLs on Cortex-A72 (Pi 4). Verified under qemu-aarch64 -cpu cortex-a72; a rebuild from current main has 0 LDAPR and loads/computes there. The build job also packaged the wrong files: npm install pulls the host's published @ruvector/attention-<host> binary into node_modules, and the copy step's find | head -1 picked that up instead of the fresh napi output. The committed npm/linux-arm64-gnu binary is x86-64 and npm/darwin-x64 is arm64. Copy exactly attention.<platform>.node, assert the file's architecture per platform, and run the arm64 LDAPR/GLIBC gate. check-arm64-node-binary.sh: refuse non-aarch64 ELFs (an x86 file passed the LDAPR count vacuously), match ldapr only in the mnemonic column, and keep running when a binary has no GLIBC_ symbols. Bump the platform packages and optionalDependencies to 2.3.1. Co-Authored-By: claude-flow <ruv@ruv.net>
This was referenced Nov 10, 2026
vitaly-z
pushed a commit
to vitaly-z/ruvector
that referenced
this pull request
Nov 11, 2026
…2 qemu test @ruvector/graph-node-linux-arm64-gnu 2.1.2/2.1.3 (the binary the 2.1.3 wrapper installs) has 2464 LDAPR instructions: it was built before ruvnet#1384 dropped Cortex-A76/+rcpc from the workspace .cargo/config.toml, so it SIGILLs on Pi 4 / Jetson (Cortex-A72/A57). A rebuild from main is LDAPR-free; this makes CI prove it on every build. build-graph-node.yml: - Prepare artifact takes the exact napi output index.<platform>.node instead of `find -name "index.*.node" | head -1` (same class as ruvnet#1456). - Assert each binary's architecture matches its platform (file). - Gate linux-arm64 with scripts/ci/check-arm64-node-binary.sh (aarch64 ELF, 0 LDAPR, GLIBC <= 2.34). - Run test.js with the fresh arm64 binary under qemu-aarch64 -cpu cortex-a72; the published 2.1.3 binary exits 132 (SIGILL) on the same command, the main build passes. package.json: 2.1.3 -> 2.1.4; drop the untrue "wasm" keyword, add "cypher" and "hypergraph". optionalDependencies stay at published versions (optional-deps-resolvable-on-npm); the publish job locks them. Co-Authored-By: claude-flow <ruv@ruv.net>
vitaly-z
pushed a commit
to vitaly-z/ruvector
that referenced
this pull request
Nov 11, 2026
…emu test @ruvector/diskann-linux-arm64-gnu 0.1.3 has 198 LDAPR instructions: it was built before ruvnet#1384 dropped Cortex-A76/+rcpc from the workspace .cargo/config.toml, so it SIGILLs on Pi 4 / Jetson (Cortex-A72/A57). A rebuild from main is LDAPR-free; this makes CI prove it. build-diskann.yml: - Prepare artifact takes the exact napi output index.<platform>.node instead of `find npm/packages/diskann -name "*.node" | head -1`, which also matches node_modules (same class as ruvnet#1456). - Assert each binary's architecture matches its platform (file). - Gate linux-arm64 with scripts/ci/check-arm64-node-binary.sh (aarch64 ELF, 0 LDAPR, GLIBC <= 2.34). - Run test.js with the fresh arm64 binary under qemu-aarch64 -cpu cortex-a72 (build, search, delete, save/load, corrupt-file error). - Platform package template: ADR-356 metadata (keywords, a description that names the parent, canonical ruvnet/ruvector URLs). package.json stays 0.1.4 (bumped, never published). Keywords no longer claim HNSW/GNN/knowledge-graph/link-prediction, which this package does not do; they now name Vamana, ANN, PQ and SSD. optionalDependencies stay at the published 0.1.3 (optional-deps-resolvable-on-npm); the publish job locks them. Co-Authored-By: claude-flow <ruv@ruv.net>
vitaly-z
pushed a commit
to vitaly-z/ruvector
that referenced
this pull request
Nov 11, 2026
…, ADR-356 platform metadata On top of the 22.04-container build (glibc floor 2.39 -> 2.34): - Copy steps take the exact cargo output for the target (libruvllm.so / libruvllm.dylib / ruvllm.dll). The old chain first copied `examples/ruvLLM/*.node` if any existed, so a stray .node file would have shipped in place of the fresh build (same class as ruvnet#1456). The no-op `napi artifacts ... || true` is gone. - Assert each binary's architecture matches its target (file). - Gate linux-arm64 with scripts/ci/check-arm64-node-binary.sh (aarch64 ELF, 0 LDAPR, GLIBC <= 2.34). - Smoke-test the arm64 binary under qemu-aarch64 -cpu cortex-a72: SimdOperations dot/cosine/softmax values and RuvLlmEngine.route(). The published 2.1.0 binary dies with SIGILL on the same script. - pull_request trigger (workflow, examples/ruvLLM sources, .cargo config) so the gate runs before merge; publish stays tag/dispatch-only. - Platform packages: ADR-356 metadata (11-12 keywords, a description that names @ruvector/ruvllm, canonical ruvnet/ruvector URLs). Co-Authored-By: claude-flow <ruv@ruv.net>
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.
Bug.
@ruvector/attention-linux-arm64-gnu@2.3.0has 312 LDAPR instructions (2.2.3 had 305). Both were built before #1384 removed the workspace+rcpc/cortex-a76flags, so they SIGILL on Cortex-A72 (Pi 4) and Carmel (Jetson Xavier).Measured under
qemu-aarch64-static -cpu cortex-a72with an arm64 Node 20.18.1:The 2.3.0 binary gives identical numbers under
-cpu max, so the crash is purely the missing LRCPC feature.Second bug found while fixing it. The build job packaged the wrong binaries.
npm installpulls the host's previously published@ruvector/attention-<host>intonode_modules, and the copy step'sfind ... ! -path */npm/* | head -1picked that file up instead of the freshattention.<platform>.node. On main today, the committednpm/linux-arm64-gnubinary is x86-64 (byte-identical to linux-x64) andnpm/darwin-x64is arm64. The copy step now takes the exact napi output path, and a new step asserts the file architecture per platform (file -b).Gate. The linux-arm64-gnu job runs
scripts/ci/check-arm64-node-binary.sh(from #1453): LDAPR must be 0 and GLIBC must be <=2.34. The script now also:ldapronly in the mnemonic column (objdump prints the file path in its header)GLIBC_symbolsRelease. Platform packages and
optionalDependenciesgo to 2.3.1 (the main package was already 2.3.1 on main, unpublished). After merge, all five platform packages and the main package will be published from the main-push run's CI artifacts, each passing the arch/LDAPR/GLIBC checks, and read back with a fresh install.Other native packages with the same problem (current arm64 npm tarballs, same gate):
Those need their own rebuilds and are not part of this PR.
🤖 Generated with claude-flow