summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordotnet-maestro <@dotnet-maestro>2019-04-18 12:23:59 +0000
committerRuss Keldorph <russ.keldorph@microsoft.com>2019-04-24 13:04:12 -0700
commiteba8eebbeee9421e587fa5465753ac58910f4cfd (patch)
tree197059b919598e06dbcff1d7394abedbe8d2f483
parent7fcce6780f6bf222df71fe964ba0d0669cd9ad9c (diff)
downloadcoreclr-eba8eebbeee9421e587fa5465753ac58910f4cfd.tar.gz
coreclr-eba8eebbeee9421e587fa5465753ac58910f4cfd.tar.bz2
coreclr-eba8eebbeee9421e587fa5465753ac58910f4cfd.zip
Update dependencies from https://github.com/dotnet/arcade build 20190418.1
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19218.1 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19218.1
-rw-r--r--eng/Version.Details.xml8
-rw-r--r--eng/common/CheckSymbols.ps144
-rw-r--r--global.json4
3 files changed, 40 insertions, 16 deletions
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 06c3d2e4fc..84bc751a99 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -3,13 +3,13 @@
<ProductDependencies>
</ProductDependencies>
<ToolsetDependencies>
- <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19217.1">
+ <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19218.1">
<Uri>https://github.com/dotnet/arcade</Uri>
- <Sha>4e21d52dabbb9f5705a90f097acb1465a0354c0d</Sha>
+ <Sha>46718d98c0fd03690a6a8c83da692a4a85a17902</Sha>
</Dependency>
- <Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19217.1">
+ <Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19218.1">
<Uri>https://github.com/dotnet/arcade</Uri>
- <Sha>4e21d52dabbb9f5705a90f097acb1465a0354c0d</Sha>
+ <Sha>46718d98c0fd03690a6a8c83da692a4a85a17902</Sha>
</Dependency>
<Dependency Name="Microsoft.Private.CoreFx.NETCoreApp" Version="4.6.0-preview6.19222.12">
<Uri>https://github.com/dotnet/corefx</Uri>
diff --git a/eng/common/CheckSymbols.ps1 b/eng/common/CheckSymbols.ps1
index 074b423245..b8d84607b8 100644
--- a/eng/common/CheckSymbols.ps1
+++ b/eng/common/CheckSymbols.ps1
@@ -9,7 +9,8 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem
function FirstMatchingSymbolDescriptionOrDefault {
param(
[string] $FullPath, # Full path to the module that has to be checked
- [string] $TargetServerParam # Parameter to pass to `Symbol Tool` indicating the server to lookup for symbols
+ [string] $TargetServerParam, # Parameter to pass to `Symbol Tool` indicating the server to lookup for symbols
+ [string] $SymbolsPath
)
$FileName = [System.IO.Path]::GetFileName($FullPath)
@@ -33,9 +34,9 @@ function FirstMatchingSymbolDescriptionOrDefault {
# DWARF file for a .dylib
$DylibDwarf = $SymbolPath.Replace($Extension, ".dylib.dwarf")
-
- .\dotnet-symbol.exe --symbols --modules $TargetServerParam $FullPath -o $SymbolsPath -d | Out-Null
-
+
+ .\dotnet-symbol.exe --symbols --modules --windows-pdbs $TargetServerParam $FullPath -o $SymbolsPath | Out-Null
+
if (Test-Path $PdbPath) {
return "PDB"
}
@@ -73,8 +74,9 @@ function CountMissingSymbols {
$MissingSymbols = 0
$PackageId = [System.IO.Path]::GetFileNameWithoutExtension($PackagePath)
- $ExtractPath = $ExtractPath + $PackageId;
- $SymbolsPath = $ExtractPath + $PackageId + ".Symbols";
+ $PackageGuid = New-Guid
+ $ExtractPath = Join-Path -Path $ExtractPath -ChildPath $PackageGuid
+ $SymbolsPath = Join-Path -Path $ExtractPath -ChildPath "Symbols"
[System.IO.Compression.ZipFile]::ExtractToDirectory($PackagePath, $ExtractPath)
@@ -84,10 +86,15 @@ function CountMissingSymbols {
Get-ChildItem -Recurse $ExtractPath |
Where-Object {$RelevantExtensions -contains $_.Extension} |
ForEach-Object {
- Write-Host -NoNewLine "`t Checking file" $_.FullName "... "
+ if ($_.FullName -Match "\\ref\\") {
+ Write-Host "`t Ignoring reference assembly file" $_.FullName
+ return
+ }
- $SymbolsOnMSDL = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--microsoft-symbol-server"
- $SymbolsOnSymWeb = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--internal-server"
+ $SymbolsOnMSDL = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--microsoft-symbol-server" $SymbolsPath
+ $SymbolsOnSymWeb = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--internal-server" $SymbolsPath
+
+ Write-Host -NoNewLine "`t Checking file" $_.FullName "... "
if ($SymbolsOnMSDL -ne $null -and $SymbolsOnSymWeb -ne $null) {
Write-Host "Symbols found on MSDL (" $SymbolsOnMSDL ") and SymWeb (" $SymbolsOnSymWeb ")"
@@ -116,18 +123,35 @@ function CountMissingSymbols {
function CheckSymbolsAvailable {
if (Test-Path $ExtractPath) {
- Remove-Item -recurse $ExtractPath
+ Remove-Item $ExtractPath -Force -Recurse -ErrorAction SilentlyContinue
}
Get-ChildItem "$InputPath\*.nupkg" |
ForEach-Object {
$FileName = $_.Name
+
+ # These packages from Arcade-Services include some native libraries that
+ # our current symbol uploader can't handle. Below is a workaround until
+ # we get issue: https://github.com/dotnet/arcade/issues/2457 sorted.
+ if ($FileName -Match "Microsoft\.DotNet\.Darc\.") {
+ Write-Host "Ignoring Arcade-services file: $FileName"
+ Write-Host
+ return
+ }
+ elseif ($FileName -Match "Microsoft\.DotNet\.Maestro\.Tasks\.") {
+ Write-Host "Ignoring Arcade-services file: $FileName"
+ Write-Host
+ return
+ }
+
Write-Host "Validating $FileName "
$Status = CountMissingSymbols "$InputPath\$FileName"
if ($Status -ne 0) {
Write-Error "Missing symbols for $Status modules in the package $FileName"
}
+
+ Write-Host
}
}
diff --git a/global.json b/global.json
index 4c7042c705..66d5cdd461 100644
--- a/global.json
+++ b/global.json
@@ -7,7 +7,7 @@
"python": "2.7.15"
},
"msbuild-sdks": {
- "Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19217.1",
- "Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19217.1"
+ "Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19218.1",
+ "Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19218.1"
}
}