Skip to content

fix: cp-12.17.0 mms-2255 double high cost alert #32158

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 7 commits into from
Apr 24, 2025

Conversation

GustavoRSSilva
Copy link
Contributor

@GustavoRSSilva GustavoRSSilva commented Apr 21, 2025

Description

Fixs double alert cost

Open in GitHub Codespaces

Related issues

Fixes: 31909

Manual testing steps

  1. Go to Bridge page
  2. Create a bridge with a small amount
  3. see the double error

Screenshots/Recordings

Before

Screenshot 2025-04-21 at 23 27 50 Screenshot 2025-04-21 at 23 31 29

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.

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 metamaskbot added the team-swaps-and-bridge For issues with Swaps or Bridging label Apr 21, 2025
@GustavoRSSilva GustavoRSSilva marked this pull request as ready for review April 21, 2025 22:36
@GustavoRSSilva GustavoRSSilva requested a review from a team as a code owner April 21, 2025 22:36
@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

🔄 @MetaMask/swaps-engineers

  • ui/pages/bridge/prepare/prepare-bridge-page.tsx

@metamaskbot
Copy link
Collaborator

Builds ready [b1525e7]
UI Startup Metrics (1192 ± 58 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1192108514295812231300
load103192212275810611156
domContentLoaded102591512145810531150
domInteractive17137991629
firstPaint70072122340810491097
backgroundConnect84274821
firstReactRender20155872133
getState1353471727
initialActions001001
loadScripts78969296555820890
setupStore74172813
WebpackHomeuiStartup21521762263618922832407
load16611346206814817701847
domContentLoaded16541342204014517601842
domInteractive161155101348
firstPaint1886254885225359
backgroundConnect2710218242764
firstReactRender22957383120334364
getState154288281523
initialActions317145
loadScripts16491341201514417551840
setupStore237303402133
FirefoxBrowserifyHomeuiStartup13381139167711413991586
load11911022155811312521425
domContentLoaded11911022155811312521425
domInteractive1093636949118185
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20134972038
firstReactRender22184442331
getState7426279
initialActions001001
loadScripts11731007154211312371407
setupStore741641667
WebpackHomeuiStartup15481363208214216211860
load13241177189312813921589
domContentLoaded13241176189212813911589
domInteractive82372412593121
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22147172437
firstReactRender36295253748
getState943351027
initialActions102111
loadScripts13041155182312613751569
setupStore85303812
Benchmark value 22 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 359 exceeds gate value 334 for chrome webpack home p95 firstPaint
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 29ms
Sum of all benchmark exceeds: 29ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: -317 Bytes (0%)
  • common: 0 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [e20134d]
UI Startup Metrics (1223 ± 70 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1223111617157012561308
load105495413735610781140
domContentLoaded104895113695610721135
domInteractive17146371627
firstPaint743118137341310671132
backgroundConnect84375815
firstReactRender20153442128
getState134117131831
initialActions001001
loadScripts810719110553834891
setupStore84253813
WebpackHomeuiStartup20951743249217722322339
load16281362192412217051808
domContentLoaded16221359190712117001798
domInteractive161163101349
firstPaint1836941361228292
backgroundConnect319362482763
firstReactRender19056383125338360
getState1243571327
initialActions315134
loadScripts16171357188512116961795
setupStore227290392136
FirefoxBrowserifyHomeuiStartup14221223186611014811640
load12651051169510813441446
domContentLoaded12651051169410813441445
domInteractive1153735749128219
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21135162237
firstReactRender23193022428
getState9416216815
initialActions001001
loadScripts12461039167510713201431
setupStore74365711
WebpackHomeuiStartup15591345229415516131855
load13341172210414313881602
domContentLoaded13331171210414313871601
domInteractive80401251791115
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2515133142643
firstReactRender35295343744
getState124220221031
initialActions002111
loadScripts13111157197313713721577
setupStore95466921
cc: @HowardBraham
Benchmark value 1423 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 1266 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1265 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 116 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 1247 exceeds gate value 1230 for firefox browserify home mean loadScripts
Benchmark value 219 exceeds gate value 195 for firefox browserify home p95 domInteractive
Sum of mean exceeds: 88ms | Sum of p95 exceeds: 24ms
Sum of all benchmark exceeds: 112ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: -317 Bytes (0%)
  • common: 0 Bytes (0%)

@micaelae
Copy link
Member

@GustavoRSSilva if you change the pr title to start with "fix: cp-12.17.0" a cherry pick is automatically created

@GustavoRSSilva GustavoRSSilva changed the title fix: mms-2255 double high cost alert fix: cp-12.17.0 mms-2255 double high cost alert Apr 23, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [d5d6c46]
UI Startup Metrics (1387 ± 105 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup13871193168410514391580
load1185993150110512391410
domContentLoaded1174987149110012341376
domInteractive21138192332
firstPaint702103150648611891372
backgroundConnect12419626919
firstReactRender2817157182760
getState1554282030
initialActions001001
loadScripts9007471147899501089
setupStore1052741118
WebpackHomeuiStartup21221739261418522452376
load16331370202014017341821
domContentLoaded16251366199813717261807
domInteractive151163101347
firstPaint1987441171257339
backgroundConnect261090153065
firstReactRender22455382115331361
getState144255251429
initialActions317135
loadScripts16201365197513517241804
setupStore1764472033
FirefoxBrowserifyHomeuiStartup13631153192013314251580
load12151009175912912801442
domContentLoaded12141009175812912801442
domInteractive1113834748125207
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2114123132035
firstReactRender22195042227
getState9417017811
initialActions001001
loadScripts1195996174512812611406
setupStore6426368
WebpackHomeuiStartup15111332189112815851804
load12891152162711013361527
domContentLoaded12881152162611013361526
domInteractive82412242596127
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2815294302558
firstReactRender35287163647
getState94315920
initialActions101011
loadScripts12641137157910413151475
setupStore13529430931
cc: @HowardBraham
Benchmark value 1387 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1186 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1175 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 21 exceeds gate value 20 for chrome browserify home mean domInteractive
Benchmark value 13 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 29 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 16 exceeds gate value 15 for chrome browserify home mean getState
Benchmark value 901 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 1581 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1411 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1376 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 1372 exceeds gate value 1180 for chrome browserify home p95 firstPaint
Benchmark value 20 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 60 exceeds gate value 45 for chrome browserify home p95 firstReactRender
Benchmark value 1089 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 18 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 339 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 112 exceeds gate value 110 for firefox browserify home mean domInteractive
Benchmark value 207 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 28 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 58 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 31 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 469ms | Sum of p95 exceeds: 1021ms
Sum of all benchmark exceeds: 1490ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: -317 Bytes (0%)
  • common: 0 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [5c9c1d4]
UI Startup Metrics (1214 ± 62 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1214109815036212471329
load105195712795610841157
domContentLoaded104595212725510791151
domInteractive17136061728
firstPaint66179119842310551132
backgroundConnect74223711
firstReactRender20155062133
getState1353982030
initialActions001001
loadScripts806703103053835922
setupStore75132812
WebpackHomeuiStartup20901692251815621852295
load16181319200612517141793
domContentLoaded16121316198212417111786
domInteractive161160121352
firstPaint1827633664230318
backgroundConnect2511234242560
firstReactRender20754366120332359
getState1042951218
initialActions316134
loadScripts16041314195912517071783
setupStore176153151825
FirefoxBrowserifyHomeuiStartup1392122117129914501593
load12391037156210013061452
domContentLoaded12391037156110013051452
domInteractive1063727538123180
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2114105132039
firstReactRender23203632329
getState74253811
initialActions001001
loadScripts1219102215479912881399
setupStore6431368
WebpackHomeuiStartup15271359211112915871820
load13071161190011813531566
domContentLoaded13061161190011813531566
domInteractive85591952390137
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2314107132345
firstReactRender36299983845
getState95477929
initialActions101011
loadScripts12861142181311413271540
setupStore95619836
Benchmark value 36 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 8ms
Sum of all benchmark exceeds: 8ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: -317 Bytes (0%)
  • common: 0 Bytes (0%)

@GustavoRSSilva GustavoRSSilva added this pull request to the merge queue Apr 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 23, 2025
@GustavoRSSilva GustavoRSSilva added this pull request to the merge queue Apr 24, 2025
Merged via the queue into main with commit 25b0bfc Apr 24, 2025
174 checks passed
@GustavoRSSilva GustavoRSSilva deleted the mms-2255-double-high-cost-alert branch April 24, 2025 07:53
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
extension-delivery team-swaps-and-bridge For issues with Swaps or Bridging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: High cost alert is shown twice when bridging
5 participants