Skip to content

Commit f1c51e3

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20211024.1 (#758)
[main] Update dependencies from dotnet/arcade
1 parent 437c4a7 commit f1c51e3

5 files changed

+62
-34
lines changed

eng/Version.Details.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21518.1">
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21524.1">
77
<Uri>https://github.com/dotnet/arcade</Uri>
8-
<Sha>c5a300999a6ab2792108190118280da36fb1991e</Sha>
8+
<Sha>0cdef445272ad6a7374dfed71496c5affef90305</Sha>
99
</Dependency>
1010
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="5.0.0-alpha.1.20473.1">
1111
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>

eng/common/post-build/sourcelink-validation.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ $RetryWaitTimeInSeconds = 30
2222
# Wait time between check for system load
2323
$SecondsBetweenLoadChecks = 10
2424

25+
if (!$InputPath -or !(Test-Path $InputPath)){
26+
Write-Host "No files to validate."
27+
ExitWithExitCode 0
28+
}
29+
2530
$ValidatePackage = {
2631
param(
2732
[string] $PackagePath # Full path to a Symbols.NuGet package

eng/common/post-build/symbols-validation.ps1

+51-28
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ param(
44
[Parameter(Mandatory = $true)][string] $DotnetSymbolVersion, # Version of dotnet symbol to use
55
[Parameter(Mandatory = $false)][switch] $CheckForWindowsPdbs, # If we should check for the existence of windows pdbs in addition to portable PDBs
66
[Parameter(Mandatory = $false)][switch] $ContinueOnError, # If we should keep checking symbols after an error
7-
[Parameter(Mandatory = $false)][switch] $Clean # Clean extracted symbols directory after checking symbols
7+
[Parameter(Mandatory = $false)][switch] $Clean, # Clean extracted symbols directory after checking symbols
8+
[Parameter(Mandatory = $false)][string] $SymbolExclusionFile # Exclude the symbols in the file from publishing to symbol server
89
)
910

11+
. $PSScriptRoot\..\tools.ps1
1012
# Maximum number of jobs to run in parallel
1113
$MaxParallelJobs = 16
1214

@@ -25,14 +27,28 @@ if ($CheckForWindowsPdbs) {
2527
$WindowsPdbVerificationParam = "--windows-pdbs"
2628
}
2729

30+
$ExclusionSet = New-Object System.Collections.Generic.HashSet[string];
31+
32+
if (!$InputPath -or !(Test-Path $InputPath)){
33+
Write-Host "No symbols to validate."
34+
ExitWithExitCode 0
35+
}
36+
37+
#Check if the path exists
38+
if ($SymbolExclusionFile -and (Test-Path $SymbolExclusionFile)){
39+
[string[]]$Exclusions = Get-Content "$SymbolExclusionFile"
40+
$Exclusions | foreach { if($_ -and $_.Trim()){$ExclusionSet.Add($_)} }
41+
}
42+
else{
43+
Write-Host "Symbol Exclusion file does not exists. No symbols to exclude."
44+
}
45+
2846
$CountMissingSymbols = {
2947
param(
3048
[string] $PackagePath, # Path to a NuGet package
3149
[string] $WindowsPdbVerificationParam # If we should check for the existence of windows pdbs in addition to portable PDBs
3250
)
3351

34-
. $using:PSScriptRoot\..\tools.ps1
35-
3652
Add-Type -AssemblyName System.IO.Compression.FileSystem
3753

3854
Write-Host "Validating $PackagePath "
@@ -142,37 +158,44 @@ $CountMissingSymbols = {
142158
return $null
143159
}
144160

145-
$FileGuid = New-Guid
146-
$ExpandedSymbolsPath = Join-Path -Path $SymbolsPath -ChildPath $FileGuid
147-
148-
$SymbolsOnMSDL = & $FirstMatchingSymbolDescriptionOrDefault `
149-
-FullPath $FileName `
150-
-TargetServerParam '--microsoft-symbol-server' `
151-
-SymbolsPath "$ExpandedSymbolsPath-msdl" `
152-
-WindowsPdbVerificationParam $WindowsPdbVerificationParam
153-
$SymbolsOnSymWeb = & $FirstMatchingSymbolDescriptionOrDefault `
154-
-FullPath $FileName `
155-
-TargetServerParam '--internal-server' `
156-
-SymbolsPath "$ExpandedSymbolsPath-symweb" `
157-
-WindowsPdbVerificationParam $WindowsPdbVerificationParam
158-
159-
Write-Host -NoNewLine "`t Checking file " $FileName "... "
160-
161-
if ($SymbolsOnMSDL -ne $null -and $SymbolsOnSymWeb -ne $null) {
162-
Write-Host "Symbols found on MSDL ($SymbolsOnMSDL) and SymWeb ($SymbolsOnSymWeb)"
161+
$FileRelativePath = $FileName.Replace("$ExtractPath\", "")
162+
if (($($using:ExclusionSet) -ne $null) -and ($($using:ExclusionSet).Contains($FileRelativePath) -or ($($using:ExclusionSet).Contains($FileRelativePath.Replace("\", "/"))))){
163+
Write-Host "Skipping $FileName from symbol validation"
163164
}
164-
else {
165-
$MissingSymbols++
166165

167-
if ($SymbolsOnMSDL -eq $null -and $SymbolsOnSymWeb -eq $null) {
168-
Write-Host 'No symbols found on MSDL or SymWeb!'
166+
else {
167+
$FileGuid = New-Guid
168+
$ExpandedSymbolsPath = Join-Path -Path $SymbolsPath -ChildPath $FileGuid
169+
170+
$SymbolsOnMSDL = & $FirstMatchingSymbolDescriptionOrDefault `
171+
-FullPath $FileName `
172+
-TargetServerParam '--microsoft-symbol-server' `
173+
-SymbolsPath "$ExpandedSymbolsPath-msdl" `
174+
-WindowsPdbVerificationParam $WindowsPdbVerificationParam
175+
$SymbolsOnSymWeb = & $FirstMatchingSymbolDescriptionOrDefault `
176+
-FullPath $FileName `
177+
-TargetServerParam '--internal-server' `
178+
-SymbolsPath "$ExpandedSymbolsPath-symweb" `
179+
-WindowsPdbVerificationParam $WindowsPdbVerificationParam
180+
181+
Write-Host -NoNewLine "`t Checking file " $FileName "... "
182+
183+
if ($SymbolsOnMSDL -ne $null -and $SymbolsOnSymWeb -ne $null) {
184+
Write-Host "Symbols found on MSDL ($SymbolsOnMSDL) and SymWeb ($SymbolsOnSymWeb)"
169185
}
170186
else {
171-
if ($SymbolsOnMSDL -eq $null) {
172-
Write-Host 'No symbols found on MSDL!'
187+
$MissingSymbols++
188+
189+
if ($SymbolsOnMSDL -eq $null -and $SymbolsOnSymWeb -eq $null) {
190+
Write-Host 'No symbols found on MSDL or SymWeb!'
173191
}
174192
else {
175-
Write-Host 'No symbols found on SymWeb!'
193+
if ($SymbolsOnMSDL -eq $null) {
194+
Write-Host 'No symbols found on MSDL!'
195+
}
196+
else {
197+
Write-Host 'No symbols found on SymWeb!'
198+
}
176199
}
177200
}
178201
}

eng/common/sdl/configure-sdl-tool.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ try {
6969
# For some tools, add default and automatic args.
7070
if ($tool.Name -eq 'credscan') {
7171
if ($targetDirectory) {
72-
$tool.Args += "TargetDirectory < $TargetDirectory"
72+
$tool.Args += "`"TargetDirectory < $TargetDirectory`""
7373
}
74-
$tool.Args += "OutputType < pre"
74+
$tool.Args += "`"OutputType < pre`""
7575
$tool.Args += $CrScanAdditionalRunConfigParams
7676
} elseif ($tool.Name -eq 'policheck') {
7777
if ($targetDirectory) {
78-
$tool.Args += "Target < $TargetDirectory"
78+
$tool.Args += "`"Target < $TargetDirectory`""
7979
}
8080
$tool.Args += $PoliCheckAdditionalRunConfigParams
8181
}

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"dotnet": "6.0.100-rc.1.21430.12"
44
},
55
"msbuild-sdks": {
6-
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21518.1"
6+
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21524.1"
77
}
88
}

0 commit comments

Comments
 (0)