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:
|
inputs:
|
||||||
versionSpec: 10.x
|
versionSpec: 10.x
|
||||||
- powershell: |
|
- powershell: |
|
||||||
test/Cli.FunctionalTests/run-tests.ps1 `
|
test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier)
|
||||||
-ci `
|
|
||||||
-ProdConManifestUrl $env:PRODCONMANIFESTURL `
|
|
||||||
-TestRuntimeIdentifier $(Test.RuntimeIdentifier)
|
|
||||||
condition: ne(variables['PB_SkipTests'], 'true')
|
condition: ne(variables['PB_SkipTests'], 'true')
|
||||||
displayName: Run E2E tests
|
displayName: Run E2E tests
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,9 @@ Set-StrictMode -Version 1
|
||||||
$repoRoot = Resolve-Path "$PSScriptRoot/../../"
|
$repoRoot = Resolve-Path "$PSScriptRoot/../../"
|
||||||
Import-Module "$repoRoot/scripts/common.psm1" -Scope Local -Force
|
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 (-not $HostRid) {
|
||||||
if (Test-Path Variable:/IsCoreCLR) {
|
if (Test-Path Variable:/IsCoreCLR) {
|
||||||
$HostRid = if ($IsWindows) { 'win-x64' } `
|
$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"
|
$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
|
[xml] $prodConManifest = Invoke-RestMethod $ProdConManifestUrl
|
||||||
|
|
||||||
$RestoreSources = $prodConManifest.OrchestratedBuild.Endpoint `
|
$RestoreSources = $prodConManifest.OrchestratedBuild.Endpoint `
|
||||||
|
|
@ -106,7 +111,9 @@ try {
|
||||||
Write-Error "Missing required parameter: AssetRootUrl"
|
Write-Error "Missing required parameter: AssetRootUrl"
|
||||||
}
|
}
|
||||||
$AssetRootUrl = $AssetRootUrl.TrimEnd('/')
|
$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
|
$sdkVersion = $cli.Build.ProductVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue