Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

[master] Update dependencies from dotnet/arcade #36103

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,57 +30,57 @@
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>d6a30736858f91b297fdd3ed4e3d1dfde67bdbdb</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="NETStandard.Library" Version="2.1.0-prerelease.19158.1">
<Uri>https://github.com/dotnet/standard</Uri>
<Sha>0dee41e279fc1dad29dd1e567186e52697b7417a</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.SourceRewriter" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.SourceRewriter" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenFacades" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.GenFacades" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="2.4.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="2.4.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CoreFxTesting" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.CoreFxTesting" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Configuration" Version="1.0.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Configuration" Version="1.0.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="2.2.0-beta.19128.2">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="2.2.0-beta.19162.7">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>6f33f02efeafb578b3f99da08cb2670e0470c917</Sha>
<Sha>443dea11f8649fe12fedf60cfab0a4b2b20bd153</Sha>
</Dependency>
<Dependency Name="Microsoft.Net.Compilers" Version="3.0.0-beta4-final">
<Uri>https://github.com/dotnet/roslyn</Uri>
Expand Down
20 changes: 10 additions & 10 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
</PropertyGroup>
<PropertyGroup>
<!-- Arcade dependencies -->
<MicrosoftDotNetApiCompatPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetApiCompatPackageVersion>
<MicrosoftDotNetSourceRewriterPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetSourceRewriterPackageVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetXUnitExtensionsPackageVersion>2.4.0-beta.19128.2</MicrosoftDotNetXUnitExtensionsPackageVersion>
<MicrosoftDotNetBuildTasksPackagingPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetBuildTasksPackagingPackageVersion>
<MicrosoftDotNetCoreFxTestingPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetCoreFxTestingPackageVersion>
<MicrosoftDotNetBuildTasksConfigurationPackageVersion>1.0.0-beta.19128.2</MicrosoftDotNetBuildTasksConfigurationPackageVersion>
<MicrosoftDotNetBuildTasksFeedPackageVersion>2.2.0-beta.19128.2</MicrosoftDotNetBuildTasksFeedPackageVersion>
<MicrosoftDotNetApiCompatPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetApiCompatPackageVersion>
<MicrosoftDotNetSourceRewriterPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetSourceRewriterPackageVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetXUnitExtensionsPackageVersion>2.4.0-beta.19162.7</MicrosoftDotNetXUnitExtensionsPackageVersion>
<MicrosoftDotNetBuildTasksPackagingPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetBuildTasksPackagingPackageVersion>
<MicrosoftDotNetCoreFxTestingPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetCoreFxTestingPackageVersion>
<MicrosoftDotNetBuildTasksConfigurationPackageVersion>1.0.0-beta.19162.7</MicrosoftDotNetBuildTasksConfigurationPackageVersion>
<MicrosoftDotNetBuildTasksFeedPackageVersion>2.2.0-beta.19162.7</MicrosoftDotNetBuildTasksFeedPackageVersion>
<MicrosoftNetCompilersVersion>3.0.0-beta4-final</MicrosoftNetCompilersVersion>
<MicrosoftNETCoreCompilersVersion>$(MicrosoftNetCompilersVersion)</MicrosoftNETCoreCompilersVersion>
<!-- Core-setup dependencies -->
Expand Down
3 changes: 0 additions & 3 deletions eng/common/PublishBuildAssets.cmd

This file was deleted.

1 change: 0 additions & 1 deletion eng/common/PublishToPackageFeed.proj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)DefaultVersions.props" Condition="Exists('$(MSBuildThisFileDirectory)DefaultVersions.props')" />
<Import Project="$(MSBuildThisFileDirectory)Versions.props" Condition="Exists('$(MSBuildThisFileDirectory)Versions.props')" />

<Import Project="$(NuGetPackageRoot)microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" />

Expand Down
9 changes: 6 additions & 3 deletions eng/common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,16 @@ while [[ $# > 0 ]]; do
node_reuse=$2
shift
;;
/p:*)
-p:*|/p:*)
properties="$properties $1"
;;
/m:*)
-m:*|/m:*)
properties="$properties $1"
;;
/bl:*)
-bl:*|/bl:*)
properties="$properties $1"
;;
-dl:*|/dl:*)
properties="$properties $1"
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion eng/common/darc-init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function InstallDarcCli ($darcVersion) {
# Until we can anonymously query the BAR API for the latest arcade-services
# build applied to the PROD channel, this is hardcoded.
if (-not $darcVersion) {
$darcVersion = '1.1.0-beta.19120.2'
$darcVersion = '1.1.0-beta.19151.3'
}

$arcadeServicesSource = 'https://dotnetfeed.blob.core.windows.net/dotnet-arcade/index.json'
Expand Down
2 changes: 1 addition & 1 deletion eng/common/darc-init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

source="${BASH_SOURCE[0]}"
darcVersion="1.1.0-beta.19120.2"
darcVersion="1.1.0-beta.19151.3"

while [[ $# > 0 ]]; do
opt="$(echo "$1" | awk '{print tolower($0)}')"
Expand Down
61 changes: 61 additions & 0 deletions eng/common/generate-graph-files.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Param(
[Parameter(Mandatory=$true)][string] $barToken, # Token generated at https://maestro-prod.westus2.cloudapp.azure.com/Account/Tokens
[Parameter(Mandatory=$true)][string] $gitHubPat, # GitHub personal access token from https://github.com/settings/tokens (no auth scopes needed)
[Parameter(Mandatory=$true)][string] $azdoPat, # Azure Dev Ops tokens from https://dev.azure.com/dnceng/_details/security/tokens (code read scope needed)
[Parameter(Mandatory=$true)][string] $outputFolder, # Where the graphviz.txt file will be created
[string] $darcVersion = '1.1.0-beta.19156.4', # darc's version
[switch] $includeToolset # Whether the graph should include toolset dependencies or not. i.e. arcade, optimization. For more about
# toolset dependencies see https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md#toolset-vs-product-dependencies
)

$ErrorActionPreference = "Stop"
. $PSScriptRoot\tools.ps1

function CheckExitCode ([string]$stage)
{
$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
Write-Host "Something failed in stage: '$stage'. Check for errors above. Exiting now..."
ExitWithExitCode $exitCode
}
}

try {
Push-Location $PSScriptRoot

Write-Host "Installing darc..."
. .\darc-init.ps1 -darcVersion $darcVersion
CheckExitCode "Running darc-init"

$darcExe = "$env:USERPROFILE\.dotnet\tools"
$darcExe = Resolve-Path "$darcExe\darc.exe"

Create-Directory $outputFolder

$graphVizFilePath = "$outputFolder\graphviz.txt"
$graphFilePath = "$outputFolder\graph.txt"
$options = "get-dependency-graph --graphviz '$graphVizFilePath' --github-pat $gitHubPat --azdev-pat $azdoPat --password $barToken --output-file $graphFilePath"

if ($includeToolset) {
Write-Host "Toolsets will be included in the graph..."
$options += " --include-toolset"
}

Write-Host "Generating dependency graph..."
Invoke-Expression "& `"$darcExe`" $options"
CheckExitCode "Generating dependency graph"

$graph = Get-Content $graphVizFilePath
Set-Content $graphVizFilePath -Value "Paste the following digraph object in http://www.webgraphviz.com `r`n", $graph
Write-Host "'$graphVizFilePath' and '$graphFilePath' created!"
}
catch {
if (!$includeToolset) {
Write-Host "This might be a toolset repo which includes only toolset dependencies. " -NoNewline -ForegroundColor Yellow
Write-Host "Since -includeToolset is not set there is no graph to create. Include -includeToolset and try again..." -ForegroundColor Yellow
}
Write-Host $_
Write-Host $_.Exception
Write-Host $_.ScriptStackTrace
ExitWithExitCode 1
}
1 change: 1 addition & 0 deletions eng/common/internal/Tools.csproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
Expand Down
48 changes: 48 additions & 0 deletions eng/common/templates/job/generate-graph-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
parameters:
# Optional: dependencies of the job
dependsOn: ''

# Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool
pool: {}

# Optional: Include toolset dependencies in the generated graph files
includeToolset: false

jobs:
- job: Generate_Graph_Files

dependsOn: ${{ parameters.dependsOn }}

displayName: Generate Graph Files

pool: ${{ parameters.pool }}

variables:
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
# DotNet-AllOrgs-Darc-Pats provides: dn-bot-devdiv-dnceng-rw-code-pat
- group: Publish-Build-Assets
- group: DotNet-AllOrgs-Darc-Pats
- name: _GraphArguments
value: -gitHubPat $(BotAccount-dotnet-maestro-bot-PAT)
-azdoPat $(dn-bot-devdiv-dnceng-rw-code-pat)
-barToken $(MaestroAccessToken)
-outputFolder '$(Build.StagingDirectory)/GraphFiles/'
- ${{ if ne(parameters.includeToolset, 'false') }}:
- name: _GraphArguments
value: ${{ variables._GraphArguments }} -includeToolset

steps:
- task: PowerShell@2
displayName: Generate Graph Files
inputs:
filePath: eng\common\generate-graph-files.ps1
arguments: $(_GraphArguments)
continueOnError: true
- task: PublishBuildArtifacts@1
displayName: Publish Graph to Artifacts
inputs:
PathtoPublish: '$(Build.StagingDirectory)/GraphFiles'
PublishLocation: Container
ArtifactName: GraphFiles
continueOnError: true
condition: always()
4 changes: 2 additions & 2 deletions eng/common/templates/job/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
continueOnError: true
condition: always()

- ${{ if and(eq(parameters.enablePublishBuildAssets, true), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- ${{ if and(eq(parameters.enablePublishBuildAssets, true), ne(variables['_PublishUsingPipelines'], 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- task: CopyFiles@2
displayName: Gather Asset Manifests
inputs:
Expand All @@ -194,4 +194,4 @@ jobs:
PublishLocation: Container
ArtifactName: AssetManifests
continueOnError: ${{ parameters.continueOnError }}
condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
19 changes: 17 additions & 2 deletions eng/common/templates/jobs/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ parameters:

# Optional: Enable publishing to the build asset registry
enablePublishBuildAssets: false


graphFileGeneration:
# Optional: Enable generating the graph files at the end of the build
enabled: false
# Optional: Include toolset dependencies in the generated graph files
includeToolset: false

# Optional: Include PublishTestResults task
enablePublishTestResults: false

Expand Down Expand Up @@ -68,4 +74,13 @@ jobs:
vmImage: vs2017-win2016
runAsPublic: ${{ parameters.runAsPublic }}
enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }}


- ${{ if and(eq(parameters.graphFileGeneration.enabled, true), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: ../job/generate-graph-files.yml
parameters:
continueOnError: ${{ parameters.continueOnError }}
includeToolset: ${{ parameters.graphFileGeneration.includeToolset }}
dependsOn:
- Asset_Registry_Publish
pool:
vmImage: vs2017-win2016
Loading