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

fix: Call stuck on Connecting state after joining a call or putting the app in background (WPB-15554) #3282

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

ohassine
Copy link
Member

@ohassine ohassine commented Feb 6, 2025

BugWPB-15554 [Android] Stuck on "Connecting..." after putting the app to the background/foreground multiple times


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

Call stuck on Connecting state after joining a call or putting the app in background

Causes (Optional)

We did some improvements here #3011 by making the app observes the call from cache instead of database, this makes the call stays on connecting screen forever when we kill and open the app again.

Solutions

Observe from DB

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

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.

@echoes-hq echoes-hq bot added the echoes: product-roadmap/bug Work contributing to resolve a bug not critical enough to have raised an incident. label Feb 6, 2025
@ohassine ohassine requested review from a team, yamilmedina, alexandreferris, vitorhugods, saleniuk and mathias-niboulies and removed request for a team February 6, 2025 15:22
@ohassine ohassine requested review from borichellow and Garzas and removed request for mathias-niboulies February 6, 2025 15:22
Copy link

sonarqubecloud bot commented Feb 6, 2025

Copy link
Contributor

github-actions bot commented Feb 6, 2025

Test Results

3 418 tests  ±0   3 310 ✅ ±0   5m 46s ⏱️ -15s
  584 suites ±0     108 💤 ±0 
  584 files   ±0       0 ❌ ±0 

Results for commit dba59a6. ± Comparison against base commit 82347b7.

This pull request removes 2 and adds 2 tests. Note that renamed tests count towards both.
com.wire.kalium.logic.feature.call.usecase.AnswerCallUseCaseTest ‑ givenACall_whenAnsweringIt_thenInvokeAnswerCallOnce[jvm]
com.wire.kalium.logic.feature.call.usecase.GetAllCallsWithSortedParticipantsUseCaseTest ‑ givenCallsFlowEmitsANewValue_whenUseCaseIsCollected_thenAssertThatTheUseCaseIsEmittingTheRightCalls[jvm]
com.wire.kalium.logic.feature.call.usecase.AnswerCallUseCaseTest ‑ givenAIncomingCall_whenAnsweringIt_thenInvokeAnswerCallOnce[jvm]
com.wire.kalium.logic.feature.call.usecase.ObserveEstablishedCallWithSortedParticipantsUseCaseTest ‑ givenCallFlowEmitsANewValue_whenUseCaseIsRunning_thenAssertThatTheUseCaseIsEmittingTheRightCalls[jvm]

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Feb 6, 2025

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.84%. Comparing base (82347b7) to head (dba59a6).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3282      +/-   ##
===========================================
+ Coverage    50.82%   50.84%   +0.01%     
===========================================
  Files         1606     1605       -1     
  Lines        57243    57220      -23     
  Branches      5109     5109              
===========================================
- Hits         29094    29093       -1     
+ Misses       26134    26111      -23     
- Partials      2015     2016       +1     

see 8 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 82347b7...dba59a6. Read the comment docs.

@datadog-wireapp
Copy link

Datadog Report

Branch report: call-stuck-connecting
Commit report: 1fe5566
Test service: kalium-jvm

✅ 0 Failed, 3310 Passed, 108 Skipped, 1m 0.53s Total Time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap/bug Work contributing to resolve a bug not critical enough to have raised an incident. 🚨 Potential breaking changes 👕 size: M type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants