Skip to content

Commit e90972e

Browse files
[main] Update dependencies from dotnet/arcade devdiv/DevDiv/vs-code-coverage (#3202)
* Update dependencies from https://github.com/dotnet/arcade build 20211126.4 Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 7.0.0-beta.21559.3 -> To Version 7.0.0-beta.21576.4 * Update dependencies from https://dev.azure.com/devdiv/DevDiv/_git/vs-code-coverage build 20211129.1 Microsoft.Internal.CodeCoverage From Version 17.1.2-beta.21576.6 -> To Version 17.1.2-beta.21579.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent 9cf8a92 commit e90972e

File tree

11 files changed

+95
-111
lines changed

11 files changed

+95
-111
lines changed

eng/Version.Details.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
33
<ProductDependencies>
4-
<Dependency Name="Microsoft.Internal.CodeCoverage" Version="17.1.2-beta.21576.6">
4+
<Dependency Name="Microsoft.Internal.CodeCoverage" Version="17.1.2-beta.21579.1">
55
<Uri>https://dev.azure.com/devdiv/DevDiv/_git/vs-code-coverage</Uri>
6-
<Sha>fd8872bc3c058cd717e5a5b002b35450c230c21a</Sha>
6+
<Sha>251eb05b1b66a9b5c7c20f65722a10dad06cef27</Sha>
77
</Dependency>
88
<Dependency Name="Microsoft.Diagnostics.NETCore.Client" Version="0.2.0-preview.21508.1">
99
<Uri>https://github.com/dotnet/diagnostics</Uri>
@@ -16,26 +16,26 @@
1616
</Dependency>
1717
</ProductDependencies>
1818
<ToolsetDependencies>
19-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21559.3">
19+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21576.4">
2020
<Uri>https://github.com/dotnet/arcade</Uri>
21-
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
21+
<Sha>427c05909067bb2e484116ae2239456bb45adb85</Sha>
2222
<SourceBuild RepoName="arcade" ManagedOnly="true" />
2323
</Dependency>
24-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.21559.3">
24+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.21576.4">
2525
<Uri>https://github.com/dotnet/arcade</Uri>
26-
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
26+
<Sha>427c05909067bb2e484116ae2239456bb45adb85</Sha>
2727
</Dependency>
28-
<Dependency Name="Microsoft.DotNet.SignTool" Version="7.0.0-beta.21559.3">
28+
<Dependency Name="Microsoft.DotNet.SignTool" Version="7.0.0-beta.21576.4">
2929
<Uri>https://github.com/dotnet/arcade</Uri>
30-
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
30+
<Sha>427c05909067bb2e484116ae2239456bb45adb85</Sha>
3131
</Dependency>
32-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.21559.3">
32+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.21576.4">
3333
<Uri>https://github.com/dotnet/arcade</Uri>
34-
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
34+
<Sha>427c05909067bb2e484116ae2239456bb45adb85</Sha>
3535
</Dependency>
36-
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="7.0.0-beta.21559.3">
36+
<Dependency Name="Microsoft.DotNet.SwaggerGenerator.MSBuild" Version="7.0.0-beta.21576.4">
3737
<Uri>https://github.com/dotnet/arcade</Uri>
38-
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
38+
<Sha>427c05909067bb2e484116ae2239456bb45adb85</Sha>
3939
</Dependency>
4040
<Dependency Name="Microsoft.DotNet.Maestro.Client" Version="1.1.0-beta.20074.1">
4141
<Uri>https://github.com/dotnet/arcade-services</Uri>

eng/Versions.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
<XUnitVersion>2.4.1</XUnitVersion>
6161
<XUnitAbstractionsVersion>2.0.3</XUnitAbstractionsVersion>
6262
<XUnitVSRunnerVersion>2.4.1</XUnitVSRunnerVersion>
63-
<MicrosoftDotNetBuildTasksFeedVersion>7.0.0-beta.21559.3</MicrosoftDotNetBuildTasksFeedVersion>
64-
<MicrosoftDotNetSignToolVersion>7.0.0-beta.21559.3</MicrosoftDotNetSignToolVersion>
63+
<MicrosoftDotNetBuildTasksFeedVersion>7.0.0-beta.21576.4</MicrosoftDotNetBuildTasksFeedVersion>
64+
<MicrosoftDotNetSignToolVersion>7.0.0-beta.21576.4</MicrosoftDotNetSignToolVersion>
6565
<MicrosoftAzureDocumentDBVersion>1.22.0</MicrosoftAzureDocumentDBVersion>
6666
<MicrosoftAzureCosmosDBTableVersion>1.1.2</MicrosoftAzureCosmosDBTableVersion>
6767
<MicrosoftAspNetCoreAllVersion>2.0.0</MicrosoftAspNetCoreAllVersion>
@@ -73,14 +73,14 @@
7373
<MicrosoftDiaSymReaderNativeVersion>1.7.0</MicrosoftDiaSymReaderNativeVersion>
7474
<MicrosoftDotNetMaestroClientVersion>1.1.0-beta.20074.1</MicrosoftDotNetMaestroClientVersion>
7575
<MicrosoftSourceLinkVersion>1.0.0-beta2-19554-01</MicrosoftSourceLinkVersion>
76-
<MicrosoftDotNetSwaggerGeneratorMSBuildVersion>7.0.0-beta.21559.3</MicrosoftDotNetSwaggerGeneratorMSBuildVersion>
76+
<MicrosoftDotNetSwaggerGeneratorMSBuildVersion>7.0.0-beta.21576.4</MicrosoftDotNetSwaggerGeneratorMSBuildVersion>
7777
<XliffTasksVersion>1.0.0-beta.21272.1</XliffTasksVersion>
7878
<!-- Roslyn -->
7979
<!-- WARNING: Depending on Roslyn in code that also supports unmanaged scenarios (e.g. C++,
8080
JS etc.) is risky. This can break setup authoring and cause runtime failures in workloads
8181
where Rolsyn is not installed. -->
8282
<MicrosoftCodeAnalysisVersion>3.8.0-3.20427.2</MicrosoftCodeAnalysisVersion>
83-
<MicrosoftInternalCodeCoverageVersion>17.1.2-beta.21576.6</MicrosoftInternalCodeCoverageVersion>
83+
<MicrosoftInternalCodeCoverageVersion>17.1.2-beta.21579.1</MicrosoftInternalCodeCoverageVersion>
8484
<MicrosoftDiagnosticsNETCoreClientVersion>0.2.0-preview.21508.1</MicrosoftDiagnosticsNETCoreClientVersion>
8585
<MicrosoftSourceBuildIntermediatediagnosticsVersion>5.0.0-preview.21508.1</MicrosoftSourceBuildIntermediatediagnosticsVersion>
8686
</PropertyGroup>

eng/common/build.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ function InitializeCustomToolset {
187187
}
188188

189189
function Build {
190-
191-
if [[ "$ci" == true ]]; then
192-
TryLogClientIpAddress
193-
fi
194190
InitializeToolset
195191
InitializeCustomToolset
196192

eng/common/darc-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fi
5353
function InstallDarcCli {
5454
local darc_cli_package_name="microsoft.dotnet.darc"
5555

56-
InitializeDotNetCli
56+
InitializeDotNetCli true
5757
local dotnet_root=$_InitializeDotNetCli
5858

5959
if [ -z "$toolpath" ]; then

eng/common/native/init-compiler.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# This file detects the C/C++ compiler and exports it to the CC/CXX environment variables
44
#
5+
# NOTE: some scripts source this file and rely on stdout being empty, make sure to not output anything here!
56

67
if [[ "$#" -lt 3 ]]; then
78
echo "Usage..."
@@ -111,12 +112,10 @@ if [[ -z "$CC" ]]; then
111112
exit 1
112113
fi
113114

114-
if [[ "$compiler" == "clang" ]]; then
115-
if command -v "lld$desired_version" > /dev/null; then
116-
# Only lld version >= 9 can be considered stable
117-
if [[ "$majorVersion" -ge 9 ]]; then
118-
LDFLAGS="-fuse-ld=lld"
119-
fi
115+
# Only lld version >= 9 can be considered stable
116+
if [[ "$compiler" == "clang" && "$majorVersion" -ge 9 ]]; then
117+
if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then
118+
LDFLAGS="-fuse-ld=lld"
120119
fi
121120
fi
122121

eng/common/sdk-task.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ try {
8383
}
8484

8585
if ($restore) {
86-
if ($ci) {
87-
Try-LogClientIpAddress
88-
}
8986
Build 'Restore'
9087
}
9188

eng/common/sdl/execute-all-sdl-tools.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ try {
124124
Exec-BlockVerbosely {
125125
& $(Join-Path $PSScriptRoot 'run-sdl.ps1') `
126126
-GuardianCliLocation $guardianCliLocation `
127-
-WorkingDirectory $workingDirectory `
127+
-WorkingDirectory $SourceDirectory `
128128
-UpdateBaseline $UpdateBaseline `
129129
-GdnFolder $gdnFolder
130130
}

eng/common/templates/job/job.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
continueOnError: ${{ parameters.continueOnError }}
115115
condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
116116

117+
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
117118
- task: NuGetAuthenticate@0
118119

119120
- ${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}:

eng/common/tools.ps1

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) {
163163
# Disable telemetry on CI.
164164
if ($ci) {
165165
$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
166-
167-
# In case of network error, try to log the current IP for reference
168-
Try-LogClientIpAddress
169166
}
170167

171168
# Source Build uses DotNetCoreSdkDir variable
@@ -301,32 +298,45 @@ function InstallDotNet([string] $dotnetRoot,
301298
if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles }
302299
if ($noPath) { $installParameters.NoPath = $True }
303300

304-
try {
305-
& $installScript @installParameters
306-
}
307-
catch {
308-
if ($runtimeSourceFeed -or $runtimeSourceFeedKey) {
309-
Write-Host "Failed to install dotnet from public location. Trying from '$runtimeSourceFeed'"
310-
if ($runtimeSourceFeed) { $installParameters.AzureFeed = $runtimeSourceFeed }
301+
$variations = @()
302+
$variations += @($installParameters)
311303

312-
if ($runtimeSourceFeedKey) {
313-
$decodedBytes = [System.Convert]::FromBase64String($runtimeSourceFeedKey)
314-
$decodedString = [System.Text.Encoding]::UTF8.GetString($decodedBytes)
315-
$installParameters.FeedCredential = $decodedString
316-
}
304+
$dotnetBuilds = $installParameters.Clone()
305+
$dotnetbuilds.AzureFeed = "https://dotnetbuilds.azureedge.net/public"
306+
$variations += @($dotnetBuilds)
317307

318-
try {
319-
& $installScript @installParameters
320-
}
321-
catch {
322-
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from custom location '$runtimeSourceFeed'."
323-
ExitWithExitCode 1
324-
}
308+
if ($runtimeSourceFeed) {
309+
$runtimeSource = $installParameters.Clone()
310+
$runtimeSource.AzureFeed = $runtimeSourceFeed
311+
if ($runtimeSourceFeedKey) {
312+
$decodedBytes = [System.Convert]::FromBase64String($runtimeSourceFeedKey)
313+
$decodedString = [System.Text.Encoding]::UTF8.GetString($decodedBytes)
314+
$runtimeSource.FeedCredential = $decodedString
315+
}
316+
$variations += @($runtimeSource)
317+
}
318+
319+
$installSuccess = $false
320+
foreach ($variation in $variations) {
321+
if ($variation | Get-Member AzureFeed) {
322+
$location = $variation.AzureFeed
325323
} else {
326-
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from public location."
327-
ExitWithExitCode 1
324+
$location = "public location";
325+
}
326+
Write-Host "Attempting to install dotnet from $location."
327+
try {
328+
& $installScript @variation
329+
$installSuccess = $true
330+
break
331+
}
332+
catch {
333+
Write-Host "Failed to install dotnet from $location."
328334
}
329335
}
336+
if (-not $installSuccess) {
337+
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from any of the specified locations."
338+
ExitWithExitCode 1
339+
}
330340
}
331341

332342
#
@@ -882,24 +892,6 @@ if (!$disableConfigureToolsetImport) {
882892
}
883893
}
884894

885-
function Try-LogClientIpAddress()
886-
{
887-
Write-Host "Attempting to log this client's IP for Azure Package feed telemetry purposes"
888-
try
889-
{
890-
$result = Invoke-WebRequest -Uri "http://co1.msedge.net/fdv2/diagnostics.aspx" -UseBasicParsing
891-
$lines = $result.Content.Split([Environment]::NewLine)
892-
$socketIp = $lines | Select-String -Pattern "^Socket IP:.*"
893-
Write-Host $socketIp
894-
$clientIp = $lines | Select-String -Pattern "^Client IP:.*"
895-
Write-Host $clientIp
896-
}
897-
catch
898-
{
899-
Write-Host "Unable to get this machine's effective IP address for logging: $_"
900-
}
901-
}
902-
903895
#
904896
# If $ci flag is set, turn on (and log that we did) special environment variables for improved Nuget client retry logic.
905897
#

eng/common/tools.sh

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -188,28 +188,29 @@ function InstallDotNet {
188188
GetDotNetInstallScript "$root"
189189
local install_script=$_GetDotNetInstallScript
190190

191-
local archArg=''
191+
local installParameters=(--version $version --install-dir "$root")
192+
192193
if [[ -n "${3:-}" ]] && [ "$3" != 'unset' ]; then
193-
archArg="--architecture $3"
194+
installParameters+=(--architecture $3)
194195
fi
195-
local runtimeArg=''
196196
if [[ -n "${4:-}" ]] && [ "$4" != 'sdk' ]; then
197-
runtimeArg="--runtime $4"
197+
installParameters+=(--runtime $4)
198198
fi
199-
local skipNonVersionedFilesArg=""
200199
if [[ "$#" -ge "5" ]] && [[ "$5" != 'false' ]]; then
201-
skipNonVersionedFilesArg="--skip-non-versioned-files"
200+
installParameters+=(--skip-non-versioned-files)
202201
fi
203-
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg || {
204-
local exit_code=$?
205-
echo "Failed to install dotnet SDK from public location (exit code '$exit_code')."
206202

207-
local runtimeSourceFeed=''
208-
if [[ -n "${6:-}" ]]; then
209-
runtimeSourceFeed="--azure-feed $6"
210-
fi
203+
local variations=() # list of variable names with parameter arrays in them
204+
205+
local public_location=("${installParameters[@]}")
206+
variations+=(public_location)
211207

212-
local runtimeSourceFeedKey=''
208+
local dotnetbuilds=("${installParameters[@]}" --azure-feed "https://dotnetbuilds.azureedge.net/public")
209+
variations+=(dotnetbuilds)
210+
211+
if [[ -n "${6:-}" ]]; then
212+
variations+=(private_feed)
213+
local private_feed=("${installParameters[@]}" --azure-feed $6)
213214
if [[ -n "${7:-}" ]]; then
214215
# The 'base64' binary on alpine uses '-d' and doesn't support '--decode'
215216
# '-d'. To work around this, do a simple detection and switch the parameter
@@ -219,22 +220,27 @@ function InstallDotNet {
219220
decodeArg="-d"
220221
fi
221222
decodedFeedKey=`echo $7 | base64 $decodeArg`
222-
runtimeSourceFeedKey="--feed-credential $decodedFeedKey"
223+
private_feed+=(--feed-credential $decodedFeedKey)
223224
fi
225+
fi
224226

225-
if [[ -n "$runtimeSourceFeed" || -n "$runtimeSourceFeedKey" ]]; then
226-
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg $runtimeSourceFeed $runtimeSourceFeedKey || {
227-
local exit_code=$?
228-
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from custom location '$runtimeSourceFeed' (exit code '$exit_code')."
229-
ExitWithExitCode $exit_code
230-
}
231-
else
232-
if [[ $exit_code != 0 ]]; then
233-
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from public location (exit code '$exit_code')."
234-
fi
235-
ExitWithExitCode $exit_code
227+
local installSuccess=0
228+
for variationName in "${variations[@]}"; do
229+
local name="$variationName[@]"
230+
local variation=("${!name}")
231+
echo "Attempting to install dotnet from $variationName."
232+
bash "$install_script" "${variation[@]}" && installSuccess=1
233+
if [[ "$installSuccess" -eq 1 ]]; then
234+
break
236235
fi
237-
}
236+
237+
echo "Failed to install dotnet from $variationName."
238+
done
239+
240+
if [[ "$installSuccess" -eq 0 ]]; then
241+
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from any of the specified locations."
242+
ExitWithExitCode 1
243+
fi
238244
}
239245

240246
function with_retries {
@@ -399,13 +405,6 @@ function StopProcesses {
399405
return 0
400406
}
401407

402-
function TryLogClientIpAddress () {
403-
echo 'Attempting to log this client''s IP for Azure Package feed telemetry purposes'
404-
if command -v curl > /dev/null; then
405-
curl -s 'http://co1.msedge.net/fdv2/diagnostics.aspx' | grep ' IP: ' || true
406-
fi
407-
}
408-
409408
function MSBuild {
410409
local args=$@
411410
if [[ "$pipelines_log" == true ]]; then

0 commit comments

Comments
 (0)