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
changed insufficiently reserved length for log message #8152
Conversation
It's not a proper fix, and I don't think that there is a proper fix. We can't know beforehand what length all these messages will have without adding unreasonable amount of complexity |
@galqiwi Thanks for the PR! Hmm, did you experience the issue with master branch? Or rather with some borg 1.2.x release (that code is in 1.2-maint branch)? In general, the issue should first get fixed in the branch where it has been encountered and after that, it needs checking whether the other branches are affected also. Active branches are: 1.2-maint, 1.4-maint, master. About the fix: I guess increasing by 4 instead of by 2 would cover more issues of the same kind. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #8152 +/- ##
==========================================
+ Coverage 83.49% 83.74% +0.24%
==========================================
Files 67 67
Lines 12046 12061 +15
Branches 2185 2189 +4
==========================================
+ Hits 10058 10100 +42
+ Misses 1389 1368 -21
+ Partials 599 593 -6 ☔ View full report in Codecov by Sentry. |
@galqiwi did you see my feedback? |
Yes, sorry for late response. I've encountered this bug in 1.2.0 version. Will make a PR to the corresponding branch. By looking at the code, I see that 1.3.x and master are affected too. |
changed insufficiently reserved length for log message (copy of #8152 for 1.2)
changed insufficiently reserved length for log message (copy of #8152 for 1.4)
OK, so now 1.2 and 1.4 branches are fixed, thanks! You experienced the issue with 1.2.x and 1.4 is quite similar to 1.2. OTOH, master branch has major changes, so guess one should try how it looks like there. Also, width in this PR might need increasing (e.g. to 44), but you'll see that when practically trying it out. |
Yeah, my bad. Fixed it. |
Thanks! |
During
borg prune
I've encountered a minor issue -- output was not properly aligned.This PR fixes this issue. Full command with output can be viewed here.