Repository navigation
Write the fake adb from a child process so no test's fork holds it open - #145
LucaCappelletti94 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe ChangesMock ADB script creation
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The helper writes the fake 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (11 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #145 +/- ##
=======================================
Coverage 86.40% 86.40%
=======================================
Files 163 163
Lines 39726 39726
Branches 39726 39726
=======================================
+ Hits 34325 34326 +1
+ Misses 3525 3524 -1
Partials 1876 1876
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



The Android proof tool's adb retry tests failed now and then with "Text file busy". Each test writes a stand-in
adbscript and runs it at once. Another test thread could fork while the script was still open for writing, and the child kept that descriptor until its own exec, so running the script failed. Measured onmain, 16 of 60 runs of the proof tool's tests failed this way.The helper now has a child
shwrite the script, so no descriptor open for writing it ever exists in the test process. 200 runs in a row passed afterwards.Parallel Android proof tests could fail with “Text file busy” when a fork inherited an open descriptor for the fake
adbscript. The test helper now delegates script creation and executable permissions to a child shell process, so the test process does not hold the script open for writing.The change addresses the reported intermittent failure. The author reports that 200 consecutive runs passed after the fix.