yggdrasil-engine: add build-yggdrasil-engine.yml for riscv64 wheels - #1867
Merged
Merged
Conversation
luhenry
added a commit
that referenced
this pull request
Sep 12, 2026
luhenry
force-pushed
the
yggdrasil-engine
branch
from
September 12, 2026 23:38
48cf039 to
261f206
Compare
yggdrasil-engine is Unleash's ctypes binding to their yggdrasilffi Rust cdylib (github.com/Unleash/yggdrasil-bindings), not Google's Yggdrasil Decision Forests despite the name. Upstream downloads a prebuilt binary per platform instead of compiling it, and ships none for riscv64, so this workflow builds the cdylib natively in the manylinux_2_39_riscv64 container, runs upstream's own pytest suite against it, and retags the resulting wheel with upstream's own repair_wheel.py. compat_glibc.rs's hand-rolled gettid/statx syscall shim only defines its syscall numbers for x86_64 and aarch64 but compiles unconditionally, so the crate fails to build on riscv64 with two cannot-find-value errors; the added patch supplies the same numbers for riscv64, which uses the identical generic syscall table as aarch64.
luhenry
force-pushed
the
yggdrasil-engine
branch
from
September 13, 2026 01:15
261f206 to
d8eac95
Compare
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.
yggdrasil-engine1.3.1Compiles Unleash's
yggdrasilffiRust cdylib and wraps it via ctypes for evaluating Unleash feature flags. Upstream publishes no riscv64 wheel.Mirrors upstream's own
build-python.ymlandbuild.sh/tox.ini/repair_wheel.py.Differs from upstream
yggdrasilffinatively in-container instead of downloading a prebuilt binary - none published for riscv64LICENSE.mdbesidepyproject.toml- upstream's own published wheel carries no licence file eitherMatrix: single
cp312-abi3build, tested on cp312/cp313/cp314; cp314t dropped - abi3 wheels aren't compatible with free-threaded interpreters, and upstream ships no cp3XXt wheel eitherTesting
python-engine/testssuite (incl. theclient-specificationfixtures) against the built binary before packagingLicense: OK
Built on cp312; 24 passed, 0 skipped.