-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(io): compare actual size in CheckIsFileSizeSame #49
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
- Coverage 79.21% 78.93% -0.29%
==========================================
Files 32 32
Lines 1506 1519 +13
==========================================
+ Hits 1193 1199 +6
- Misses 200 204 +4
- Partials 113 116 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I was expecting this TestCopyFile test case to fail after this PR due to this and this, but it didn't. I am not sure why. @derekbit any idea? |
Achieves by ready and writing by intervals. |
b00dcaf
to
eeff2ce
Compare
IIUC, the test case creates a temp file with a string "content" and truncate the file to 20 bytes, so the file content is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I’m a bit confused. I was expecting it to fail because we are now comparing actual sizes, and |
I see. Note:
You can try
|
longhorn/longhorn-4105 Signed-off-by: Chin-Ya Huang <[email protected]>
eeff2ce
to
949a952
Compare
Thank you for the explanation, it's clear to me now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Which issue(s) this PR fixes:
Issue longhorn/longhorn#4105
What this PR does / why we need it:
longhorn/longhorn-engine#1003 (comment)
Special notes for your reviewer:
Additional documentation or context