Skip to content

argus-redact: Add version 0.8.16 - #3036

Merged
luhenry merged 4 commits into
mainfrom
argus-redact
Oct 23, 2026
Merged

luhenry merged 4 commits into
mainfrom
argus-redact

Conversation

@luhenry

@luhenry luhenry commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Compiles a Rust PII-redaction/pseudonymization core with PyO3 Python bindings (pure-Python driver on top). Upstream publishes no riscv64 wheel.

Mirrors upstream's release.yml build-wheels job (maturin, manifest-path = crates/argus-redact-py/Cargo.toml), narrowed to Linux manylinux.

Differs from upstream

  • Rust toolchain installed in-container via rustup - upstream's GitHub runners ship one already.

Testing

  • Same core assertion as upstream's test job: a redact() smoke call, then pytest -m "not ner and not semantic and not slow" tests (same marker deselect upstream uses to skip the heavy NER/LLM extras).

License: OK, Apache-2.0, nothing vendored.

Built on cp312; dependency tree (fancy-regex, pyo3, sha2/sha3/hmac, serde) is pure Rust with no -sys/C bindings beyond platform stubs, verified with cargo metadata --filter-platform riscv64gc-unknown-linux-gnu.

Adds the riscv64 wheel build for argus-redact, a local PII redaction
and pseudonymization library (Rust/PyO3 core, pure Python driver).
Pure Rust dependency tree (fancy-regex, pyo3, sha2/sha3/hmac); no C or
system libraries. Mirrors upstream's maturin-based release.yml,
narrowed to Linux manylinux_riscv64.
@luhenry
luhenry marked this pull request as draft October 14, 2026 11:35
cp314t's job logs show the wheel built fine and the pyo3 smoke test
passed (no free-threading/ABI issue) — pytest collection died instead:
tests/test_readme_examples.py and its _meta sibling resolve README.md,
README.zh.md and docs/*.md relative to the test file's parent dir,
which cibuildwheel's CIBW_TEST_SOURCES staging replaces with an
isolated test_cwd that only contains tests/. This is interpreter- and
arch-agnostic (gotcha 129's maxminddb pattern), so cp312/cp313/cp314
would hit the same FileNotFoundError once they get a runner instead of
timing out in the queue. Add the missing paths to CIBW_TEST_SOURCES.

luhenry commented Oct 16, 2026 •

Copy link
Copy Markdown
Member Author

cp314t CI failure triaged (the other three legs were just the 24h queued-job timeout/cancellation, no action needed there).

Root cause: not riscv64- or free-threading-specific. The job log shows the Rust/pyo3 0.29.2 extension compiled cleanly and the inline pyo3 smoke test (from argus_redact import redact; ...) passed fine on CPython 3.14t — so there's no pyo3 free-threading/ABI ceiling here (unlike gotcha 322/326's pattern). The actual failure is in pytest collection:

ERROR tests/test_readme_examples.py - FileNotFoundError: ... '/tmp/.../test_cwd/README.md'
ERROR tests/test_readme_examples_meta.py - FileNotFoundError: ...

tests/test_readme_examples.py (and its _meta sibling) exec the <!-- pin --> code blocks in README.md, README.zh.md and docs/*.md to keep the docs honest, resolving those paths via Path(__file__).parents[1]. CIBW_TEST_SOURCES: tests stages only tests/ into cibuildwheel's isolated test_cwd, so that parent directory has no README/docs — collection dies with FileNotFoundError before any test runs. This is gotcha 129's maxminddb test_nondatabase/README.rst pattern, not an interpreter- or architecture-specific issue: cp312/cp313/cp314 would hit the identical error once they get a runner instead of timing out in the queue.

Fix: widen CIBW_TEST_SOURCES to tests README.md README.zh.md docs, matching the gotcha 129 fix shape. Pushed as 572ec6eacdf on this branch.

35 tests failed identically on cp312/cp313/cp314/cp314t. 31 read
src/, crates/, pyproject.toml or demo/ from the checkout (upstream runs
pytest from an editable install); staging them would put pyproject's
pythonpath = ["src"] in force and shadow the wheel. The other 4 assert
x86-tuned wall-clock ceilings (1ms/5ms/1s) the riscv64 runner misses by
~2-3x. Deselect each by nodeid; the rest of tests/architecture and
tests/benchmark still run.
@github-actions
github-actions Bot marked this pull request as ready for review October 23, 2026 15:03
@luhenry
luhenry merged commit 7542e6f into main Oct 23, 2026
9 checks passed
@luhenry
luhenry deleted the argus-redact branch October 23, 2026 15:04
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.

1 participant