From ed550b5fe5aa41e182db84d2b2f2fb768121fd7a Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Thu, 29 Feb 2024 20:36:29 -0800 Subject: [PATCH] Change webgpu CI pipeline to use a preinstalled chrome (#19729) ### Description Change webgpu CI pipeline to use a preinstalled chrome. Hopefully it can increase the stability. Now the chrome got from puppeteer often failed to start. --- .../github/azure-pipelines/templates/win-web-ci.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml index 043da233cc674..b882d6fb167fd 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml @@ -31,6 +31,7 @@ jobs: variables: webgpuCommandlineExtraFlags: '--chromium-flags=--ignore-gpu-blocklist --chromium-flags=--gpu-vendor-id=0x10de' runCodesignValidationInjection: false + CHROME_BIN: 'C:\Program Files\Google\Chrome\Application\chrome.exe' timeoutInMinutes: 60 workspace: clean: all @@ -95,18 +96,6 @@ jobs: targetFolder: $(Build.SourcesDirectory)\js\web\lib\wasm\binding flattenFolders: true displayName: 'Binplace js files' - - script: | - npm i -g puppeteer - workingDirectory: '$(Build.SourcesDirectory)' - displayName: 'Use puppeteer to prepare Chrome for tests' - - script: | - FOR /F "tokens=* USEBACKQ" %%F IN (`where /r %HOMEDRIVE%%HOMEPATH%\.cache\puppeteer chrome.exe`) DO ( - SET var=%%F - ECHO found chrome.exe: %%F - ) - ECHO ##vso[task.setvariable variable=CHROME_BIN;]%var% - workingDirectory: '$(Build.SourcesDirectory)' - displayName: 'Set CHROME_BIN' - script: | npm ci workingDirectory: '$(Build.SourcesDirectory)\js'