Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Sep 12, 2025

Description

The script responsible for determining how to split up tests in a given workflow was failing when I tried to add a new workflow. It didn't seem to handle the case where a workflow had zero past runs.

It has been updated to use a naive fallback splitting algorithm in this case.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

This fixes a CI bug encountered on #31435

Manual testing steps

See this PR for an example of the failures: #35906

See here for a rebased version of that PR on this branch, which works: #35913

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.

The script responsible for determining how to split up tests in a given
workflow was failing when I tried to add a new workflow. It didn't seem
to handle the case where a workflow had zero past runs.

It has been updated to use a naive fallback splitting algorithm in this
case.
@metamaskbot metamaskbot added the team-core-platform Core Platform team label Sep 12, 2025
@metamaskbot
Copy link
Collaborator

📊 Page Load Benchmark Results

Current Commit: 26e1b08 | Date: 9/12/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±71ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 739ms (±68ms) 🟢 | historical mean value: 736ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±12ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)
📈 Detailed Results
Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 71ms 1.01s 1.33s 1.27s 1.33s
domContentLoaded 739ms 68ms 704ms 1.01s 939ms 1.01s
firstPaint 78ms 12ms 64ms 184ms 88ms 184ms
firstContentfulPaint 78ms 12ms 64ms 184ms 88ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms

Results generated automatically by MetaMask CI

@metamaskbot
Copy link
Collaborator

Builds ready [26e1b08]
UI Startup Metrics (1232 ± 70 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1232110114327012691356
load106895712346411011201
domContentLoaded106195012236410951194
domInteractive17134761740
firstPaint66394121043510771147
backgroundConnect2452252697249255
firstReactRender24175262639
getState14483121628
initialActions40163612
loadScripts82372097862853946
setupStore96283916
WebpackHomeuiStartup20231503258825322002453
load16101212202018717421904
domContentLoaded16021202200018517291886
domInteractive1812119171551
firstPaint1546436165175311
backgroundConnect291265103153
firstReactRender109353389888333
getState2653055914231
initialActions72335819
loadScripts15981200198718417241875
setupStore3063066716297
FirefoxBrowserifyHomeuiStartup14251249189411214801610
load1228108914067612861362
domContentLoaded1228108914057612851362
domInteractive1003326844114216
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect3519126173882
firstReactRender28235343035
getState9320622713
initialActions5119720311
loadScripts1202107013797412581331
setupStore1057910835
WebpackHomeuiStartup15951378203315417201880
load13671179170913614881594
domContentLoaded13661179170913614881594
domInteractive1023330351104259
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect31205373646
firstReactRender43355644751
getState73808712
initialActions612382736
loadScripts13441161168813814671575
setupStore95294919
Benchmark value 1062 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 245 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 25 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 1202 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1194 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 256 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 12 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 946 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 231 exceeds gate value 195 for chrome webpack home p95 getState
Benchmark value 19 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 297 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 1425 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 36 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 29 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 6 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 216 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 82 exceeds gate value 70 for firefox browserify home p95 backgroundConnect
Benchmark value 11 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 35 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 103 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 32 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 44 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 7 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 259 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 51 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 6 exceeds gate value 2 for firefox webpack home p95 initialActions
Sum of mean exceeds: 304ms | Sum of p95 exceeds: 718.8ms
Sum of all benchmark exceeds: 1022.8ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 43 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 10 Bytes (0%)

@Gudahtt Gudahtt mentioned this pull request Sep 12, 2025
7 tasks
@Gudahtt Gudahtt marked this pull request as ready for review September 12, 2025 17:43
cursor[bot]

This comment was marked as outdated.

Co-authored-by: Howard Braham <howrad@gmail.com>
@metamaskbot
Copy link
Collaborator

📊 Page Load Benchmark Results

Current Commit: 42e588f | Date: 9/15/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±70ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 732ms (±68ms) 🟢 | historical mean value: 738ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)
📈 Detailed Results
Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 70ms 1.01s 1.31s 1.25s 1.31s
domContentLoaded 732ms 68ms 697ms 992ms 933ms 992ms
firstPaint 77ms 11ms 60ms 152ms 84ms 152ms
firstContentfulPaint 77ms 11ms 60ms 152ms 84ms 152ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms

Results generated automatically by MetaMask CI

@metamaskbot
Copy link
Collaborator

Builds ready [42e588f]
UI Startup Metrics (1220 ± 76 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1220110114547612681354
load105994512557311101196
domContentLoaded105293812517311031189
domInteractive18134981742
firstPaint58071120242010511154
backgroundConnect2482352748251264
firstReactRender24174442433
getState1257881425
initialActions40355511
loadScripts811681100771863941
setupStore96385919
WebpackHomeuiStartup20741468262825222192485
load16661170203420417931938
domContentLoaded16581154202420417861930
domInteractive181285121548
firstPaint1736147872194308
backgroundConnect3516372483254
firstReactRender89383456087312
getState2453005514221
initialActions62214612
loadScripts16541152201220317841918
setupStore206249391525
FirefoxBrowserifyHomeuiStartup14211179184111314991622
load1236103616319612981402
domContentLoaded1235103516319612981401
domInteractive1033528447111222
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect3518176223586
firstReactRender28235753038
getState62808611
initialActions5010912314
loadScripts1208102016109112661368
setupStore94749832
WebpackHomeuiStartup16491427218915017421925
load14081215170813214991666
domContentLoaded14071215170713214981665
domInteractive1063431954104276
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect34238993948
firstReactRender46386444853
getState73647615
initialActions5113315311
loadScripts13821192167913214781639
setupStore1063751016
Benchmark value 248 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 24 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 1196 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1190 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 42 exceeds gate value 41 for chrome browserify home p95 domInteractive
Benchmark value 264 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 11 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 941 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 19 exceeds gate value 17 for chrome browserify home p95 setupStore
Benchmark value 2485 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 221 exceeds gate value 195 for chrome webpack home p95 getState
Benchmark value 12 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 1422 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 35 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 29 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 222 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 86 exceeds gate value 70 for firefox browserify home p95 backgroundConnect
Benchmark value 14 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 32 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1649 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1408 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1408 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 107 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 34 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 47 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 6 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 1383 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 1666 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1665 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 276 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 53 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 11 exceeds gate value 2 for firefox webpack home p95 initialActions
Benchmark value 1639 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 421ms | Sum of p95 exceeds: 549.8ms
Sum of all benchmark exceeds: 970.8ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 164.43 KiB (3.67%)
  • ui: -798.68 KiB (-10.22%)
  • common: 43.65 KiB (0.58%)

@github-project-automation github-project-automation bot moved this to Needs dev review in PR review queue Sep 16, 2025
@github-project-automation github-project-automation bot moved this from Needs dev review to Review finalised - Ready to be merged in PR review queue Sep 20, 2025
@itsyoboieltr itsyoboieltr added this pull request to the merge queue Sep 20, 2025
Merged via the queue into main with commit b565164 Sep 20, 2025
146 checks passed
@itsyoboieltr itsyoboieltr deleted the update-tests-splitting-to-support-new-test-workflows branch September 20, 2025 18:06
@github-project-automation github-project-automation bot moved this from Review finalised - Ready to be merged to Merged, Closed or Archived in PR review queue Sep 20, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2025
@metamaskbot metamaskbot added the release-13.5.0 Issue or pull request that will be included in release 13.5.0 label Sep 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.5.0 Issue or pull request that will be included in release 13.5.0 size-S team-core-platform Core Platform team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants