Skip to content

Commit

Permalink
Change webgpu CI pipeline to use a preinstalled chrome (#19729)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
snnn authored Mar 1, 2024
1 parent acbfc29 commit ed550b5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit ed550b5

Please sign in to comment.