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: crash when checking audio file size limit (WPB-5961) #2757

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

ohassine
Copy link
Member

@ohassine ohassine commented Mar 1, 2024

BugWPB-5961 [Android] Compose TapGestureDetectorKt crash


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

App is crashing sometimes when checking audio file size when recording voice.

Causes (Optional)

We were trying to use assetLimitInMegabyte before it get initialized

Property assetLimitInMegabyte should be initialized before get.

Solutions

Pass the audio size limit as function param when we setup audioMediaRecorder .

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.

@ohassine ohassine requested review from a team, borichellow, MohamadJaara, vitorhugods, mchenani and e-lisa and removed request for a team March 1, 2024 09:49
Copy link
Contributor

github-actions bot commented Mar 1, 2024

Test Results

827 tests  ±0   827 ✅ ±0   12m 53s ⏱️ + 3m 40s
115 suites ±0     0 💤 ±0 
115 files   ±0     0 ❌ ±0 

Results for commit 998bae0. ± Comparison against base commit 84d3737.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Mar 1, 2024

APKs built during tests are available here. Scroll down to Artifacts!

Copy link
Contributor

@alexandreferris alexandreferris left a comment

Choose a reason for hiding this comment

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

good catch 🎯

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 43.22%. Comparing base (84d3737) to head (998bae0).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2757      +/-   ##
===========================================
+ Coverage    42.98%   43.22%   +0.24%     
===========================================
  Files          409      409              
  Lines        13586    13584       -2     
  Branches      2397     2398       +1     
===========================================
+ Hits          5840     5872      +32     
+ Misses        7067     7025      -42     
- Partials       679      687       +8     
Files Coverage Δ
...essagecomposer/recordaudio/RecordAudioViewModel.kt 70.87% <100.00%> (+0.87%) ⬆️
.../messagecomposer/recordaudio/AudioMediaRecorder.kt 0.00% <0.00%> (-2.05%) ⬇️

... and 5 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 84d3737...998bae0. Read the comment docs.

@AndroidBob
Copy link
Collaborator

Build 3438 failed.

@AndroidBob
Copy link
Collaborator

Build 3440 failed.

@ohassine ohassine added this pull request to the merge queue Mar 1, 2024
@ohassine ohassine removed this pull request from the merge queue due to a manual request Mar 1, 2024
@ohassine ohassine enabled auto-merge March 1, 2024 17:34
Copy link
Contributor

github-actions bot commented Mar 1, 2024

APKs built during tests are available here. Scroll down to Artifacts!

@ohassine ohassine added this pull request to the merge queue Mar 1, 2024
Copy link
Contributor

github-actions bot commented Mar 1, 2024

APKs built during tests are available here. Scroll down to Artifacts!

Merged via the queue into develop with commit c8e59af Mar 1, 2024
13 of 14 checks passed
@ohassine ohassine deleted the crash_when_recording_audio branch March 1, 2024 18:28
MohamadJaara pushed a commit that referenced this pull request Apr 4, 2024
MohamadJaara added a commit that referenced this pull request Apr 4, 2024
)

Co-authored-by: Oussama Hassine <oussama.has100@gmail.com>
Co-authored-by: Michał Saleniuk <30429749+saleniuk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants