-
Notifications
You must be signed in to change notification settings - Fork 173
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
Don't delete uploaded logs #3540
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3540 +/- ##
========================================
Coverage 82.68% 82.69%
========================================
Files 1732 1732
Lines 40983 40977 -6
Branches 4966 4964 -2
========================================
- Hits 33888 33887 -1
+ Misses 5341 5337 -4
+ Partials 1754 1753 -1 ☔ View full report in Codecov by Sentry. |
Are you sure rust sdk is cleaning them? At the time I implemented that it wasn't the case |
Nice, what "n" are we using? |
In any case, I'm testing this right now. But since new files are only written every hour, I need to wait for a bit 🫠 . |
Well, color me surprised, it doesn't, or not under some circumstances: I lowered the max value to 2 and I have still all my logs here. |
(We hold on until we are sure that the SDK is deleting the files during the rotation). |
matrix-org/matrix-rust-sdk#4038 is now merged, we'd need a new SDK version and we can both fix the bud and remove this code. |
We now have the right log rotation code since #3553. |
Quality Gate passedIssues Measures |
I just re-tested this and I can confirm old logs are now being removed so this code is no longer needed. |
Content
Remove code in
DefaultBugReporter
that deleted all existing log files except for the most recent one.Motivation and context
The log removal happened after the logs had been compressed but before we were sure they had reached their destination. Since Rust already takes care of the log roration there's no need for this code AFAICT, and it could cause accidental log data loss.
Tests
adb
.The log files should be kept.
Tested devices
Checklist