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

test: cover some missed parts of sync with unit test - PART 1 (WPB-3471) #1973

Merged
merged 4 commits into from
Aug 11, 2023

Conversation

ohassine
Copy link
Member

@ohassine ohassine commented Aug 9, 2023


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

Some parts of slow sync are missing unit test

Solutions

Cover RestartSlowSyncProcessForRecoveryUseCase and SlowSyncWorker with test

Dependencies (Optional)

If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.

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 changed the title chore: cover some missed parts of sync with unit test (WPB-2413) test: cover some missed parts of sync with unit test (WPB-2413) Aug 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

Unit Test Results

   425 files  +2     425 suites  +2   2m 15s ⏱️ +6s
2 250 tests +9  2 151 ✔️ +9  99 💤 ±0  0 ±0 

Results for commit 7c6abdc. ± Comparison against base commit 36b2c20.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Aug 9, 2023

Datadog Report

All test runs 2b5855b 🔗

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

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Wall Time Branch View
kalium-jvm 0 0 1 2151 99 40m 9s Link
kalium-ios 0 0 0 1529 33 11.01s Link

@ohassine ohassine requested review from a team, yamilmedina, alexandreferris, MohamadJaara, vitorhugods and Garzas and removed request for a team August 10, 2023 10:13
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.

Immaculate 👨🏼‍🍳🤌🏻

Comment on lines +28 to +30
internal interface SyncSelfUserUseCase {
suspend operator fun invoke(): Either<CoreFailure, Unit>
}
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch making these internals.

These are so old that we didn't have this standard back then :D

@ohassine ohassine added this pull request to the merge queue Aug 10, 2023
@ohassine ohassine changed the title test: cover some missed parts of sync with unit test (WPB-2413) test: cover some missed parts of sync with unit test (WPB-3471) Aug 10, 2023
@ohassine ohassine changed the title test: cover some missed parts of sync with unit test (WPB-3471) test: cover some missed parts of sync with unit test - PART 1 (WPB-3471) Aug 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 10, 2023
@ohassine ohassine added this pull request to the merge queue Aug 11, 2023
Merged via the queue into develop with commit d826a6f Aug 11, 2023
24 checks passed
@ohassine ohassine deleted the sync_unit_test branch August 11, 2023 07:44
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