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

chore: add more debug information for sync #WPB-11603 #3066

Open
wants to merge 2 commits into
base: release/candidate
Choose a base branch
from

Conversation

damian-kaczmarek
Copy link
Contributor

@damian-kaczmarek damian-kaczmarek commented Oct 17, 2024

BugWPB-11603 [Android] App stuck on "decrypting messages"

What's new in this PR?

Issues

Wasn't able to reproduce the problem. Added some more debug information. Possibly we should improve the UI to inform user about networking problems. Or listen for our requests failing not being respond for a long time.

Dependencies (Optional)

more related changes in kalium: wireapp/wire-android#3523


References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@damian-kaczmarek damian-kaczmarek self-assigned this Oct 17, 2024
@echoes-hq echoes-hq bot added the echoes: bugs Technical or functional defects in the product label Oct 17, 2024
@damian-kaczmarek damian-kaczmarek changed the base branch from develop to release/candidate October 17, 2024 13:50
Copy link

sonarcloud bot commented Oct 17, 2024

Copy link
Contributor

🐰 Bencher Report

Branchchore/debug-information-sync
Testbedubuntu-latest

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInFiles📈 view plot
⚠️ NO THRESHOLD
685,433.22
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInMemory📈 view plot
⚠️ NO THRESHOLD
339,366,256.71
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.messageInsertionBenchmark📈 view plot
⚠️ NO THRESHOLD
933,078,480.48
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.queryMessagesBenchmark📈 view plot
⚠️ NO THRESHOLD
21,758,285.49
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Oct 17, 2024

Test Results

3 250 tests  ±0   3 144 ✅ ±0   4m 38s ⏱️ +7s
  555 suites ±0     106 💤 ±0 
  555 files   ±0       0 ❌ ±0 

Results for commit 19d821e. ± Comparison against base commit 35cfb92.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

Codecov Report

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

Project coverage is 52.70%. Comparing base (35cfb92) to head (19d821e).

Files with missing lines Patch % Lines
...in/com/wire/kalium/network/NetworkStateObserver.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           release/candidate    #3066   +/-   ##
==================================================
  Coverage              52.70%   52.70%           
==================================================
  Files                   1317     1317           
  Lines                  51108    51108           
  Branches                4742     4742           
==================================================
+ Hits                   26937    26938    +1     
+ Misses                 22246    22245    -1     
  Partials                1925     1925           
Files with missing lines Coverage Δ
...in/com/wire/kalium/network/NetworkStateObserver.kt 20.00% <0.00%> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35cfb92...19d821e. Read the comment docs.

@datadog-wireapp
Copy link

Datadog Report

Branch report: chore/debug-information-sync
Commit report: ad6e3de
Test service: kalium-jvm

✅ 0 Failed, 3144 Passed, 106 Skipped, 34.8s Total Time

Copy link
Contributor

@yamilmedina yamilmedina left a comment

Choose a reason for hiding this comment

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

Looks good ! Left a comment about datadog format that we can later use to filter better in the tool 🙌

"validated:${networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)}"
)
defaultNetworkDataStateFlow.update { DefaultNetworkData.Connected(network, networkCapabilities) }
val loggerMessage = buildString {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: We can try to log in json format, so we can later parse it and do some filtering in Datadog

You can take a look at this utility:

internal fun KaliumLogger.logStructuredJson(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: bugs Technical or functional defects in the product 👕 size: S type: chore 🧹
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants