Skip to content

statsig-python-core: add build-statsig-python-core.yml for riscv64 wheels - #784

Merged
luhenry merged 2 commits into
mainfrom
statsig-python-core
Aug 28, 2026
Merged

statsig-python-core: add build-statsig-python-core.yml for riscv64 wheels#784
luhenry merged 2 commits into
mainfrom
statsig-python-core

Conversation

@luhenry

@luhenry luhenry commented Aug 28, 2026

Copy link
Copy Markdown
Member

Compiles the PyO3 bindings and the Rust Statsig SDK (HTTP, gRPC, evaluation engine) into a single abi3 extension. Upstream publishes no riscv64 wheel.

Mirrors upstream's build.yml, which runs maturin build --release --strip in its own manylinux image.

Differs from upstream

  • protoc comes from Rocky 10's CRB repo - upstream's image downloads a protoc release.
  • No musllinux - rustup ships no riscv64 musl toolchain.

Matrix: one cp310-abi3 build; [tool.maturin] features carries pyo3/abi3-py310.

Testing

  • same as upstream

License: Wheel carries the project's ISC LICENSE, which upstream's own wheels omit on every platform.

Patches

  • 0001-tests-wait-for-background-specs-syncs.patch - To upstream. specs_sync_interval_ms is now rejected below 1000, so five tests relying on a 1ms background sync fail; they fail identically against the PyPI wheels on x86_64, aarch64 and macOS.
  • 0002-tests-raise-the-fork-runner-timeout.patch - To upstream. 50 SDK initialisations do not fit upstream's 10s subprocess budget on this runner; riscv64-only.

Built on cp310; 153 passed.

luhenry and others added 2 commits August 28, 2026 12:36
…eels

Builds the PyO3 extension from the statsig-server-core workspace with
cibuildwheel, mirroring upstream's maturin build. The pyo3 abi3-py310 feature
makes one cp310 build cover every non-free-threaded CPython >= 3.10.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The riscv64 runner cannot finish 50 SDK initialisations within upstream's 10s
budget, so the subprocess is SIGTERMed and test_forking fails with -15.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@luhenry
luhenry merged commit 892977d into main Aug 28, 2026
6 of 8 checks passed
@luhenry
luhenry deleted the statsig-python-core branch August 28, 2026 12:52
@luhenry luhenry linked an issue Aug 28, 2026 that may be closed by this pull request
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.

statsig-python-core riscv64 support

1 participant