| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR fixes a find output corruption bug when multiple output actions (e.g., -fprintf and -fprint0) target the same output file by ensuring those actions share a single underlying file cursor rather than independently truncating/overwriting the file.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/find/matchers/mod.rs | Cache output File handles by path during matcher construction and return cloned handles that share the same cursor across output actions. |
| tests/test_find.rs | Add regression coverage verifying -fprintf and -fprint0 can safely share the same output file without truncation/overwrites. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #846 +/- ##
==========================================
+ Coverage 92.27% 92.29% +0.01%
==========================================
Files 35 35
Lines 7435 7447 +12
Branches 386 387 +1
==========================================
+ Hits 6861 6873 +12
Misses 433 433
Partials 141 141 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
Merging this PR will degrade performance by 14.66%⚠️ Different runtime environments detected
❌ 1 regressed benchmark Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent. Comparing ruidosujeira:fix/777-shared-output-file (104a111) with main (f5f0f64) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #777.
Summary
Testing
All 234 unit tests and 71 find integration tests pass.