Add more logging for E2E tests
Trying to diagnose why ProdCon fails to download metadata
This commit is contained in:
parent
6bbc441565
commit
90ed3bde5e
|
|
@ -19,10 +19,7 @@ phases:
|
|||
inputs:
|
||||
versionSpec: 10.x
|
||||
- powershell: |
|
||||
test/Cli.FunctionalTests/run-tests.ps1 `
|
||||
-ci `
|
||||
-ProdConManifestUrl $env:PRODCONMANIFESTURL `
|
||||
-TestRuntimeIdentifier $(Test.RuntimeIdentifier)
|
||||
test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier)
|
||||
condition: ne(variables['PB_SkipTests'], 'true')
|
||||
displayName: Run E2E tests
|
||||
- task: PublishTestResults@2
|
||||
|
|
|
|||
|
|
@ -49,6 +49,9 @@ Set-StrictMode -Version 1
|
|||
$repoRoot = Resolve-Path "$PSScriptRoot/../../"
|
||||
Import-Module "$repoRoot/scripts/common.psm1" -Scope Local -Force
|
||||
|
||||
# This ID corresponds to the ProdCon build number
|
||||
Write-Host "ProductBuildId: $env:PRODUCTBUILDID"
|
||||
|
||||
if (-not $HostRid) {
|
||||
if (Test-Path Variable:/IsCoreCLR) {
|
||||
$HostRid = if ($IsWindows) { 'win-x64' } `
|
||||
|
|
@ -89,6 +92,8 @@ try {
|
|||
$ProdConManifestUrl = "https://raw.githubusercontent.com/dotnet/versions/master/build-info/dotnet/product/cli/$ProcConChannel/build.xml"
|
||||
}
|
||||
|
||||
Write-Host "ProdConManifestUrl: $ProdConManifestUrl"
|
||||
|
||||
[xml] $prodConManifest = Invoke-RestMethod $ProdConManifestUrl
|
||||
|
||||
$RestoreSources = $prodConManifest.OrchestratedBuild.Endpoint `
|
||||
|
|
@ -106,7 +111,9 @@ try {
|
|||
Write-Error "Missing required parameter: AssetRootUrl"
|
||||
}
|
||||
$AssetRootUrl = $AssetRootUrl.TrimEnd('/')
|
||||
[xml] $cli = Invoke-RestMethod "$AssetRootUrl/orchestration-metadata/manifests/cli.xml${AccessTokenSuffix}"
|
||||
$cliMetadataUrl = "$AssetRootUrl/orchestration-metadata/manifests/cli.xml${AccessTokenSuffix}"
|
||||
Write-Host "CliMetadataUrl: $cliMetadataUrl"
|
||||
[xml] $cli = Invoke-RestMethod $cliMetadataUrl
|
||||
$sdkVersion = $cli.Build.ProductVersion
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue