Skip to content

Conversation

@bowensanders
Copy link
Contributor

@bowensanders bowensanders commented Feb 6, 2024

Description

This PR is intended to reduce the amount of CI time used by the snaps E2E tests by removing or replacing as many delays as possible without having a negative impact on test flakiness.

Fixes: 76 1000ms delays removed
24 500ms delays removed

old test-e2e-chrome-flask speeds (using v 11.10 as benchmark) -
shortest snaps test - 1m29s
longest snaps test - 2m23s
longest test in run - 3m16s (longest test is from accounts)
(see this page for details)

new test-e2e-chrome-flask speeds
shortest snaps test - 1m10s
longest snaps test - 1m52
(see this page for details) (edited)

Related issues

Manual testing steps

  1. this only effects automated CI tests

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@bowensanders bowensanders added area-snaps team-snaps-deprecated DEPRECATED: please use "team-core-platform" instead labels Feb 6, 2024
@bowensanders bowensanders self-assigned this Feb 6, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2024

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@codecov
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1d4a666) 68.48% compared to head (6792e5a) 68.47%.
Report is 5 commits behind head on develop.

❗ Current head 6792e5a differs from pull request most recent head f184bcb. Consider uploading reports for the commit f184bcb to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #22821      +/-   ##
===========================================
- Coverage    68.48%   68.47%   -0.01%     
===========================================
  Files         1088     1088              
  Lines        42897    42902       +5     
  Branches     11425    11424       -1     
===========================================
- Hits         29378    29377       -1     
- Misses       13519    13525       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [6028508]
Page Load Metrics (773 ± 30 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint98160114189
domContentLoaded9441794
load7059597736230
domInteractive9441794
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [8c67b3f]
Page Load Metrics (772 ± 22 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint94152115178
domContentLoaded9391673
load6828777724622
domInteractive9391673
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [b48ab87]
Page Load Metrics (816 ± 34 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint85159111189
domContentLoaded10321753
load6939398167034
domInteractive10321753
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@bowensanders bowensanders marked this pull request as ready for review February 6, 2024 23:33
@bowensanders bowensanders requested a review from a team as a code owner February 6, 2024 23:33
Copy link
Member

@FrederikBolding FrederikBolding left a comment

Choose a reason for hiding this comment

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

Please delete all the commented out lines before we merge this

@metamaskbot
Copy link
Collaborator

Builds ready [6679084]
Page Load Metrics (699 ± 13 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint781169174
domContentLoaded9211332
load6657666992813
domInteractive9211332
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@bowensanders
Copy link
Contributor Author

comments removed

@metamaskbot
Copy link
Collaborator

Builds ready [6792e5a]
Page Load Metrics (835 ± 93 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint81152109189
domContentLoaded10481994
load714163683519393
domInteractive10471994
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Member

@FrederikBolding FrederikBolding left a comment

Choose a reason for hiding this comment

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

Spotted a few more

bowensanders and others added 3 commits February 8, 2024 09:29
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
@metamaskbot
Copy link
Collaborator

Builds ready [5176b1e]
Page Load Metrics (858 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint85164114199
domContentLoaded95321136
load753130985811354
domInteractive95321136
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [f184bcb]
Page Load Metrics (780 ± 15 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint861119684
domContentLoaded9221632
load7188427803215
domInteractive9221632
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@bowensanders bowensanders merged commit 1beedcf into develop Feb 9, 2024
@bowensanders bowensanders deleted the bowen/delays branch February 9, 2024 18:48
@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
@metamaskbot metamaskbot added the release-11.12.0 Issue or pull request that will be included in release 11.12.0 label Feb 9, 2024
@ziedbrini ziedbrini added team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues) and removed team-snaps-deprecated DEPRECATED: please use "team-core-platform" instead labels Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-snaps release-11.12.0 Issue or pull request that will be included in release 11.12.0 team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants