• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

w-martin / typedframes / 31161379658
100%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2026 08:25AM UTC
Jobs 1
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Aug 2026 08:21AM UTC coverage: 100.0%. Remained the same
31161379658

push

github

web-flow
Make cargo test work on macOS: drop forced extension-module, point pyo3 at the project venv (#52)

* Fix cargo test link failure on macOS from forced extension-module

`cargo test` failed to link on macOS with "Undefined symbols for architecture
arm64: _PyByteArray_AsString", making the Rust half of `uv run inv test`
unrunnable locally.

The cause was `extension-module` being enabled unconditionally on the pyo3
dependency. That feature tells pyo3 not to link libpython, leaving the CPython
symbols to be resolved by the interpreter that loads the extension. `cargo test`
also builds the cdylib, and macOS's linker rejects a dylib with undefined
symbols. Linux tolerates them in shared libraries, which is why CI stayed green
while every local macOS run failed.

The setting was redundant as well as harmful: maturin already enables the
feature for the builds that need it, via `features = ["pyo3/extension-module"]`
in pyproject.toml. Removing it from Cargo.toml leaves maturin's builds unchanged
and lets `cargo test` link against libpython like any ordinary binary.

Verified from a clean tree: `inv build --force`, `inv test`, `inv lint`,
`inv all`, a bare `cargo test`, and a bare `cargo build` all pass, and the built
extension still produces correct checker output.

A bare `cargo test` from a shell with no virtualenv now reports that the
interpreter on PATH is older than the `abi3-py311` floor, rather than failing
with undefined symbols -- an actionable message instead of a linker dump.

Two alternatives were tried and rejected. Setting `target.*.rustflags` in
`rust/.cargo/config.toml` displaces the rustflags maturin supplies and breaks
`inv build`. Setting `PYO3_PYTHON` via cargo's `[env]` table would break CI,
which runs `cargo test` before `uv sync` creates the virtualenv.

* Point cargo test at the project venv for pyo3's interpreter

Removing the forced `extension-module` feature fixed the macOS link failure but
left a second gap: pyo3 now links against a ... (continued)

932 of 932 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31161379658.1 07 Aug 2026 08:25AM UTC 13
100.0
GitHub Action Run
Source Files on build 31161379658
  • Tree
  • List 13
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31161379658
  • 146e8c18 on github
  • Prev Build on main (#31160824408)
  • Next Build on main (#31161931873)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc