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: optional calling [WPB-9999] #3043

Merged
merged 6 commits into from
Sep 30, 2024
Merged

Conversation

Garzas
Copy link
Contributor

@Garzas Garzas commented Sep 27, 2024

SpikeWPB-9999 [Android] Investigate the text message event handling bottleneck and spickes


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Sometimes calling library doesn't load for tango tests.

Causes (Optional)

Flaky tango tests

Solutions

Make calling manager optional by kalium config to disable it for tests

How to Test

run givenEmailAndPasswordWhenLoggingInThenRegisterClientAndLogout test

@Garzas Garzas self-assigned this Sep 27, 2024
@echoes-hq echoes-hq bot added the echoes: technical-roadmap Work contributing to the Technical Roadmap, to improve our velocity or reduce the technical debt. label Sep 27, 2024
Copy link
Contributor

github-actions bot commented Sep 27, 2024

Test Results

3 208 tests  ±0   3 102 ✅ +1   3m 51s ⏱️ -3s
  551 suites ±0     106 💤  - 1 
  551 files   ±0       0 ❌ ±0 

Results for commit 4525dda. ± Comparison against base commit 025b3f7.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 27, 2024

🐰 Bencher Report

Branchchore/nullable-calling-instance
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
701,663.65
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInMemory📈 view plot
⚠️ NO THRESHOLD
626,584,863.15
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.messageInsertionBenchmark📈 view plot
⚠️ NO THRESHOLD
936,752,115.03
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.queryMessagesBenchmark📈 view plot
⚠️ NO THRESHOLD
21,516,452.34
🐰 View full continuous benchmarking report in Bencher

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 10.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 52.50%. Comparing base (025b3f7) to head (4525dda).

Files with missing lines Patch % Lines
...lin/com/wire/kalium/logic/util/DummyCallManager.kt 0.00% 17 Missing ⚠️
...mAndroid/kotlin/com.wire.kalium.calling/Calling.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3043      +/-   ##
===========================================
- Coverage    52.52%   52.50%   -0.02%     
===========================================
  Files         1301     1302       +1     
  Lines        50044    50062      +18     
  Branches      4663     4663              
===========================================
+ Hits         26284    26285       +1     
- Misses       21883    21900      +17     
  Partials      1877     1877              
Files with missing lines Coverage Δ
...om/wire/kalium/logic/featureFlags/KaliumConfigs.kt 100.00% <100.00%> (ø)
...mAndroid/kotlin/com.wire.kalium.calling/Calling.kt 0.00% <0.00%> (ø)
...lin/com/wire/kalium/logic/util/DummyCallManager.kt 0.00% <0.00%> (ø)

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 025b3f7...4525dda. Read the comment docs.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Sep 27, 2024

Datadog Report

Branch report: chore/nullable-calling-instance
Commit report: 176371c
Test service: kalium-jvm

✅ 0 Failed, 3102 Passed, 106 Skipped, 11.28s Total Time

Copy link
Member

@vitorhugods vitorhugods left a comment

Choose a reason for hiding this comment

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

What is the goal exactly? Disabling calling for tango tests?

It definitely isn't solving the issue, but rather accepting the issue exists and making the production code less null-safe in the process.


If the idea is to accept that calling won't work in tango tests, we could just disable it completely.

When creating CoreLogic, we could pass a Calling.Disabled or something like that, that will do NO-OPs in every calling operation without breaking anything nor sacrifice the CallManagerImpl.

@Garzas Garzas changed the title chore: nullable calling instance [WPB-9999] chore: optional calling [WPB-9999] Sep 27, 2024
@Garzas Garzas requested a review from vitorhugods September 27, 2024 10:50
Copy link

@Garzas Garzas requested a review from yamilmedina September 30, 2024 08:25
@Garzas Garzas added this pull request to the merge queue Sep 30, 2024
Merged via the queue into develop with commit 2d0509c Sep 30, 2024
22 checks passed
@Garzas Garzas deleted the chore/nullable-calling-instance branch September 30, 2024 09:51
MohamadJaara pushed a commit that referenced this pull request Oct 18, 2024
* chore: nullable calling instance

* uncommented poc test

* added error logs when failed to load library

* review fixes

* reverted unnecessary changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: technical-roadmap Work contributing to the Technical Roadmap, to improve our velocity or reduce the technical debt. 👕 size: M type: chore 🧹
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants