Skip to content

Commit

Permalink
Fix pipeline failures
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaZhu committed May 11, 2024
1 parent ed5a86c commit 5e06663
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions eng/pipelines/templates/jobs/live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,25 @@ jobs:
workingDirectory: $(Build.SourcesDirectory)/eng/tools/eng-package-utils
displayName: "Get package path"
- pwsh: |
Start-Process "node" -ArgumentList "launch.js run start-browser-relay" -NoNewWindow -WorkingDirectory "$(Build.SourcesDirectory)/common/tools/dev-tool"
for ($i = 0; $i -lt 10; $i++) {
try {
Invoke-WebRequest -Uri "http://localhost:4895/health" | Out-Null
exit 0
} catch {
Write-Warning "Failed to successfully connect to browser credential relay. Retrying..."
Start-Sleep 6
}
}
Write-Error "Could not connect to browser credential relay."
exit 1
displayName: "Start browser credential relay"
condition: and(succeeded(), eq(variables['TestType'], 'browser'))
env:
TEST_MODE: "live"
${{ insert }}: ${{ parameters.EnvVars }}
# Failed to start it, and storage/stable branch doesn't require this for browser testing.
# - pwsh: |
# Start-Process "node" -ArgumentList "launch.js run start-browser-relay" -NoNewWindow -WorkingDirectory "$(Build.SourcesDirectory)/common/tools/dev-tool"
# for ($i = 0; $i -lt 10; $i++) {
# try {
# Invoke-WebRequest -Uri "http://localhost:4895/health" | Out-Null
# exit 0
# } catch {
# Write-Warning "Failed to successfully connect to browser credential relay. Retrying..."
# Start-Sleep 6
# }
# }
# Write-Error "Could not connect to browser credential relay."
# exit 1
# displayName: "Start browser credential relay"
# condition: and(succeeded(), eq(variables['TestType'], 'browser'))
# env:
# TEST_MODE: "live"
# ${{ insert }}: ${{ parameters.EnvVars }}

- template: ../steps/use-node-test-version.yml

Expand Down

0 comments on commit 5e06663

Please sign in to comment.