Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use Firebase Test Lab (PoC) #3929

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Use Firebase Test Lab (PoC) #3929

wants to merge 10 commits into from

Conversation

markushi
Copy link
Member

📜 Description

We're frequently running into timeouts on Saucelabs, let's see if Firebase Test Lab is any better.

💡 Motivation and Context

Stable CI

💚 How did you test it?

#skip-changelog

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

Copy link
Contributor

github-actions bot commented Nov 26, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 1ee3678

Copy link
Contributor

github-actions bot commented Nov 26, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 380.38 ms 446.60 ms 66.23 ms
Size 1.70 MiB 2.35 MiB 669.38 KiB

Previous results on branch: feat/firebase-test-lab

Startup times

Revision Plain With Sentry Diff
6aacee6 410.71 ms 479.32 ms 68.60 ms
d983fe1 420.68 ms 425.39 ms 4.71 ms
f60000a 425.20 ms 495.02 ms 69.82 ms
a4e14b9 418.86 ms 435.02 ms 16.16 ms

App size

Revision Plain With Sentry Diff
6aacee6 1.70 MiB 2.35 MiB 669.38 KiB
d983fe1 1.70 MiB 2.35 MiB 669.38 KiB
f60000a 1.70 MiB 2.35 MiB 669.38 KiB
a4e14b9 1.70 MiB 2.35 MiB 669.38 KiB

run: make assembleUiTests

- name: Install gcloud
uses: 'google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a' # pin 2.1.2
Copy link
Contributor

Choose a reason for hiding this comment

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

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

@@ -90,7 +90,7 @@ class AutomaticSpansTest : BaseUiTest() {
// AGP matrix tests have no frames
Assume.assumeTrue(totalFrames > 0)
assertNotEquals(totalFrames, 0)
assertTrue(totalFrames > slowFrames + frozenFrames, "Expected total frames ($totalFrames) to be higher than the sum of slow ($slowFrames) and frozen ($frozenFrames) frames.")
assertTrue(totalFrames >= slowFrames + frozenFrames, "Expected total frames ($totalFrames) to be higher than the sum of slow ($slowFrames) and frozen ($frozenFrames) frames.")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
assertTrue(totalFrames >= slowFrames + frozenFrames, "Expected total frames ($totalFrames) to be higher than the sum of slow ($slowFrames) and frozen ($frozenFrames) frames.")
assertTrue(totalFrames > slowFrames + frozenFrames, "Expected total frames ($totalFrames) to be higher than the sum of slow ($slowFrames) and frozen ($frozenFrames) frames.")

This test checks there is at least 1 normal frame that is summed to slow + frozen frames. That's why the test should be "long" enough to have at least 1 normal frame even on slower devices
Otherwise total frames is always at least slow + frozen, so it wouldn't make sense to have it, and it could be removed directly

@@ -126,7 +126,7 @@ class AutomaticSpansTest : BaseUiTest() {
// AGP matrix tests have no frames
Assume.assumeTrue(totalFrames > 0)
assertNotEquals(totalFrames, 0)
assertTrue(totalFrames > slowFrames + frozenFrames, "Expected total frames ($totalFrames) to be higher than the sum of slow ($slowFrames) and frozen ($frozenFrames) frames.")
assertTrue(totalFrames >= slowFrames + frozenFrames, "Expected total frames ($totalFrames) to be higher than the sum of slow ($slowFrames) and frozen ($frozenFrames) frames.")
Copy link
Member

Choose a reason for hiding this comment

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

same as above

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants