fix(ci): switch tarpaulin to llvm engine to fix coverage flake#161
Merged
emal-avala merged 1 commit intomainfrom Apr 22, 2026
Merged
fix(ci): switch tarpaulin to llvm engine to fix coverage flake#161emal-avala merged 1 commit intomainfrom
emal-avala merged 1 commit intomainfrom
Conversation
Coverage intermittently fails with: memory allocation of 93825031283952 bytes failed test query::tests::cancel_before_first_event_interrupts_cleanly ... ERROR cargo_tarpaulin: ECHILD: No child processes The default ptrace engine races with tokio's child-process reaper on cancellation tests. The LLVM engine uses source-based coverage via LLVM instrumentation — no ptrace, no child-reaping race. Tests run against an unmodified binary, so behavior matches the non-coverage Test job. Same output format (cobertura XML), so the Codecov upload is unchanged.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Apr 23, 2026
Merged
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
Intermittent Coverage failures hit ~half of PRs with:
```
memory allocation of 93825031283952 bytes failed
test query::tests::cancel_before_first_event_interrupts_cleanly ...
ERROR cargo_tarpaulin: ECHILD: No child processes
```
Root cause: tarpaulin's default ptrace engine races with tokio's child-process reaper on cancellation tests. A ptrace-interrupted `wait()` returns a bogus value, which tokio interprets as an enormous allocation request.
Fix: pass `--engine llvm` to use source-based coverage via LLVM instrumentation. No ptrace, no race. Tests run on an unmodified binary, so behavior matches the non-coverage Test job.
Verification
Evidence the flake exists
Test plan