Skip to content

fix(ci): switch tarpaulin to LLVM engine to fix coverage failures#390

Merged
chaliy merged 1 commit intomainfrom
claude/fix-main-tests-YQN1d
Feb 28, 2026
Merged

fix(ci): switch tarpaulin to LLVM engine to fix coverage failures#390
chaliy merged 1 commit intomainfrom
claude/fix-main-tests-YQN1d

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 28, 2026

Summary

  • Switch cargo-tarpaulin from default ptrace engine to --engine llvm for reliable coverage collection
  • Add llvm-tools-preview rustup component required by the LLVM engine
  • Fixes Coverage workflow that has been consistently failing since Feb 27 despite all tests passing

Root cause

Tarpaulin's ptrace engine causes spurious failures:

  • CI: Error: "Test failed during run" after all 1067 tests pass
  • Local: A segfault occurred while executing tests during ptrace tracing

The LLVM source-based coverage engine avoids all ptrace-related issues and was verified locally (73.40% coverage, all tests pass).

Test plan

  • Verified --engine llvm works locally with full test suite
  • CI Coverage workflow passes on this PR's branch
  • Coverage report uploads to Codecov successfully

Tarpaulin's default ptrace engine causes spurious "Test failed during
run" / segfault errors despite all tests passing. Switch to --engine llvm
which uses LLVM source-based coverage instrumentation and is more reliable.

https://claude.ai/code/session_011FySEMjapdhpDe8yGLMRZz
@chaliy chaliy merged commit bbb5632 into main Feb 28, 2026
10 checks passed
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.

2 participants