Skip to content
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

Use the right filename for log files so they're sorted in rageshakes #3219

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

jmartinesp
Copy link
Member

Content

Use the log suffix when creating log files so the rageshake server recognises its format and doesn't rename them to just logs-0001.log.gz, logs-0002.log.gz, etc.

Motivation and context

This way we'll have instead logs-2024-07-19-11.log.gz, logs-2024-07-19-10.log.gz, etc., stating the hour of logs included inside in their filename.

Tests

You can upload a test bug report after letting the app run for a while and collect new logs, then check the rageshakes.

https://github.com/element-hq/element-x-android-rageshakes/issues/2410

Checklist

  • Changes have been tested on an Android device or Android emulator with API 23
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • Pull request includes a sign off
  • You've made a self review of your PR

@jmartinesp jmartinesp added the PR-Misc For other changes label Jul 19, 2024
@jmartinesp jmartinesp requested a review from a team as a code owner July 19, 2024 09:52
@jmartinesp jmartinesp requested review from bmarty and removed request for a team July 19, 2024 09:52
Copy link
Contributor

github-actions bot commented Jul 19, 2024

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/ckd14w

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.13%. Comparing base (95c3738) to head (d52418c).

Files Patch % Lines
...es/matrix/api/tracing/WriteToFilesConfiguration.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3219   +/-   ##
========================================
  Coverage    76.13%   76.13%           
========================================
  Files         1645     1645           
  Lines        38816    38815    -1     
  Branches      7517     7517           
========================================
  Hits         29553    29553           
+ Misses        5362     5361    -1     
  Partials      3901     3901           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -71,7 +71,7 @@ class TracingInitializer : Initializer<Unit> {
return WriteToFilesConfiguration.Enabled(
directory = bugReporter.logDirectory().absolutePath,
filenamePrefix = "logs",
filenameSuffix = null,
filenameSuffix = "log",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a small comment so we don't change this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good call.

@jmartinesp jmartinesp force-pushed the fix/jme/use-right-filename-for-logs-in-ragehsakes branch from 974e8dc to 34cf54a Compare July 19, 2024 10:06
@jmartinesp jmartinesp force-pushed the fix/jme/use-right-filename-for-logs-in-ragehsakes branch from 34cf54a to 8c3953d Compare July 19, 2024 10:07
@jmartinesp jmartinesp added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jul 19, 2024
@jmartinesp jmartinesp enabled auto-merge (squash) July 19, 2024 10:10
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jul 19, 2024
Copy link

@jmartinesp jmartinesp merged commit 63df35e into develop Jul 19, 2024
29 of 30 checks passed
@jmartinesp jmartinesp deleted the fix/jme/use-right-filename-for-logs-in-ragehsakes branch July 19, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Misc For other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants