Skip to content

fix(ci): coverage job — tarpaulin segfault → cargo-llvm-cov - #250

Merged
Tuntii merged 1 commit into
mainfrom
fix/ci-coverage-llvm-cov
Aug 11, 2026
Merged

fix(ci): coverage job — tarpaulin segfault → cargo-llvm-cov#250
Tuntii merged 1 commit into
mainfrom
fix/ci-coverage-llvm-cov

Conversation

@Tuntii

@Tuntii Tuntii commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Problem

Coverage job fails on main with:

ERROR cargo_tarpaulin: Failed to run tests: A segfault occurred while executing tests

Reproduced while running rustapi-rs integration_tests under tarpaulin ptrace.

Fix

  • Install llvm-tools-preview + cargo-llvm-cov
  • Run instrumented tests once, then emit LCOV / HTML / Cobertura + summary
  • Still exclude cargo-rustapi (nested cargo subprocesses)
  • Upload artifacts with if: always()

Test plan

  • Coverage job green on this PR
  • Artifact coverage-report contains html + lcov + cobertura
  • Other CI jobs unchanged (Lint/Build/Docs)

Tarpaulin's ptrace engine segfaults on GHA while running multi-threaded
tokio integration tests (rustapi-rs integration_tests). Switch the
Coverage job to LLVM instrumentation via cargo-llvm-cov and keep
HTML/LCOV/Cobertura artifacts plus the job summary.
@github-actions github-actions Bot added the fix label Aug 11, 2026
@Tuntii
Tuntii merged commit 373c51e into main Aug 11, 2026
9 checks passed
@Tuntii
Tuntii deleted the fix/ci-coverage-llvm-cov branch August 11, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant