fix(ci): force tarpaulin LLVM engine to end the recurring coverage segfault#163
Merged
Merged
Conversation
The `rust-ci / Coverage (tarpaulin + codecov)` job has failed on every recent PR (#161/#162) with "Failed to run tests: A segfault occurred while executing tests" — cargo-tarpaulin's default ptrace engine segfaulting while instrumenting the property-test binary on the CI runners. It is a tarpaulin instrumentation flake, not a real failure: the suite passes under `cargo test`, and the ptrace engine does not even reproduce the segfault locally. Add tarpaulin.toml selecting the LLVM (source-based) engine, which avoids ptrace entirely. The standards rust-ci reusable runs `cargo tarpaulin --out Xml`, which reads this [default] profile — so no reusable change is needed. Verified locally: with this config, `cargo tarpaulin --out Xml` activates LLVM_PROFILE_FILE coverage (26 profiled test binaries), exits 0, and writes a valid cobertura.xml. (The engine value must be capitalized "Llvm" — serde is case-sensitive; lowercase silently falls back to ptrace.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172RBMz3qYjb1ttzD2i7RNh
|
hyperpolymath
marked this pull request as ready for review
July 1, 2026 13:08
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.



Summary
Fixes the recurring
rust-ci / Coverage (tarpaulin + codecov)red (failed on #161,#162, …) with a locally-verified repo-side change.
Root cause: the standards rust-ci reusable runs
cargo tarpaulin --out Xmlwith thedefault ptrace engine, which segfaults on the CI runners while instrumenting the
property-test binary (
"Failed to run tests: A segfault occurred while executing tests").It's a tarpaulin instrumentation flake — the suite passes under
cargo test, and theptrace engine doesn't even reproduce the segfault locally.
Fix:
tarpaulin.tomlselecting the LLVM (source-based) engine, which avoidsptrace entirely. The reusable's
cargo tarpaulin --out Xmlreads this[default]profile, so no standards-reusable change is needed.
Verified locally (I installed tarpaulin and reproduced the setup):
[default] engine = "Llvm"+cargo tarpaulin --out Xml→ activatesLLVM_PROFILE_FILEcoverage across 26 test binaries, exits 0, writes a validcobertura.xml."Llvm"— serde is case-sensitive; lowercasesilently falls back to ptrace.
This clears the last repo-side-fixable CI red. Remaining reds are genuinely external:
governance / Validate Hypatia Baselineis pre-existing #41 debt (needs the hypatiaCLI, out of session scope, or a baseline-regen decision), which the owner has merged past.
FLAGS (unchanged)
gossamer+conative-gatingstill 403-blocked → build: migrate Kotlin/Gradle Android app to gossamer (clears banned-language CI) #83 / Adopt conative-gating as policy/egress GO/NO-GO veto (refs proof-obligation #84-3.1) #103 staged until added tothe environment's repo scope.
🤖 Generated with Claude Code
https://claude.ai/code/session_0172RBMz3qYjb1ttzD2i7RNh
Generated by Claude Code