chore: update CDN endpoints (#34061)
This commit is contained in:
parent
c57155e30c
commit
f7c99ee6e3
|
@ -37,13 +37,9 @@ const PACKAGE_PATH = path.join(__dirname, '..', '..', '..');
|
|||
const BIN_PATH = path.join(__dirname, '..', '..', '..', 'bin');
|
||||
|
||||
const PLAYWRIGHT_CDN_MIRRORS = [
|
||||
'https://playwright.azureedge.net/dbazure/download/playwright', // ESRP CDN
|
||||
'https://cdn.playwright.dev/dbazure/download/playwright', // ESRP CDN
|
||||
'https://playwright.download.prss.microsoft.com/dbazure/download/playwright', // Directly hit ESRP CDN
|
||||
|
||||
// Old endpoints which hit the Storage Bucket directly:
|
||||
'https://playwright.azureedge.net',
|
||||
'https://playwright-akamai.azureedge.net', // Actually Edgio which will be retired Q4 2025.
|
||||
'https://playwright-verizon.azureedge.net', // Actually Edgio which will be retired Q4 2025.
|
||||
'https://cdn.playwright.dev', // Hit the Storage Bucket directly
|
||||
];
|
||||
|
||||
if (process.env.PW_TEST_CDN_THAT_SHOULD_WORK) {
|
||||
|
|
|
@ -19,11 +19,9 @@ import net from 'net';
|
|||
import type { AddressInfo } from 'net';
|
||||
|
||||
const CDNS = [
|
||||
'https://playwright.azureedge.net/dbazure/download/playwright', // ESRP
|
||||
'https://cdn.playwright.dev/dbazure/download/playwright', // ESRP
|
||||
'https://playwright.download.prss.microsoft.com/dbazure/download/playwright', // ESRP Fallback
|
||||
'https://playwright.azureedge.net',
|
||||
'https://playwright-akamai.azureedge.net',
|
||||
'https://playwright-verizon.azureedge.net',
|
||||
'https://cdn.playwright.dev',
|
||||
];
|
||||
|
||||
const DL_STAT_BLOCK = /^.*from url: (.*)$\n^.*to location: (.*)$\n^.*response status code: (.*)$\n^.*total bytes: (\d+)$\n^.*download complete, size: (\d+)$\n^.*SUCCESS downloading (\w+) .*$/gm;
|
||||
|
|
Loading…
Reference in New Issue