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: message status not updated while using the fire and forget asset mechanism (WPB-4519) #2064

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Cherry pick from the original PR:


⚠️ Conflicts during cherry-pick:


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

While using ScheduleNewAssetMessageUseCase to upload assets and the backend has the federator down (technically online but not reachable to/from by other backends) the asset is uploaded but sending the message fails not reflecting this state in the database.

Causes (Optional)

No button to retry is visible, and the asset message shows as pending.

Solutions

Update the status of the message when we can't send the message with our MessageSendFailureHandler component, so can be correctly updated to FAILED accordingly.

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

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.

… mechanism (WPB-4519) (#2061)

* fix: add failure handling while remote be is offline for assests scheduler mechanism

* fix: coverage

* fix: coverage

* fix: coverage
@github-actions github-actions bot added the cherry-pick PR is cherry-picking changes from another banch label Sep 14, 2023
@github-actions
Copy link
Contributor Author

github-actions bot commented Sep 15, 2023

Unit Test Results

   434 files  ±0     434 suites  ±0   2m 12s ⏱️ -26s
2 359 tests +1  2 256 ✔️ +1  103 💤 ±0  0 ±0 

Results for commit 7a4e27f. ± Comparison against base commit 38df69b.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

Codecov Report

Merging #2064 (7a4e27f) into develop (38df69b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             develop    #2064   +/-   ##
==========================================
  Coverage      57.99%   57.99%           
  Complexity        24       24           
==========================================
  Files           1007     1007           
  Lines          37783    37785    +2     
  Branches        3430     3430           
==========================================
+ Hits           21911    21913    +2     
- Misses         14404    14405    +1     
+ Partials        1468     1467    -1     
Files Changed Coverage Δ
...ic/feature/asset/ScheduleNewAssetMessageUseCase.kt 88.57% <100.00%> (+0.13%) ⬆️

... 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 38df69b...7a4e27f. Read the comment docs.

@datadog-wireapp
Copy link

Datadog Report

All test runs 72e0e60 🔗

2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Wall Time Branch View
kalium-ios 0 0 0 1621 31 11.1s Link
kalium-jvm 0 0 0 2256 103 10m 26s Link

@yamilmedina yamilmedina added this pull request to the merge queue Sep 15, 2023
Merged via the queue into develop with commit 5dc50fb Sep 15, 2023
@yamilmedina yamilmedina deleted the fix/assets-remote-fail-noerror-cherry-pick branch September 15, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants