Skip to content

aiokafka: add build-aiokafka.yml for riscv64 wheels - #858

Merged
luhenry merged 2 commits into
mainfrom
aiokafka
Sep 3, 2026
Merged

aiokafka: add build-aiokafka.yml for riscv64 wheels#858
luhenry merged 2 commits into
mainfrom
aiokafka

Conversation

@luhenry

@luhenry luhenry commented Sep 3, 2026

Copy link
Copy Markdown
Member

Compiles the Cython _crecords extension (Kafka record batch encode/decode); the rest of the asyncio Kafka client is pure Python. Upstream publishes no riscv64 wheel.

Mirrors the package-wheel job of upstream's publish.yml.

Differs from upstream

  • Test dep versions pinned to requirements-ci.txt - newer pytest fails test_requests.py under this project's filterwarnings = ["error"].
  • gssapi dropped from test deps - needs krb5 headers and is only reached by the docker-backed SASL tests, which are skipped anyway (see Testing).

Testing

  • No --docker-image, same as upstream's own wheel-test jobs (none run a Kafka broker either); tests needing one skip via upstream's own kafka_image fixture.
  • CIBW_TEST_SOURCES stages tests + pyproject.toml so the repo-root aiokafka/ can't shadow the installed wheel; upstream's own CI does the equivalent by rm -rf aiokafka before testing.
  • cramjam (snappy/lz4/zstd codec backend) is on the registry for riscv64, so those tests run instead of being skipped.

License: OK

Built on cp312; 749 passed, 332 skipped.

Builds the Cython record-parsing extension (_crecords) against the
manylinux_riscv64 image, mirroring upstream's cibuildwheel-based
package-wheel job.
The Cython _crecords extensions use single-phase init with no
Py_mod_gil slot, so 3.14t re-enables the GIL on import and warns -
fatal under aiokafka's filterwarnings = ["error"].
@luhenry luhenry changed the title ci: Add riscv64 wheel build for aiokafka aiokafka: add build-aiokafka.yml for riscv64 wheels Sep 3, 2026
@luhenry
luhenry merged commit 39d1783 into main Sep 3, 2026
10 checks passed
@luhenry
luhenry deleted the aiokafka branch September 3, 2026 17:52
@luhenry luhenry linked an issue Sep 3, 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.

aiokafka riscv64 support

1 participant