Skip to content

fix(codecov): leave paths missing on disk out of coverage - #380

Merged
roxblnfk merged 1 commit into
1.xfrom
fix/codecov-missing-files
Oct 2, 2026
Merged

roxblnfk merged 1 commit into
1.xfrom
fix/codecov-missing-files

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Oct 2, 2026

Copy link
Copy Markdown
Member

🔍 What was changed

  • Coverage drops any entry whose path has no file on disk, not only the known pseudo-file names from fix(codecov): leave eval()'d code out of coverage #379. A path that passes the src prefix filter but does not exist no longer reaches the reports.
  • The is_file() result is cached per path for the whole run, misses included: PHP's stat cache does not remember a failed lookup, so without it every collect would hit the filesystem again.

Checklist

  • How was this tested:
    • Codecov Unit and Inline suites run locally
    • Unit tests added

@roxblnfk
roxblnfk requested a review from a team as a code owner October 2, 2026 16:35
@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@roxblnfk
roxblnfk force-pushed the fix/codecov-missing-files branch from 96f86d9 to b7be60d Compare October 2, 2026 16:39
The marker list covers only the pseudo-file names known today; a path that passes the prefix filter but has no file behind it still reached the reports. `is_file()` is cached per path, misses included, so each path costs one lookup per run.

Assisted-By: Claude Opus 5.5
@roxblnfk
roxblnfk force-pushed the fix/codecov-missing-files branch from b7be60d to e2de780 Compare October 2, 2026 17:12
@roxblnfk
roxblnfk merged commit 580c818 into 1.x Oct 2, 2026
27 of 29 checks passed
@roxblnfk
roxblnfk deleted the fix/codecov-missing-files branch October 2, 2026 17:39
@roxblnfk roxblnfk mentioned this pull request Oct 2, 2026
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.

1 participant