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

[BUG] npx playwright install does not finish install and exits with 0 #17394

Closed
bpasero opened this issue Sep 16, 2022 · 27 comments
Closed

[BUG] npx playwright install does not finish install and exits with 0 #17394

bpasero opened this issue Sep 16, 2022 · 27 comments
Assignees

Comments

@bpasero
Copy link
Member

bpasero commented Sep 16, 2022

Edit from maintainers

You are affected when npx playwright install does not produce a

|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of XX.X Mb

line for each browser install and stops already before.


We recently see this in our CI (using playwright@1.24.2):

$ node test/unit/browser/index.js --sequential --build --browser chromium --browser webkit --tfs 'Browser Unit Tests'
browserType.launch: Executable doesn't exist at /Users/runner/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium
╔═════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers:              ║
║                                                                         ║
║     npx playwright install                                              ║
║                                                                         ║
║ <3 Playwright Team                                                      ║
╚═════════════════════════════════════════════════════════════════════════╝
    at runTestsInBrowser (/Users/runner/work/1/s/test/unit/browser/index.js:129:48)
    at /Users/runner/work/1/s/test/unit/browser/index.js:254:25 {
  name: 'Error'
}
error Command failed with exit code 1.

Is this known?

https://dev.azure.com/monacotools/Monaco/_build/results?buildId=185457&view=logs&j=a5d99aad-4929-5289-bf4a-26b78032353d&t=dafdf52c-6fc3-5431-f55d-37c3624b5ac3&l=13

//cc @pavelfeldman

@bpasero bpasero changed the title [BUG] Executable doesn't exist at /Users/runner/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium [BUG] Executable doesn't exist at /Users/runner/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium Sep 16, 2022
@mxschmitt
Copy link
Member

This is a known issue, that the download (npx playwright install) get's reported as OK (exit code 0) but internally it just terminates and does not complete the download. We were so far not able to reproduce this.

How often does it occur? You can try setting the DEBUG=pw:install env var, which might yield to more debug output during install.

Just FTR, your environment is macOS-11 with Node.js 16.17.0.

@mxschmitt mxschmitt changed the title [BUG] Executable doesn't exist at /Users/runner/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium [BUG] npx playwright install does not finish install and exits with 0 Sep 16, 2022
@bpasero
Copy link
Member Author

bpasero commented Sep 16, 2022

I would say we never had this issue before it only started relatively recently. Can playwright print more info from the install command?

yarn run v1.22.19
$ /Users/runner/work/1/s/node_modules/.bin/npm-run-all -lp 'electron x64' playwright-install
[electron x64      ] $ node build/lib/electron x64
[playwright-install] $ node build/azure-pipelines/common/installPlaywright.js
[playwright-install] Downloading Chromium 104.0.5112.48 (playwright build v1015)...
[playwright-install] |                                                                                |   0% of 121.1 Mb
[playwright-install] |■■■■■■■■                                                                        |  10% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 121.1 Mb
Done in 49.74s.
Finishing: Download Electron and Playwright

@mxschmitt
Copy link
Member

Yes as per above, if you set the DEBUG=pw:install env var.

@bpasero
Copy link
Member Author

bpasero commented Sep 16, 2022

via microsoft/vscode#161099

@bpasero
Copy link
Member Author

bpasero commented Sep 17, 2022

@mxschmitt we had 2 cases now after I added logging.

Case 1

Error: browserType.launch: Executable doesn't exist at /Users/runner/Library/Caches/ms-playwright/webkit-1683/pw_run.sh (from build)

Logs:


==============================================================================
Generating script.
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /Users/runner/work/_temp/793538d4-95e0-4936-aaa6-2526d4dddbeb.sh
yarn run v1.22.19
$ /Users/runner/work/1/s/node_modules/.bin/npm-run-all -lp 'electron x64' playwright-install
[electron x64      ] $ node build/lib/electron x64
[playwright-install] $ node build/azure-pipelines/common/installPlaywright.js
[playwright-install] 2022-09-16T18:20:14.236Z pw:install downloading Chromium 104.0.5112.48 (playwright build v1015) - attempt #1
[playwright-install] Downloading Chromium 104.0.5112.48 (playwright build v1015)...
[playwright-install] 2022-09-16T18:20:14.238Z pw:install running download:
[playwright-install] 2022-09-16T18:20:14.238Z pw:install -- from url: https://playwright.azureedge.net/builds/chromium/1015/chromium-mac.zip
[playwright-install] 2022-09-16T18:20:14.238Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-chromium-mac11-1015.zip
[playwright-install] 2022-09-16T18:20:14.414Z pw:install -- response status code: 200
[playwright-install] 2022-09-16T18:20:14.416Z pw:install -- total bytes: 126972944
[playwright-install] |                                                                                |   0% of 121.1 Mb
[playwright-install] |■■■■■■■■                                                                        |  10% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 121.1 Mb
[playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 121.1 Mb
Done in 43.55s.
Finishing: Download Electron and Playwright

Case 2

Error: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=185626&view=logs&j=260a512b-e5ca-5cf1-3f8e-20c0fa41efc9&t=5f0e9dbb-0df0-5bb0-f10b-78953999773d&l=51 (from build)

Logs:

2022-09-16T21:10:44.3353710Z ##[section]Starting: Download Electron and Playwright
2022-09-16T21:10:44.3365480Z ==============================================================================
2022-09-16T21:10:44.3366160Z Task         : Command line
2022-09-16T21:10:44.3366770Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2022-09-16T21:10:44.3367300Z Version      : 2.201.1
2022-09-16T21:10:44.3367770Z Author       : Microsoft Corporation
2022-09-16T21:10:44.3368390Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2022-09-16T21:10:44.3369070Z ==============================================================================
2022-09-16T21:10:44.7560280Z Generating script.
2022-09-16T21:10:44.7714580Z ========================== Starting Command Output ===========================
2022-09-16T21:10:44.8779170Z [command]/bin/bash --noprofile --norc /Users/runner/work/_temp/599439ed-2e4c-406c-a7cf-bb43fe4f5c16.sh
2022-09-16T21:10:44.8865150Z yarn run v1.22.19
2022-09-16T21:10:44.9190180Z $ /Users/runner/work/1/s/node_modules/.bin/npm-run-all -lp 'electron x64' playwright-install
2022-09-16T21:10:45.6179850Z [electron x64      ] $ node build/lib/electron x64
2022-09-16T21:10:45.6282960Z [playwright-install] $ node build/azure-pipelines/common/installPlaywright.js
2022-09-16T21:10:46.1356980Z [playwright-install] 2022-09-16T21:10:46.132Z pw:install downloading Chromium 104.0.5112.48 (playwright build v1015) - attempt #1
2022-09-16T21:10:46.1460510Z [playwright-install] Downloading Chromium 104.0.5112.48 (playwright build v1015)...
2022-09-16T21:10:46.1563680Z [playwright-install] 2022-09-16T21:10:46.134Z pw:install running download:
2022-09-16T21:10:46.1667100Z [playwright-install] 2022-09-16T21:10:46.134Z pw:install -- from url: https://playwright.azureedge.net/builds/chromium/1015/chromium-mac.zip
2022-09-16T21:10:46.1770850Z [playwright-install] 2022-09-16T21:10:46.134Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-chromium-mac11-1015.zip
2022-09-16T21:10:46.2376380Z [playwright-install] 2022-09-16T21:10:46.230Z pw:install -- response status code: 200
2022-09-16T21:10:46.2479860Z [playwright-install] 2022-09-16T21:10:46.232Z pw:install -- total bytes: 126972944
2022-09-16T21:10:46.2583310Z [playwright-install] |                                                                                |   0% of 121.1 Mb
2022-09-16T21:10:46.4492930Z [playwright-install] |■■■■■■■■                                                                        |  10% of 121.1 Mb
2022-09-16T21:10:46.6405910Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 121.1 Mb
2022-09-16T21:10:46.7996180Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 121.1 Mb
2022-09-16T21:10:46.9386930Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 121.1 Mb
2022-09-16T21:10:47.0875850Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 121.1 Mb
2022-09-16T21:10:47.2044240Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 121.1 Mb
2022-09-16T21:10:47.3855680Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 121.1 Mb
2022-09-16T21:10:47.5364330Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 121.1 Mb
2022-09-16T21:10:47.6776080Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 121.1 Mb
2022-09-16T21:10:47.9590420Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 121.1 Mb
2022-09-16T21:10:47.9644190Z [playwright-install] 2022-09-16T21:10:47.962Z pw:install SUCCESS downloading Chromium 104.0.5112.48 (playwright build v1015)
2022-09-16T21:10:47.9649720Z [playwright-install] 2022-09-16T21:10:47.962Z pw:install extracting archive
2022-09-16T21:10:47.9656790Z [playwright-install] 2022-09-16T21:10:47.963Z pw:install -- zip: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-chromium-mac11-1015.zip
2022-09-16T21:10:47.9666790Z [playwright-install] 2022-09-16T21:10:47.963Z pw:install -- location: /Users/runner/Library/Caches/ms-playwright/chromium-1015
2022-09-16T21:10:53.5886400Z [playwright-install] 2022-09-16T21:10:53.587Z pw:install fixing permissions at /Users/runner/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium
2022-09-16T21:10:53.5949340Z [playwright-install] Chromium 104.0.5112.48 (playwright build v1015) downloaded to /Users/runner/Library/Caches/ms-playwright/chromium-1015
2022-09-16T21:10:53.5967630Z [playwright-install] 2022-09-16T21:10:53.595Z pw:install downloading FFMPEG playwright build v1007 - attempt #1
2022-09-16T21:10:53.5970920Z [playwright-install] Downloading FFMPEG playwright build v1007...
2022-09-16T21:10:53.5973210Z [playwright-install] 2022-09-16T21:10:53.596Z pw:install running download:
2022-09-16T21:10:53.5975380Z [playwright-install] 2022-09-16T21:10:53.596Z pw:install -- from url: https://playwright.azureedge.net/builds/ffmpeg/1007/ffmpeg-mac.zip
2022-09-16T21:10:53.5977810Z [playwright-install] 2022-09-16T21:10:53.596Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-ffmpeg-mac11-1007.zip
2022-09-16T21:10:53.6585620Z [playwright-install] 2022-09-16T21:10:53.657Z pw:install -- response status code: 200
2022-09-16T21:10:53.6589160Z [playwright-install] 2022-09-16T21:10:53.658Z pw:install -- total bytes: 1184854
2022-09-16T21:10:53.6591800Z [playwright-install] |                                                                                |   1% of 1.1 Mb
2022-09-16T21:10:53.7042910Z [playwright-install] |■■■■■■■■                                                                        |  10% of 1.1 Mb
2022-09-16T21:10:53.7061210Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 1.1 Mb
2022-09-16T21:10:53.7089610Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 1.1 Mb
2022-09-16T21:10:53.7115060Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 1.1 Mb
2022-09-16T21:10:53.7140110Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  51% of 1.1 Mb
2022-09-16T21:10:53.7175120Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 1.1 Mb
2022-09-16T21:10:53.7275490Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 1.1 Mb
2022-09-16T21:10:53.7395040Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 1.1 Mb
2022-09-16T21:10:53.7495620Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  91% of 1.1 Mb
2022-09-16T21:10:53.7589160Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 1.1 Mb
2022-09-16T21:10:53.7594490Z [playwright-install] 2022-09-16T21:10:53.729Z pw:install SUCCESS downloading FFMPEG playwright build v1007
2022-09-16T21:10:53.7638570Z [playwright-install] 2022-09-16T21:10:53.729Z pw:install extracting archive
2022-09-16T21:10:53.7641230Z [playwright-install] 2022-09-16T21:10:53.729Z pw:install -- zip: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-ffmpeg-mac11-1007.zip
2022-09-16T21:10:53.7643610Z [playwright-install] 2022-09-16T21:10:53.729Z pw:install -- location: /Users/runner/Library/Caches/ms-playwright/ffmpeg-1007
2022-09-16T21:10:53.7814980Z [playwright-install] 2022-09-16T21:10:53.780Z pw:install fixing permissions at /Users/runner/Library/Caches/ms-playwright/ffmpeg-1007/ffmpeg-mac
2022-09-16T21:10:53.7820200Z [playwright-install] FFMPEG playwright build v1007 downloaded to /Users/runner/Library/Caches/ms-playwright/ffmpeg-1007
2022-09-16T21:10:53.7828880Z [playwright-install] 2022-09-16T21:10:53.782Z pw:install downloading Firefox 102.0 (playwright build v1335) - attempt #1
2022-09-16T21:10:53.7831090Z [playwright-install] 2022-09-16T21:10:53.782Z pw:install running download:
2022-09-16T21:10:53.7833200Z [playwright-install] 2022-09-16T21:10:53.782Z pw:install -- from url: https://playwright.azureedge.net/builds/firefox/1335/firefox-mac-11.zip
2022-09-16T21:10:53.7835150Z [playwright-install] 2022-09-16T21:10:53.782Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-firefox-mac11-1335.zip
2022-09-16T21:10:53.7836850Z [playwright-install] Downloading Firefox 102.0 (playwright build v1335)...
2022-09-16T21:10:53.8067830Z [playwright-install] 2022-09-16T21:10:53.806Z pw:install -- response status code: 200
2022-09-16T21:10:53.8069570Z [playwright-install] 2022-09-16T21:10:53.806Z pw:install -- total bytes: 76989533
2022-09-16T21:10:53.8073740Z [playwright-install] |                                                                                |   0% of 73.4 Mb
2022-09-16T21:10:53.8966980Z [playwright-install] |■■■■■■■■                                                                        |  10% of 73.4 Mb
2022-09-16T21:10:54.0132630Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 73.4 Mb
2022-09-16T21:10:54.1105710Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 73.4 Mb
2022-09-16T21:10:54.2014680Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 73.4 Mb
2022-09-16T21:10:54.2951640Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 73.4 Mb
2022-09-16T21:10:54.3641640Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 73.4 Mb
2022-09-16T21:10:54.4459550Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 73.4 Mb
2022-09-16T21:10:54.5148630Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 73.4 Mb
2022-09-16T21:10:54.5997720Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 73.4 Mb
2022-09-16T21:10:54.6817730Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 73.4 Mb
2022-09-16T21:10:54.6835910Z [playwright-install] 2022-09-16T21:10:54.682Z pw:install SUCCESS downloading Firefox 102.0 (playwright build v1335)
2022-09-16T21:10:54.6840600Z [playwright-install] 2022-09-16T21:10:54.682Z pw:install extracting archive
2022-09-16T21:10:54.6842790Z [playwright-install] 2022-09-16T21:10:54.682Z pw:install -- zip: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-firefox-mac11-1335.zip
2022-09-16T21:10:54.6845390Z [playwright-install] 2022-09-16T21:10:54.683Z pw:install -- location: /Users/runner/Library/Caches/ms-playwright/firefox-1335
2022-09-16T21:10:56.8068740Z [playwright-install] 2022-09-16T21:10:56.805Z pw:install fixing permissions at /Users/runner/Library/Caches/ms-playwright/firefox-1335/firefox/Nightly.app/Contents/MacOS/firefox
2022-09-16T21:10:56.8107700Z [playwright-install] Firefox 102.0 (playwright build v1335) downloaded to /Users/runner/Library/Caches/ms-playwright/firefox-1335
2022-09-16T21:10:56.8123430Z [playwright-install] 2022-09-16T21:10:56.811Z pw:install downloading Webkit 16.0 (playwright build v1683) - attempt #1
2022-09-16T21:10:56.8125000Z [playwright-install] Downloading Webkit 16.0 (playwright build v1683)...
2022-09-16T21:10:56.8128650Z [playwright-install] 2022-09-16T21:10:56.812Z pw:install running download:
2022-09-16T21:10:56.8130410Z [playwright-install] 2022-09-16T21:10:56.812Z pw:install -- from url: https://playwright.azureedge.net/builds/webkit/1683/webkit-mac-11.zip
2022-09-16T21:10:56.8132430Z [playwright-install] 2022-09-16T21:10:56.812Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-webkit-mac11-1683.zip
2022-09-16T21:10:56.8395470Z [playwright-install] 2022-09-16T21:10:56.838Z pw:install -- response status code: 200
2022-09-16T21:10:56.8406260Z [playwright-install] 2022-09-16T21:10:56.840Z pw:install -- total bytes: 59613628
2022-09-16T21:10:56.8411200Z [playwright-install] |                                                                                |   0% of 56.9 Mb
2022-09-16T21:10:56.9099820Z [playwright-install] |■■■■■■■■                                                                        |  10% of 56.9 Mb
2022-09-16T21:10:56.9923870Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 56.9 Mb
2022-09-16T21:10:57.0771640Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 56.9 Mb
2022-09-16T21:10:57.1459360Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 56.9 Mb
2022-09-16T21:10:57.2109950Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 56.9 Mb
2022-09-16T21:10:57.2842000Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 56.9 Mb
2022-09-16T21:10:57.3359140Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 56.9 Mb
2022-09-16T21:10:57.3881720Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 56.9 Mb
2022-09-16T21:10:57.4516950Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 56.9 Mb
2022-09-16T21:10:57.4989890Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 56.9 Mb
2022-09-16T21:10:57.5005090Z [playwright-install] 2022-09-16T21:10:57.499Z pw:install SUCCESS downloading Webkit 16.0 (playwright build v1683)
2022-09-16T21:10:57.5012020Z [playwright-install] 2022-09-16T21:10:57.499Z pw:install extracting archive
2022-09-16T21:10:57.5015120Z [playwright-install] 2022-09-16T21:10:57.499Z pw:install -- zip: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-webkit-mac11-1683.zip
2022-09-16T21:10:57.5018220Z [playwright-install] 2022-09-16T21:10:57.499Z pw:install -- location: /Users/runner/Library/Caches/ms-playwright/webkit-1683
2022-09-16T21:11:06.7450800Z [playwright-install] 2022-09-16T21:11:06.744Z pw:install fixing permissions at /Users/runner/Library/Caches/ms-playwright/webkit-1683/pw_run.sh
2022-09-16T21:11:06.7477040Z [playwright-install] Webkit 16.0 (playwright build v1683) downloaded to /Users/runner/Library/Caches/ms-playwright/webkit-1683
2022-09-16T21:11:06.7830380Z Done in 21.98s.
2022-09-16T21:11:06.8057390Z ##[section]Finishing: Download Electron and Playwright

@bpasero
Copy link
Member Author

bpasero commented Sep 19, 2022

Another one:

2022-09-19T05:54:27.6511180Z ##[section]Starting: Download Electron and Playwright
2022-09-19T05:54:27.6522850Z ==============================================================================
2022-09-19T05:54:27.6523520Z Task         : Command line
2022-09-19T05:54:27.6524070Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2022-09-19T05:54:27.6524560Z Version      : 2.201.1
2022-09-19T05:54:27.6524910Z Author       : Microsoft Corporation
2022-09-19T05:54:27.6525480Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2022-09-19T05:54:27.6526100Z ==============================================================================
2022-09-19T05:54:27.9939370Z Generating script.
2022-09-19T05:54:28.0346570Z ========================== Starting Command Output ===========================
2022-09-19T05:54:28.1620820Z [command]/bin/bash --noprofile --norc /Users/runner/work/_temp/b53bde6b-6754-499a-953b-63a6bb9cd238.sh
2022-09-19T05:54:28.2839180Z yarn run v1.22.19
2022-09-19T05:54:28.5148390Z $ /Users/runner/work/1/s/node_modules/.bin/npm-run-all -lp 'electron x64' playwright-install
2022-09-19T05:54:29.2905420Z [electron x64      ] $ node build/lib/electron x64
2022-09-19T05:54:29.3196020Z [playwright-install] $ node build/azure-pipelines/common/installPlaywright.js
2022-09-19T05:54:29.9690240Z [playwright-install] 2022-09-19T05:54:29.967Z pw:install downloading Chromium 104.0.5112.48 (playwright build v1015) - attempt #1
2022-09-19T05:54:29.9790490Z [playwright-install] Downloading Chromium 104.0.5112.48 (playwright build v1015)...
2022-09-19T05:54:29.9894060Z [playwright-install] 2022-09-19T05:54:29.970Z pw:install running download:
2022-09-19T05:54:29.9994940Z [playwright-install] 2022-09-19T05:54:29.970Z pw:install -- from url: https://playwright.azureedge.net/builds/chromium/1015/chromium-mac.zip
2022-09-19T05:54:30.0095320Z [playwright-install] 2022-09-19T05:54:29.970Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-chromium-mac11-1015.zip
2022-09-19T05:54:30.0599290Z [playwright-install] 2022-09-19T05:54:30.058Z pw:install -- response status code: 200
2022-09-19T05:54:30.0700010Z [playwright-install] 2022-09-19T05:54:30.060Z pw:install -- total bytes: 126972944
2022-09-19T05:54:30.0800360Z [playwright-install] |                                                                                |   0% of 121.1 Mb
2022-09-19T05:54:30.5619080Z [playwright-install] |■■■■■■■■                                                                        |  10% of 121.1 Mb
2022-09-19T05:54:30.8181490Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 121.1 Mb
2022-09-19T05:54:31.1105890Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 121.1 Mb
2022-09-19T05:54:31.4727270Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 121.1 Mb
2022-09-19T05:54:31.8446740Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 121.1 Mb
2022-09-19T05:54:32.1897270Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 121.1 Mb
2022-09-19T05:54:32.5407410Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 121.1 Mb
2022-09-19T05:54:32.9014030Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 121.1 Mb
2022-09-19T05:54:33.1230480Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 121.1 Mb
2022-09-19T05:54:33.3840660Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 121.1 Mb
2022-09-19T05:54:33.3941140Z [playwright-install] 2022-09-19T05:54:33.382Z pw:install SUCCESS downloading Chromium 104.0.5112.48 (playwright build v1015)
2022-09-19T05:54:33.4044450Z [playwright-install] 2022-09-19T05:54:33.382Z pw:install extracting archive
2022-09-19T05:54:33.4146410Z [playwright-install] 2022-09-19T05:54:33.382Z pw:install -- zip: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-chromium-mac11-1015.zip
2022-09-19T05:54:33.4248570Z [playwright-install] 2022-09-19T05:54:33.382Z pw:install -- location: /Users/runner/Library/Caches/ms-playwright/chromium-1015
2022-09-19T05:54:39.9616940Z [playwright-install] 2022-09-19T05:54:39.668Z pw:install fixing permissions at /Users/runner/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium
2022-09-19T05:54:39.9620060Z [playwright-install] Chromium 104.0.5112.48 (playwright build v1015) downloaded to /Users/runner/Library/Caches/ms-playwright/chromium-1015
2022-09-19T05:54:39.9725220Z [playwright-install] 2022-09-19T05:54:39.676Z pw:install downloading FFMPEG playwright build v1007 - attempt #1
2022-09-19T05:54:39.9828780Z [playwright-install] Downloading FFMPEG playwright build v1007...
2022-09-19T05:54:39.9862370Z [playwright-install] 2022-09-19T05:54:39.677Z pw:install running download:
2022-09-19T05:54:39.9920080Z [playwright-install] 2022-09-19T05:54:39.677Z pw:install -- from url: https://playwright.azureedge.net/builds/ffmpeg/1007/ffmpeg-mac.zip
2022-09-19T05:54:39.9947300Z [playwright-install] 2022-09-19T05:54:39.677Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-ffmpeg-mac11-1007.zip
2022-09-19T05:54:39.9970880Z [playwright-install] 2022-09-19T05:54:39.706Z pw:install -- response status code: 200
2022-09-19T05:54:40.0022460Z [playwright-install] 2022-09-19T05:54:39.707Z pw:install -- total bytes: 1184854
2022-09-19T05:54:40.0055930Z [playwright-install] |                                                                                |   1% of 1.1 Mb
2022-09-19T05:54:40.0084530Z [playwright-install] |■■■■■■■■                                                                        |  10% of 1.1 Mb
2022-09-19T05:54:40.0116970Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 1.1 Mb
2022-09-19T05:54:40.0158100Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 1.1 Mb
2022-09-19T05:54:40.0196230Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  41% of 1.1 Mb
2022-09-19T05:54:40.0255590Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  51% of 1.1 Mb
2022-09-19T05:54:40.0290370Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 1.1 Mb
2022-09-19T05:54:40.0333030Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 1.1 Mb
2022-09-19T05:54:40.0369290Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 1.1 Mb
2022-09-19T05:54:40.0416460Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  91% of 1.1 Mb
2022-09-19T05:54:40.0446540Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 1.1 Mb
2022-09-19T05:54:40.0499230Z [playwright-install] 2022-09-19T05:54:39.744Z pw:install SUCCESS downloading FFMPEG playwright build v1007
2022-09-19T05:54:40.0537210Z [playwright-install] 2022-09-19T05:54:39.744Z pw:install extracting archive
2022-09-19T05:54:40.0539350Z [playwright-install] 2022-09-19T05:54:39.744Z pw:install -- zip: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-ffmpeg-mac11-1007.zip
2022-09-19T05:54:40.0575360Z [playwright-install] 2022-09-19T05:54:39.744Z pw:install -- location: /Users/runner/Library/Caches/ms-playwright/ffmpeg-1007
2022-09-19T05:54:40.0605100Z [playwright-install] 2022-09-19T05:54:39.798Z pw:install fixing permissions at /Users/runner/Library/Caches/ms-playwright/ffmpeg-1007/ffmpeg-mac
2022-09-19T05:54:40.0641730Z [playwright-install] FFMPEG playwright build v1007 downloaded to /Users/runner/Library/Caches/ms-playwright/ffmpeg-1007
2022-09-19T05:54:40.0675360Z [playwright-install] 2022-09-19T05:54:39.800Z pw:install downloading Firefox 102.0 (playwright build v1335) - attempt #1
2022-09-19T05:54:40.0698440Z [playwright-install] 2022-09-19T05:54:39.800Z pw:install running download:
2022-09-19T05:54:40.0737560Z [playwright-install] 2022-09-19T05:54:39.800Z pw:install -- from url: https://playwright.azureedge.net/builds/firefox/1335/firefox-mac-11.zip
2022-09-19T05:54:40.0795330Z [playwright-install] 2022-09-19T05:54:39.800Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-firefox-mac11-1335.zip
2022-09-19T05:54:40.0827240Z [playwright-install] Downloading Firefox 102.0 (playwright build v1335)...
2022-09-19T05:54:40.0856220Z [playwright-install] 2022-09-19T05:54:39.831Z pw:install -- response status code: 200
2022-09-19T05:54:40.0883160Z [playwright-install] 2022-09-19T05:54:39.832Z pw:install -- total bytes: 76989533
2022-09-19T05:54:40.0913120Z [playwright-install] |                                                                                |   0% of 73.4 Mb
2022-09-19T05:54:40.6899240Z [playwright-install] |■■■■■■■■                                                                        |  10% of 73.4 Mb
2022-09-19T05:54:41.4106550Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 73.4 Mb
2022-09-19T05:54:41.6368230Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 73.4 Mb
2022-09-19T05:54:41.8223870Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 73.4 Mb
2022-09-19T05:54:41.9972480Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 73.4 Mb
2022-09-19T05:54:42.1887730Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 73.4 Mb
2022-09-19T05:54:42.3991810Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 73.4 Mb
2022-09-19T05:54:42.6148450Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 73.4 Mb
2022-09-19T05:54:42.8040990Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 73.4 Mb
2022-09-19T05:54:42.9709510Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 73.4 Mb
2022-09-19T05:54:42.9745610Z [playwright-install] 2022-09-19T05:54:42.966Z pw:install SUCCESS downloading Firefox 102.0 (playwright build v1335)
2022-09-19T05:54:42.9755830Z [playwright-install] 2022-09-19T05:54:42.966Z pw:install extracting archive
2022-09-19T05:54:42.9782860Z [playwright-install] 2022-09-19T05:54:42.966Z pw:install -- zip: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-firefox-mac11-1335.zip
2022-09-19T05:54:42.9813170Z [playwright-install] 2022-09-19T05:54:42.966Z pw:install -- location: /Users/runner/Library/Caches/ms-playwright/firefox-1335
2022-09-19T05:54:45.9645270Z [playwright-install] 2022-09-19T05:54:45.953Z pw:install fixing permissions at /Users/runner/Library/Caches/ms-playwright/firefox-1335/firefox/Nightly.app/Contents/MacOS/firefox
2022-09-19T05:54:45.9648510Z [playwright-install] Firefox 102.0 (playwright build v1335) downloaded to /Users/runner/Library/Caches/ms-playwright/firefox-1335
2022-09-19T05:54:45.9696300Z [playwright-install] 2022-09-19T05:54:45.959Z pw:install downloading Webkit 16.0 (playwright build v1683) - attempt #1
2022-09-19T05:54:45.9712490Z [playwright-install] Downloading Webkit 16.0 (playwright build v1683)...
2022-09-19T05:54:45.9733710Z [playwright-install] 2022-09-19T05:54:45.959Z pw:install running download:
2022-09-19T05:54:45.9773740Z [playwright-install] 2022-09-19T05:54:45.959Z pw:install -- from url: https://playwright.azureedge.net/builds/webkit/1683/webkit-mac-11.zip
2022-09-19T05:54:45.9804750Z [playwright-install] 2022-09-19T05:54:45.959Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-webkit-mac11-1683.zip
2022-09-19T05:54:46.6288390Z [playwright-install] 2022-09-19T05:54:46.626Z pw:install -- response status code: 200
2022-09-19T05:54:46.6323120Z [playwright-install] 2022-09-19T05:54:46.627Z pw:install -- total bytes: 59613628
2022-09-19T05:54:46.6356610Z [playwright-install] |                                                                                |   0% of 56.9 Mb
2022-09-19T05:54:47.5867720Z [playwright-install] |■■■■■■■■                                                                        |  10% of 56.9 Mb
2022-09-19T05:55:14.9851590Z Done in 46.71s.
2022-09-19T05:55:15.0065380Z ##[section]Finishing: Download Electron and Playwright

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

Is there a command to verify the success of playwright install that we could maybe run to retry this?

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

Btw our install script calls const { installDefaultBrowsersForNpmInstall } = require('playwright-core/lib/server'); directly, is there a better way or is this discouraged? We also retry this call up to 10 times.

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

One idea is that it was maybe caused by using retryCountOnTaskFailure in Azure CI, we will revert this change and see how it goes.

@mxschmitt
Copy link
Member

mxschmitt commented Sep 20, 2022

One idea is that it was maybe caused by using retryCountOnTaskFailure in Azure CI, we will revert this change and see how it goes.

Our current assumption after debugging this a bit with clients is that we hit a Node.js segfault. There are some upstream issues, especially about dealing with network ends up in crashes referring to my colleague. So we'd now recommend using a Node.js debug build in the hope that a stack trace gets printed when it happens.

I can compile one for you, upload it to azure blob and we can use this one exclusively only for the e2e tests, and there only for downloading the browsers. Would you be fine with that?

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

We need to consume playwright via npm, but maybe we could just get the sources to download playwright and inline them into our install script?

@mxschmitt
Copy link
Member

We need to consume playwright via npm, but maybe we could just get the sources to download playwright and inline them into our install script?

The problem is not Playwright. It's most likely Node.js. what we know as of today is sometimes it will just exit with 0 without triggering any error handlers etc.

We can make npm consume a custom node.js executable. But it's enough to call the installPlaywright.js in your case with the custom node which is compiled with debug mode, so no need for npm stuff.

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

I am not sure we can patch the node.js executable that is used by Azure CI to be honest.

@mxschmitt
Copy link
Member

mxschmitt commented Sep 20, 2022

I am not sure we can patch the node.js executable that is used by Azure CI to be honest.

It would be something like that:

curl...
tar...
./my-custom-node installPlaywright.js

I can prepare the stuff later, it hopefully gives us more insights. It's also affecting macOS only.

If you have suggestions how to debug it, let us know! That would be for us at least the next logical step.

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

So it seems the log is indicating the issue, e.g. here:

2022-09-20T08:20:48.5754130Z [playwright-install] 2022-09-20T08:20:48.568Z pw:install -- to location: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/playwright-download-firefox-mac11-1335.zip
2022-09-20T08:20:48.7606970Z [playwright-install] 2022-09-20T08:20:48.752Z pw:install -- response status code: 200
2022-09-20T08:20:48.7708180Z [playwright-install] 2022-09-20T08:20:48.752Z pw:install -- total bytes: 76989533
2022-09-20T08:20:48.7808890Z [playwright-install] |                                                                                |   0% of 73.4 Mb
2022-09-20T08:20:49.5360270Z [playwright-install] |■■■■■■■■                                                                        |  10% of 73.4 Mb
2022-09-20T08:20:50.8489200Z [playwright-install] |■■■■■■■■■■■■■■■■                                                                |  20% of 73.4 Mb
2022-09-20T08:20:51.7599870Z [playwright-install] |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 73.4 Mb
2022-09-20T08:21:13.6009240Z Done in 55.88s.
2022-09-20T08:21:13.6192950Z ##[section]Finishing: Download Electron and Playwright

The bar does not finish.

Are there debug flags we could enable in node.js?

If there is nothing, then yeah, lets see to hack in the node.js executable, maybe in a branch of VSCode. Should be easy enough to reproduce there as well.

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

Interesting, on Linux:

[playwright-install] $ node build/azure-pipelines/common/installPlaywright.js
[playwright-install] 2022-09-19T20:17:10.061Z pw:install downloading Chromium 104.0.5112.48 (playwright build v1015) - attempt #1
[playwright-install] 2022-09-19T20:17:10.062Z pw:install running download:
[playwright-install] 2022-09-19T20:17:10.063Z pw:install -- from url: https://playwright.azureedge.net/builds/chromium/1015/chromium-linux.zip
[playwright-install] 2022-09-19T20:17:10.063Z pw:install -- to location: /tmp/playwright-download-chromium-ubuntu18.04-1015.zip
[playwright-install] Downloading Chromium 104.0.5112.48 (playwright build v1015)...
[playwright-install] 2022-09-19T20:17:10.174Z pw:install -- response status code: 200
[playwright-install] 2022-09-19T20:17:10.175Z pw:install -- total bytes: 139249847
[playwright-install] |                                                                                |   0% of 132.8 Mb
[playwright-install] |■■■■■■■■                                                                        |  10% of 132.8 Mb
##[error]The task has timed out.
Finishing: Download Electron and Playwright

@mxschmitt
Copy link
Member

Are there debug flags we could enable in node.js?

Most likely not, I'm currently compiling Node.js for macOS, so we can use this to maybe get more information out of it.

Interesting, on Linux:

That's helpful! So some issue seems to affect Linux as well. Pretty sure the issue on Linux is different tho, we recently fixed this, which should be included in the 1.26 release (not released yet). Reason was that there was no timeout set for the underlying http requests.

@bpasero
Copy link
Member Author

bpasero commented Sep 20, 2022

Note that we are on 1.24.2 currently. Is it worthwhile updating?

@nmann4
Copy link

nmann4 commented Sep 20, 2022

@bpasero We were seeing this on our CI machines and updating to 1.25.2 seems to have fixed it for us. I couldn't tell you the reason why but it is probably worth a try.

@mxschmitt
Copy link
Member

@bpasero We were seeing this on our CI machines and updating to 1.25.2 seems to have fixed it for us. I couldn't tell you the reason why but it is probably worth a try.

Which operating system are you using and where do you run your tests?

@nmann4
Copy link

nmann4 commented Sep 20, 2022

@bpasero We were seeing this on our CI machines and updating to 1.25.2 seems to have fixed it for us. I couldn't tell you the reason why but it is probably worth a try.

Which operating system are you using and where do you run your tests?

Sorry I don't know how to inspect the details of our agents. They are hosted in Azure DevOps. We are using the playwright:bionic image in our dockerfile where we noticed it was failing. I believe that uses Ubuntu 18 LTS.

@bpasero
Copy link
Member Author

bpasero commented Sep 21, 2022

I will see to update to 1.25.2.

@mxschmitt
Copy link
Member

mxschmitt commented Sep 21, 2022

@nmann4 could you provide us some logs of your behavior? What was failing? Does it also just randomly stop the downloads or does it hang? Hanging should be fixed in 1.26. This issue is about that the download suddenly stops and does not yield to errors. Just to make sure we are talking about the same issues, since as of today we think this issue is macOS only, but you are using Linux so this would make a big difference!

@nmann4
Copy link

nmann4 commented Sep 21, 2022

@mxschmitt Sure. Sorry if I hijacked the thread. To be clear we were seeing the downloads being stuck at 0 and then it would still report the build as a "success". Then the tests would fail because there was no browser installed.

Here is a snippet from the machine. it was reproing consistently in CI. Let me know if you need more logs from before and after this moment.

Downloading Chromium 104.0.5112.20 (playwright build v1012)...
|                                                                                |   0% of 132.8 Mb

EDIT:
Later on in the pipeline we would see the following in the tests.

 browserType.launch: Executable doesn't exist at /ms-playwright/chromium-1012/chrome-linux/chrome
    ╔═════════════════════════════════════════════════════════════════════════╗
    ║ Looks like Playwright Test or Playwright was just installed or updated. ║
    ║ Please run the following command to download new browsers:              ║
    ║                                                                         ║
    ║     npx playwright install                                              ║
    ║                                                                         ║
    ║ <3 Playwright Team                                                      ║
    ╚═════════════════════════════════════════════════════════════════════════╝

@bpasero
Copy link
Member Author

bpasero commented Sep 22, 2022

I also feel that the update has helped us, so maybe that was the fix needed? However, that does still not explain how it suddenly started, because we had been on the 1.24.x version for a while without issues either.

@mxschmitt
Copy link
Member

We implemented like a workaround for this, it goes live in 1.27.

Please let us know if you still encounter it afterwards.

@Serhatbird
Copy link

There is still a problem. you helped me****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants