Open la-magra opened 2 months ago
where are you located and how ling does it typically take you to download a regular browser?
This is contract work.
playwright install
is being run from a development machine VM I connect to remotely, that is located in some site of a Mexican university (never even asked for a location).
A normal download speed for a browser (63MB) in that machine is 13s :
$ curl -Ol 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/130.0/win64/en-US/Firefox%20Setup%20130.0.exe'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 63.4M 100 63.4M 0 0 4972k 0 0:00:13 0:00:13 --:--:-- 12.4M
compared to :
Downloading Firefox 128.0 (playwright build v1458) from https://playwright.azureedge.net/builds/firefox/1458/firefox-ubuntu-20.04.zip
85.6 MiB [================ ] 80% 918.0s
Sounds like they are deliberately throttling the Azure CDNs, not much we can do about it.
I'll contact their network guys in once it's morning in that hemisphere. But it's strange, I've already replicated the download throttling in 4 different networks, in two different countries.
Perhaps same firewall appliance or security lists?
We are in the process of migrating to a different CDN infrastructure, could you try the following?
PLAYWRIGHT_DOWNLOAD_HOST=https://playwright.azureedge.net/download/playwright npx playwright install
(even tho it still looks like azureedge, it redirects to something else)
That seems to work.
Version
1.46.1
Steps to reproduce
Expected behavior
A download that does not take two hours.
Actual behavior
Wow, much speed, I guess I'll wait two hours for CI to complete.
Additional context
Reproducible from multiple remote machines from Mexico and Colombia, at least one University impacted.
Environment