Skip to content

Conversation

@HowardBraham
Copy link
Contributor

@HowardBraham HowardBraham commented Apr 15, 2025

Description

On Windows, after you run any E2E test, Google Chrome for Testing does not close, and sits open indefinitely taking CPU load (see screenshot below).

I found that if you loop through the windows/tabs and close() them before you quit() it stops this problem.

It's also possible that this is the cause of some of our cascading crash errors on CI.

For good measure, I updated selenium-webdriver.

Open in GitHub Codespaces

Screenshots/Recordings

Before

image

@HowardBraham HowardBraham self-assigned this Apr 15, 2025
@HowardBraham HowardBraham added the team-extension-platform Extension Platform team label Apr 15, 2025
@github-actions
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-tiger-deprecated DEPRECATED: team no longer exists label Apr 15, 2025
@socket-security
Copy link

socket-security bot commented Apr 15, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedselenium-webdriver@​4.28.1 ⏵ 4.31.098 +110010095 -180

View full report

@HowardBraham HowardBraham removed the team-tiger-deprecated DEPRECATED: team no longer exists label Apr 15, 2025
@metamaskbot
Copy link
Collaborator

❌ API Spec Test Failed. View the report here.

@metamaskbot metamaskbot added the team-tiger-deprecated DEPRECATED: team no longer exists label Apr 15, 2025
@HowardBraham HowardBraham removed the team-tiger-deprecated DEPRECATED: team no longer exists label Apr 15, 2025
@metamaskbot metamaskbot added the team-tiger-deprecated DEPRECATED: team no longer exists label Apr 15, 2025
@HowardBraham HowardBraham removed the team-tiger-deprecated DEPRECATED: team no longer exists label Apr 15, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [c393c55]
UI Startup Metrics (1242 ± 55 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1242113114135512801331
load107597012825811121185
domContentLoaded106996612685711061178
domInteractive19146591733
firstPaint645132124643310701149
backgroundConnect74243815
firstReactRender22164862234
getState1354382127
initialActions001001
loadScripts827739101055859939
setupStore84203815
WebpackHomeuiStartup25031986297819626202791
load19851538249923121012439
domContentLoaded19711534249322620882435
domInteractive181382111545
firstPaint2099164670237324
backgroundConnect54113466751231
firstReactRender17063385119316358
getState214260421841
initialActions327135
loadScripts19651532249022620842431
setupStore3173105625226
FirefoxBrowserifyHomeuiStartup13631191178410214181556
load1206105314459812731398
domContentLoaded1205105314459812731398
domInteractive1033535641116164
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2313205212148
firstReactRender23195352432
getState9417617810
initialActions001001
loadScripts1186103414289912571366
setupStore8416416610
WebpackHomeuiStartup14731312179610915721677
load1264113716209913401452
domContentLoaded1264113716209913401452
domInteractive77351642183121
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21134562233
firstReactRender34285453547
getState94316928
initialActions102111
loadScripts1245111916019913181435
setupStore8546589
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@metamaskbot metamaskbot added the team-tiger-deprecated DEPRECATED: team no longer exists label Apr 15, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [fbd050a]
UI Startup Metrics (1237 ± 71 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1237111814407112811366
load106896812336311091189
domContentLoaded106296512256211021182
domInteractive18146681731
firstPaint69976122742810801184
backgroundConnect74283710
firstReactRender21165762230
getState15543102133
initialActions001001
loadScripts82273698560861946
setupStore85273914
WebpackHomeuiStartup21861780263916923042416
load16641357206913317611852
domContentLoaded16561354204313117541828
domInteractive161161111346
firstPaint1816440071210341
backgroundConnect271072143558
firstReactRender23057408119341364
getState174247331633
initialActions317146
loadScripts16511352201813117511808
setupStore227302332342
FirefoxBrowserifyHomeuiStartup13931192171010914701639
load12361062155011213121486
domContentLoaded12361062155011213111486
domInteractive1073725634121168
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21145562231
firstReactRender23204742529
getState84365812
initialActions001001
loadScripts12181048153811312911462
setupStore741691668
WebpackHomeuiStartup15431349204312016271749
load13221162178110814031532
domContentLoaded13211161177910814031531
domInteractive81551482195126
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22148292241
firstReactRender36295863848
getState95386929
initialActions002111
loadScripts13021148176210713721509
setupStore85505812
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@HowardBraham HowardBraham marked this pull request as ready for review April 15, 2025 21:12
@HowardBraham HowardBraham enabled auto-merge April 15, 2025 21:12
Copy link
Contributor

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

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

works on my machine!

@HowardBraham HowardBraham added no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed and removed team-tiger-deprecated DEPRECATED: team no longer exists labels Apr 17, 2025
@HowardBraham HowardBraham added this pull request to the merge queue Apr 17, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [9311b07]
UI Startup Metrics (1254 ± 75 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1254112515147512941407
load108597713357211291235
domContentLoaded107997213317211211230
domInteractive18136271734
firstPaint687135125244110901205
backgroundConnect74182810
firstReactRender21164862142
getState13567101729
initialActions001001
loadScripts838727108071875986
setupStore84283813
WebpackHomeuiStartup21061701247815522352334
load16241288203113017151797
domContentLoaded16171282202113017081790
domInteractive1611103141353
firstPaint1876158474232311
backgroundConnect289241322859
firstReactRender21155418121332355
getState1143261425
initialActions315135
loadScripts16131280199912917071786
setupStore196281272033
FirefoxBrowserifyHomeuiStartup13341155169210813931542
load11891012155411212581414
domContentLoaded11891012155411212571414
domInteractive1023532641114168
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect18124652030
firstReactRender22195132226
getState73304814
initialActions001001
loadScripts1172999152311112431398
setupStore9417924615
WebpackHomeuiStartup14971339185310815671695
load1279114715899813461491
domContentLoaded1279114615899813461491
domInteractive81591552389138
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21154252234
firstReactRender35285043645
getState94799926
initialActions102111
loadScripts1260113315689713261476
setupStore85425823
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

Merged via the queue into main with commit 4c7d675 Apr 17, 2025
173 of 174 checks passed
@HowardBraham HowardBraham deleted the chromedriver-crash branch April 17, 2025 18:38
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants