Skip to content

feat: enable account syncing for MV2 #31141

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

Merged
merged 23 commits into from
Mar 25, 2025
Merged

feat: enable account syncing for MV2 #31141

merged 23 commits into from
Mar 25, 2025

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Mar 20, 2025

Description

This PR enables account syncing for MV2.

It also:

  • fixes user storage related E2E tests so that they don't rely on async describe statements, because those were making CI ignore the this.timeout overrides. We need those overrides as MV2 tests take a while for account syncing and user storage related operations.
  • Adds new test utils for user storage:
    • Wait until a certain number of accounts have been synced
    • Wait until a user storage network event happened a certain number of times

MV2 E2E test drive results:

Capture d’écran 2025-03-25 à 09 32 25

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/IDENTITY-56

Manual testing steps

  1. Load the build in Firefox
  2. Import or create an SRP
  3. Add accounts and rename them
  4. Uninstall / Reinstall
  5. Verify that the previously created accounts are synced

Screenshots/Recordings

Before

After

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.

@mathieuartu mathieuartu self-assigned this Mar 20, 2025
Copy link
Contributor

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.

@metamaskbot
Copy link
Collaborator

Builds ready [96e1714]
Page Load Metrics (2541 ± 329 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint49637062305725348
domContentLoaded160233892148457220
load172841322541685329
domInteractive25186624421
backgroundConnect931088385261125
firstReactRender26285895828
getState1057614812259
initialActions01000
loadScripts116821381527263126
setupStore10291806330
uiStartup2022995140971797863
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -148 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@mathieuartu mathieuartu marked this pull request as ready for review March 21, 2025 11:30
@mathieuartu mathieuartu requested review from a team as code owners March 21, 2025 11:30
seaona
seaona previously approved these changes Mar 21, 2025
Copy link
Contributor

@seaona seaona left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for the prompt fix 😍

@metamaskbot
Copy link
Collaborator

Builds ready [2a67321]
Page Load Metrics (2628 ± 362 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint59740392334857411
domContentLoaded164437832315508244
load181445172628755362
domInteractive29207705526
backgroundConnect261680290376181
firstReactRender22136723617
getState1655814516479
initialActions01000
loadScripts119823001680309148
setupStore10321718440
uiStartup215911910401723731139
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -148 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@mathieuartu mathieuartu changed the title test: account sync mv2 re-enablement CI side effects feat: enable account syncing for MV2 Mar 21, 2025
mirceanis
mirceanis previously approved these changes Mar 21, 2025
@mathieuartu mathieuartu dismissed stale reviews from mirceanis and seaona via 32e6368 March 21, 2025 13:36
mirceanis
mirceanis previously approved these changes Mar 21, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [32e6368]
Page Load Metrics (3701 ± 1625 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint172213396343231441509
domContentLoaded163512390312729511417
load173113957370133841625
domInteractive215269611957
backgroundConnect991631549460221
firstReactRender273091086230
getState301476272342164
initialActions02010
loadScripts119711111243527371314
setupStore1354113414067
uiStartup207423088619351282463
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -148 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [46d44fa]
Page Load Metrics (3503 ± 1662 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint149615073332634031634
domContentLoaded142714950307833261597
load150115067350334621662
domInteractive248909118689
backgroundConnect501454390342164
firstReactRender28223874924
getState2473923019794
initialActions02010
loadScripts104914556245032181545
setupStore945611511656
uiStartup175115415569444552139
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -148 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [9167b4f]
Page Load Metrics (3358 ± 1222 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint173112727308223261117
domContentLoaded162712180271222161064
load174513744335825451222
domInteractive28443799847
backgroundConnect1241786600516248
firstReactRender224541159847
getState341183271276132
initialActions01000
loadScripts11811039520041943933
setupStore11987141212102
uiStartup213718131590540651952
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -148 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [12f4820]
Page Load Metrics (2893 ± 333 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint177938072585559269
domContentLoaded163435182282482231
load186143562893694333
domInteractive26144502512
backgroundConnect1231280573313150
firstReactRender332561015627
getState3976527918589
initialActions01000
loadScripts120924111591327157
setupStore1351114711254
uiStartup271810491581726361266
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -148 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@seaona seaona left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the improvements 🙏

@cmd-ob
Copy link
Contributor

cmd-ob commented Mar 25, 2025

Looks great @mathieuartu. I really like the new waits.

Copy link
Contributor

@mirceanis mirceanis left a comment

Choose a reason for hiding this comment

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

I love the new test setups

@mathieuartu mathieuartu added this pull request to the merge queue Mar 25, 2025
Merged via the queue into main with commit 07050c0 Mar 25, 2025
113 checks passed
@mathieuartu mathieuartu deleted the feat/account-sync-mv2 branch March 25, 2025 14:12
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2025
@metamaskbot metamaskbot added the release-12.16.0 Issue or pull request that will be included in release 12.16.0 label Mar 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.16.0 Issue or pull request that will be included in release 12.16.0 team-identity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants