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

chore: Reduce E2E test jobs run on PRs #28525

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 18, 2024

Description

The number of E2E test jobs run on PRs has been reduced to save on CircleCI credits. We still run the "chrome MV3" test job, but the Firefox and "chrome MV2/webpack build" E2E test jobs are now only run on develop, master, and RC branches. This should result in huge CircleCI credit savings.

These jobs were chosen because it's uncommon for test failures or flakiness to manifest in these jobs without also appearing in the Chrome MV3 E2E test job, and this job represents the mmajority of our userbase (the Chrome MV2/webpack build is only used for development).

Open in GitHub Codespaces

Related issues

This is intended to reduce credit usage. There is no linked issue.

Manual testing steps

N/A

Screenshots/Recordings

N/A

Pre-merge author checklist

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.

@metamaskbot
Copy link
Collaborator

Builds ready [5c5674c]
Page Load Metrics (1813 ± 45 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint32119831673431207
domContentLoaded1662203917879747
load1675205618139445
domInteractive257036126
backgroundConnect1196292311
firstReactRender44215855325
getState47190984019
initialActions01000
loadScripts1227151213287436
setupStore583182613
uiStartup190626702144228109
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [81e8828]
Page Load Metrics (2092 ± 83 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint33424322012421202
domContentLoaded18132371206616680
load18212435209217483
domInteractive28278696230
backgroundConnect891292210
firstReactRender5810681147
getState4910486168
initialActions01000
loadScripts13521785156213565
setupStore618931
uiStartup21332816237619393
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

The number of E2E test jobs run on PRs has been reduced to save on
CircleCI credits. We still run the "chrome MV3" test job, but the
Firefox and "chrome MV2/webpack build" E2E test jobs are now only run
on `develop`, `master`, and RC branches. This should result in huge
CircleCI credit savings.

These jobs were chosen because it's uncommon for test failures or
flakiness to manifest in these jobs without also appearing in the
Chrome MV3 E2E test job, and this job represents the mmajority of our
userbase (the Chrome MV2/webpack build is only used for development).
@Gudahtt Gudahtt marked this pull request as ready for review November 19, 2024 17:05
@Gudahtt Gudahtt requested review from kumavis and a team as code owners November 19, 2024 17:05
@@ -197,6 +197,7 @@ workflows:
requires:
- prep-deps
- test-e2e-chrome-webpack:
<<: *develop_master_rc_only
Copy link
Contributor

@seaona seaona Nov 19, 2024

Choose a reason for hiding this comment

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

nit: maybe we can also apply the same filter to the prep-build-test-webpack job? It takes only ~1minute, so we won't save much from that, but in case you want to add it

Copy link
Member Author

Choose a reason for hiding this comment

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

Good suggestion, I had the same thought as well. I wasn't sure though, as having the build might catch build errors that we would otherwise miss.

Copy link
Contributor

Choose a reason for hiding this comment

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

good point, yeah we won't win much from that change, compared to the information we can loose, so happy as it is 👍

@metamaskbot
Copy link
Collaborator

Builds ready [85eb67f]
Page Load Metrics (1918 ± 73 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint17192457192115173
domContentLoaded17102440188915072
load17192455191815273
domInteractive27127442110
backgroundConnect985292311
firstReactRender469165147
getState449979199
initialActions01000
loadScripts12421991143315072
setupStore6471094
uiStartup19552758216716780
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@hjetpoluru hjetpoluru self-requested a review November 19, 2024 19:55
Copy link
Contributor

@hjetpoluru hjetpoluru left a comment

Choose a reason for hiding this comment

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

Code changes LGTM.

Depending on the monitoring of the develop branch and the flakiness report, the changes can be easily reverted if needed.

@Gudahtt Gudahtt added this pull request to the merge queue Nov 19, 2024
Merged via the queue into develop with commit 9b6dab8 Nov 20, 2024
78 checks passed
@Gudahtt Gudahtt deleted the reduce-PR-check-credit-usage branch November 20, 2024 00:03
@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-extension-platform team-wallet-framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants