Skip to content

Commit

Permalink
Implement auto dependency flow Repo API (dotnet#14518)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard committed Oct 30, 2017
1 parent 8ae6fc3 commit 901511a
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 69 deletions.
52 changes: 35 additions & 17 deletions dependencies.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- NuGet package restore sources. -->
<PropertyGroup>
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
https://api.nuget.org/v3/index.json;
$(RestoreSources)
</RestoreSources>
</PropertyGroup>

<PropertyGroup>
<!-- Central place to set the versions of all nuget packages produced in the repo -->
<PackageVersion Condition="'$(PackageVersion)' == ''">2.1.0</PackageVersion>
Expand All @@ -19,20 +28,16 @@
<PgoDataCurrentRef>5b662e16887cd01cada59eb678ab0c1dd64438c4</PgoDataCurrentRef>
</PropertyGroup>

<!-- Auto-upgraded properties for each build info dependency. -->
<PropertyGroup>
<CoreFxPackageVersion>4.5.0-preview1-25830-02</CoreFxPackageVersion>
<PlatformPackageVersion>2.1.0-preview1-25830-02</PlatformPackageVersion>
<PgoDataPackageVersion>99.99.99-master-20171030-0047</PgoDataPackageVersion>
</PropertyGroup>

<!-- Full package version strings that are used in other parts of the build. -->
<!-- Tests/infrastructure dependency versions. -->
<PropertyGroup>
<CoreClrPackageVersion>2.1.0-preview1-25829-02</CoreClrPackageVersion>
<CoreFxPackageVersion>4.5.0-preview1-25824-02</CoreFxPackageVersion>
<PlatformPackageVersion>2.1.0-preview1-25824-02</PlatformPackageVersion>
<PgoDataPackageVersion>99.99.99-master-20171025-1102</PgoDataPackageVersion>
<CoreClrPackageVersion>2.1.0-preview1-25824-51</CoreClrPackageVersion>
<XunitPackageVersion>2.2.0-beta2-build3300</XunitPackageVersion>
<XUnitConsoleNetCoreVersion>1.0.2-prerelease-00177</XUnitConsoleNetCoreVersion>
<XUnitPerformanceApiVersion>1.0.0-beta-build0007</XUnitPerformanceApiVersion>
<MicrosoftDiagnosticsTracingLibraryVersion>1.0.3-alpha-experimental</MicrosoftDiagnosticsTracingLibraryVersion>
<XunitConsoleNetcorePackageVersion>1.0.2-prerelease-00177</XunitConsoleNetcorePackageVersion>
<XunitPerformanceApiPackageVersion>1.0.0-beta-build0007</XunitPerformanceApiPackageVersion>
<MicrosoftDiagnosticsTracingTraceEventPackageVersion>1.0.3-alpha-experimental</MicrosoftDiagnosticsTracingTraceEventPackageVersion>
<VCRuntimeVersion>1.2.0</VCRuntimeVersion>
</PropertyGroup>

Expand Down Expand Up @@ -73,17 +78,17 @@

<XmlUpdateStep Include="CoreFx">
<Path>$(MSBuildThisFileFullPath)</Path>
<ElementName>CoreFxPackageVersion</ElementName>
<ElementName>MicrosoftPrivateCoreFxNETCoreAppPackageVersion</ElementName>
<PackageId>Microsoft.Private.CoreFx.NETCoreApp</PackageId>
</XmlUpdateStep>
<XmlUpdateStep Include="CoreFx">
<Path>$(MSBuildThisFileFullPath)</Path>
<ElementName>PlatformPackageVersion</ElementName>
<ElementName>MicrosoftNETCorePlatformsPackageVersion</ElementName>
<PackageId>Microsoft.NETCore.Platforms</PackageId>
</XmlUpdateStep>
<XmlUpdateStep Include="CoreClr">
<Path>$(MSBuildThisFileFullPath)</Path>
<ElementName>CoreClrPackageVersion</ElementName>
<ElementName>MicrosoftNETCoreRuntimeCoreCLRPackageVersion</ElementName>
<PackageId>Microsoft.NETCore.Runtime.CoreCLR</PackageId>
</XmlUpdateStep>
<UpdateStep Include="BuildTools">
Expand Down Expand Up @@ -131,16 +136,29 @@
<XUnitPerformanceApiDependency Include="xunit.performance.execution" />
<XUnitPerformanceApiDependency Include="xunit.performance.metrics" />
<StaticDependency Include="@(XUnitPerformanceApiDependency)">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</StaticDependency>

<StaticDependency Include="xunit.console.netcore">
<Version>$(XUnitConsoleNetCoreVersion)</Version>
<Version>$(XunitConsoleNetcorePackageVersion)</Version>
</StaticDependency>

<DependencyBuildInfo Include="@(StaticDependency)">
<PackageId>%(Identity)</PackageId>
<UpdateStableVersions>true</UpdateStableVersions>
</DependencyBuildInfo>
</ItemGroup>

<!-- Override isolated build dependency versions with versions from Repo API. -->
<Import Project="$(DotNetPackageVersionPropsPath)"
Condition="'$(DotNetPackageVersionPropsPath)' != ''" />

<!--
Map PackageVersion properties that don't match the Repo API naming conventions. This must be
defined after the DotNetPackageVersionPropsPath Import so overrides apply correctly.
-->
<PropertyGroup>
<!-- A single property used to get all CoreCLR packages in various places. -->
<CoreClrPackageVersion>$(MicrosoftNETCoreRuntimeCoreCLRPackageVersion)</CoreClrPackageVersion>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions dir.props
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@
<CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm64'">x64</CrossTargetComponentFolder>
<CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm'">x86</CrossTargetComponentFolder>

<PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
<SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
<PackageOutputPath Condition="'$(PackageOutputPath)' == ''">$(PackagesBinDir)/pkg/</PackageOutputPath>
<SymbolPackageOutputPath Condition="'$(SymbolPackageOutputPath)' == ''">$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
<PackageIndexFile>$(MSBuildThisFileDirectory)/src/.nuget/packageIndex.json</PackageIndexFile>

<!-- coreclr doesn't currently use the index so don't force it to be in sync -->
Expand Down
28 changes: 15 additions & 13 deletions tests/dir.props
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,22 @@
<!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. -->
<Import Project="$(ProjectDir)..\dependencies.props" />

<!-- Add test-specific package restore sources. -->
<PropertyGroup>
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json;
$(RestoreSources)
</RestoreSources>
<RestoreSources Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'">
$(PackagesDir)AzureTransfer\;
$(RestoreSources)
</RestoreSources>
</PropertyGroup>

<!-- Use Roslyn Compilers to build -->
<Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false' and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" />
<Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)') and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" />

<ItemGroup>
<!-- Need to escape double forward slash (%2F) or MSBuild will normalize to one slash on Unix. -->
<DotnetSourceList Include="$(IntermediateAzureFeed)" Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'" />
<DotnetSourceList Include="https:%2F%2Fdotnetfeed.blob.core.windows.net/dotnet-core/packages/index.json" />
<DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
<DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-core/api/v3/index.json" />
<DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-buildtools/api/v3/index.json" />
<DotnetSourceList Include="https:%2F%2Fapi.nuget.org/v3/index.json" />
</ItemGroup>

<Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false'" />
<Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)')" />

<PropertyGroup Condition="'$(BuildAllProjects)'=='true'">
<!-- When we do a traversal build we get all packages up front, don't restore them again -->
<RestorePackages>false</RestorePackages>
Expand Down
12 changes: 6 additions & 6 deletions tests/src/Common/external/external.depproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
<Version>2.1.1-beta</Version>
</PackageReference>
<PackageReference Include="xunit.performance.api">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
<Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
<Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>9.0.1</Version>
Expand All @@ -46,7 +46,7 @@
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
<Version>$(XUnitConsoleNetCoreVersion)</Version>
<Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
Expand Down
9 changes: 4 additions & 5 deletions tests/src/Common/test_dependencies/test_dependencies.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Private.CoreFx.NETCoreApp">
<Version>$(CoreFxPackageVersion)</Version>
<Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</PackageReference>
<PackageReference Include="System.Memory">
<Version>$(CoreFxPackageVersion)</Version>
<Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe">
<Version>$(CoreFxPackageVersion)</Version>
<Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</PackageReference>
<PackageReference Include="System.Security.Permissions">
<Version>$(CoreFxPackageVersion)</Version>
</PackageReference>
<Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</ItemGroup>
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Common/test_runtime/test_runtime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>$(PlatformPackageVersion)</Version>
<Version>$(MicrosoftNETCorePlatformsPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.DotNet.CoreCLR.TestDependencies">
<Version>1.0.0-prerelease</Version>
Expand Down
12 changes: 6 additions & 6 deletions tests/src/JIT/config/benchmark+roslyn/benchmark+roslyn.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
<Version>1.1.1</Version>
</PackageReference>
<PackageReference Include="xunit.performance.api">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
<Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
<Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
Expand Down Expand Up @@ -80,7 +80,7 @@
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
<Version>$(XUnitConsoleNetCoreVersion)</Version>
<Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.performance.api">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
<Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
<Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
Expand Down Expand Up @@ -80,7 +80,7 @@
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
<Version>$(XUnitConsoleNetCoreVersion)</Version>
<Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
Expand Down
12 changes: 6 additions & 6 deletions tests/src/JIT/config/benchmark/benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.performance.api">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
<Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
<Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
Expand Down Expand Up @@ -95,7 +95,7 @@
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
<Version>$(XUnitConsoleNetCoreVersion)</Version>
<Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
Expand Down
2 changes: 1 addition & 1 deletion tests/src/TestWrappersConfig/TestWrappersConfig.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>$(PlatformPackageVersion)</Version>
<Version>$(MicrosoftNETCorePlatformsPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit">
<Version>$(XunitPackageVersion)</Version>
Expand Down
12 changes: 6 additions & 6 deletions tests/src/performance/performance.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.performance.api">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
<Version>$(XUnitPerformanceApiVersion)</Version>
<Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
<Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
<Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
Expand Down Expand Up @@ -92,7 +92,7 @@
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
<Version>$(XUnitConsoleNetCoreVersion)</Version>
<Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
Expand Down

0 comments on commit 901511a

Please sign in to comment.