Skip to content

ci: point grcov at target/debug/ for the Rust 1.100 build-dir layout - #773

Merged
notheotherben merged 1 commit into
mainfrom
claude/grcov-build-dir-layout
Nov 13, 2026
Merged

notheotherben merged 1 commit into
mainfrom
claude/grcov-build-dir-layout

Conversation

@notheotherben

Copy link
Copy Markdown
Member

Requested by Ben in a daily maintenance routine.

Before: Rust 1.100 (now stable) places test binaries under target/debug/build/<pkg>/<hash>/out/ instead of target/debug/deps/. The grcov step passes --binary-path target/debug/deps/, so it panics with Failed to open directory "target/debug/deps/" after all tests pass. The Test job therefore fails on every PR, which is blocking dependabot #772.

After: grcov gets --binary-path target/debug/. It searches that directory recursively, so it finds the test binaries in both the old and the new layout.

How: I reproduced the failure locally with Rust 1.100.0 and grcov 0.10.8. Then I checked that --binary-path target/debug/ produces the same lcov coverage on both 1.100.0 and 1.97.0. This is the same one-argument change as SierraSoftworks/automate#447.


Generated by Claude Code

Rust 1.100 places test binaries under target/debug/build/<pkg>/<hash>/out/
instead of target/debug/deps/, so grcov panicked with "Failed to open
directory target/debug/deps/" and the Test job failed on every PR.
grcov walks --binary-path recursively, so target/debug/ works with both
the old and the new layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AuStkboncZthMhFiUkCzDe
@codecov

codecov Bot commented Nov 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.96%. Comparing base (826df67) to head (77302f7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #773      +/-   ##
==========================================
+ Coverage   76.84%   76.96%   +0.11%     
==========================================
  Files          31       31              
  Lines        2613     2674      +61     
==========================================
+ Hits         2008     2058      +50     
- Misses        605      616      +11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@notheotherben
notheotherben merged commit 7ca110e into main Nov 13, 2026
13 checks passed
@notheotherben
notheotherben deleted the claude/grcov-build-dir-layout branch November 13, 2026 06:23
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