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

Fixes flakiness in app's screenshot tests #1395

Merged
merged 7 commits into from Apr 24, 2024
Merged

Conversation

JoseAlcerreca
Copy link
Contributor

@JoseAlcerreca JoseAlcerreca commented Apr 23, 2024

We were disabling WorkManager inside the SyncManager instead of disabling SyncManager altogether. This was throwing some SQLite errors (that are printed out but don't fail the test)

This is the first change to address #1394.

We might want to move that TestSyncModule to another module in the future.

This also enables LocalInspectionMode to prevent the flakiness and pins the timezone.

Copy link

Combined test coverage report

Overall Project 40.4% 🍏
Files changed 100% 🍏

Module Coverage
work 37.91% 🍏
Files
Module File Coverage
work StubSyncSubscriber.kt 33.33% 🍏

@JoseAlcerreca JoseAlcerreca changed the title Disables WM init in app's screenshot tests Fixes flakiness in app's screenshot tests Apr 24, 2024
Copy link

Combined test coverage report

Overall Project 40.4% 🍏
Files changed 100% 🍏

Module Coverage
work 37.91% 🍏
Files
Module File Coverage
work StubSyncSubscriber.kt 33.33% 🍏

Copy link

Combined test coverage report

Overall Project 40.4% 🍏
Files changed 100% 🍏

Module Coverage
work 37.91% 🍏
Files
Module File Coverage
work StubSyncSubscriber.kt 33.33% 🍏

Change-Id: Ib0994e744f49b53f58c0eebd52f80c0eba67bbed
Change-Id: Ic0212889354481433ce45ec4292ae7be9bd24b2e
Change-Id: I5a25a7e156d3fcb72a396d3b503e62068a20b417
Change-Id: Iac36347dc3d702248d7515a74823e0bc0cbf2a2b
Change-Id: Ic517e8822218abeaddd3f8d2740b03e651d72d31
Change-Id: Ia42fb78781d2469a608183594fc25c7c69f7e76c
Copy link

Combined test coverage report

Overall Project 40.4% 🍏
Files changed 100% 🍏

Module Coverage
work 37.91% 🍏
Files
Module File Coverage
work StubSyncSubscriber.kt 33.33% 🍏

@JoseAlcerreca JoseAlcerreca merged commit ead3f49 into main Apr 24, 2024
1 check passed
@JoseAlcerreca JoseAlcerreca deleted the ja/disable_wm_init branch April 24, 2024 15:23
big-guy added a commit to gradle/nowinandroid that referenced this pull request Apr 25, 2024
* origin/main:
  Fixes flakiness in app's screenshot tests (android#1395)
  Revert "Configure baseline profiles in the baselineProfile lambda" (android#1398)
  Configure baseline profiles in the baselineProfile lambda (android#1060)
  Enable strong skipping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants