2019-07-11 12:25:27 +00:00
|
|
|
<Project Sdk="Microsoft.DotNet.Helix.Sdk" DefaultTargets="Test">
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(AGENT_OS)' == 'Windows_NT'">
|
|
|
|
<WorkItemCommand>%HELIX_CORRELATION_PAYLOAD%\performance\scripts\benchmarks_ci.py --csproj %HELIX_CORRELATION_PAYLOAD%\performance\$(TargetCsproj)</WorkItemCommand>
|
|
|
|
<CliArguments>--dotnet-versions %DOTNET_VERSION% --cli-source-info args --cli-branch %PERFLAB_BRANCH% --cli-commit-sha %PERFLAB_HASH% --cli-repository https://github.com/%PERFLAB_REPO% --cli-source-timestamp %PERFLAB_BUILDTIMESTAMP%</CliArguments>
|
|
|
|
<Python>py -3</Python>
|
|
|
|
<CoreRun>%HELIX_CORRELATION_PAYLOAD%\Core_Root\CoreRun.exe</CoreRun>
|
2019-08-23 12:33:14 +00:00
|
|
|
<BaselineCoreRun>%HELIX_CORRELATION_PAYLOAD%\Baseline_Core_Root\CoreRun.exe</BaselineCoreRun>
|
2020-05-12 12:48:04 +00:00
|
|
|
|
2020-02-29 13:29:46 +00:00
|
|
|
<HelixPreCommands>$(HelixPreCommands);call %HELIX_CORRELATION_PAYLOAD%\performance\tools\machine-setup.cmd;set PYTHONPATH=%HELIX_WORKITEM_PAYLOAD%\scripts%3B%HELIX_WORKITEM_PAYLOAD%</HelixPreCommands>
|
2019-07-11 12:25:27 +00:00
|
|
|
<ArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts</ArtifactsDirectory>
|
2019-08-23 12:33:14 +00:00
|
|
|
<BaselineArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
|
|
|
|
<ResultsComparer>%HELIX_CORRELATION_PAYLOAD%\performance\src\tools\ResultsComparer\ResultsComparer.csproj</ResultsComparer>
|
|
|
|
<DotnetExe>%HELIX_CORRELATION_PAYLOAD%\performance\tools\dotnet\$(Architecture)\dotnet.exe</DotnetExe>
|
|
|
|
<Percent>%25%25</Percent>
|
|
|
|
<XMLResults>%HELIX_WORKITEM_ROOT%\testResults.xml</XMLResults>
|
2019-07-11 12:25:27 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT' and '$(RunFromPerfRepo)' == 'false'">
|
|
|
|
<BaseDirectory>$HELIX_CORRELATION_PAYLOAD</BaseDirectory>
|
|
|
|
<PerformanceDirectory>$(BaseDirectory)/performance</PerformanceDirectory>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT' and '$(RunFromPerfRepo)' == 'true'">
|
|
|
|
<BaseDirectory>$HELIX_WORKITEM_PAYLOAD</BaseDirectory>
|
|
|
|
<PerformanceDirectory>$(BaseDirectory)</PerformanceDirectory>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT'">
|
|
|
|
<WorkItemCommand>$(PerformanceDirectory)/scripts/benchmarks_ci.py --csproj $(PerformanceDirectory)/$(TargetCsproj)</WorkItemCommand>
|
|
|
|
<CliArguments>--dotnet-versions $DOTNET_VERSION --cli-source-info args --cli-branch $PERFLAB_BRANCH --cli-commit-sha $PERFLAB_HASH --cli-repository https://github.com/$PERFLAB_REPO --cli-source-timestamp $PERFLAB_BUILDTIMESTAMP</CliArguments>
|
|
|
|
<Python>python3</Python>
|
|
|
|
<CoreRun>$(BaseDirectory)/Core_Root/corerun</CoreRun>
|
2019-08-23 12:33:14 +00:00
|
|
|
<BaselineCoreRun>$(BaseDirectory)/Baseline_Core_Root/corerun</BaselineCoreRun>
|
2019-07-11 12:25:27 +00:00
|
|
|
<HelixPreCommands>$(HelixPreCommands);chmod +x $(PerformanceDirectory)/tools/machine-setup.sh;. $(PerformanceDirectory)/tools/machine-setup.sh</HelixPreCommands>
|
|
|
|
<ArtifactsDirectory>$(BaseDirectory)/artifacts/BenchmarkDotNet.Artifacts</ArtifactsDirectory>
|
2019-08-23 12:33:14 +00:00
|
|
|
<BaselineArtifactsDirectory>$(BaseDirectory)/artifacts/BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
|
|
|
|
<ResultsComparer>$(PerformanceDirectory)/src/tools/ResultsComparer/ResultsComparer.csproj</ResultsComparer>
|
|
|
|
<DotnetExe>$(PerformanceDirectory)/tools/dotnet/$(Architecture)/dotnet</DotnetExe>
|
|
|
|
<Percent>%25</Percent>
|
|
|
|
<XMLResults>$HELIX_WORKITEM_ROOT/testResults.xml</XMLResults>
|
2019-07-11 12:25:27 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2020-08-06 12:51:36 +00:00
|
|
|
<PropertyGroup Condition="'$(WasmDotnet)' == 'true'">
|
|
|
|
<CliArguments>$(CliArguments) --wasm</CliArguments>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2020-05-12 12:48:04 +00:00
|
|
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' == 'Windows_NT'">
|
2020-08-28 21:35:06 +00:00
|
|
|
<CoreRunArgument>--corerun %HELIX_CORRELATION_PAYLOAD%\dotnet-mono\shared\Microsoft.NETCore.App\6.0.0\corerun.exe</CoreRunArgument>
|
2020-05-12 12:48:04 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' != 'Windows_NT'">
|
2020-08-28 21:35:06 +00:00
|
|
|
<CoreRunArgument>--corerun $(BaseDirectory)/dotnet-mono/shared/Microsoft.NETCore.App/6.0.0/corerun</CoreRunArgument>
|
2020-05-12 12:48:04 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-07-11 12:25:27 +00:00
|
|
|
<PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
|
|
|
|
<CoreRunArgument>--corerun $(CoreRun)</CoreRunArgument>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-08-23 12:33:14 +00:00
|
|
|
<PropertyGroup Condition="'$(UseBaselineCoreRun)' == 'true'">
|
|
|
|
<BaselineCoreRunArgument>--corerun $(BaselineCoreRun)</BaselineCoreRunArgument>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-07-11 12:25:27 +00:00
|
|
|
<PropertyGroup Condition="'$(WorkItemCommand)' != ''">
|
|
|
|
<WorkItemCommand>$(Python) $(WorkItemCommand) --incremental no --architecture $(Architecture) -f $(_Framework) $(PerfLabArguments)</WorkItemCommand>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(_Framework)' != 'net461'">
|
|
|
|
<WorkItemCommand>$(WorkItemCommand) $(CliArguments)</WorkItemCommand>
|
|
|
|
</PropertyGroup>
|
2020-07-08 13:11:11 +00:00
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<WorkItemTimeout>2:30</WorkItemTimeout>
|
|
|
|
<WorkItemTimeout Condition="'$(HelixSourcePrefix)' != 'official'">0:15</WorkItemTimeout>
|
|
|
|
</PropertyGroup>
|
2019-07-11 12:25:27 +00:00
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<HelixCorrelationPayload Include="$(CorrelationPayloadDirectory)">
|
|
|
|
<PayloadDirectory>%(Identity)</PayloadDirectory>
|
|
|
|
</HelixCorrelationPayload>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2020-07-08 13:11:11 +00:00
|
|
|
<PartitionCount>30</PartitionCount>
|
2019-07-11 12:25:27 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<Partition Include="$(BuildConfig).Partition0" Index="0" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition1" Index="1" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition2" Index="2" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition3" Index="3" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition4" Index="4" />
|
2020-07-08 13:11:11 +00:00
|
|
|
<Partition Include="$(BuildConfig).Partition5" Index="5" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition6" Index="6" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition7" Index="7" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition8" Index="8" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition9" Index="9" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition10" Index="10" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition11" Index="11" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition12" Index="12" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition13" Index="13" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition14" Index="14" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition15" Index="15" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition16" Index="16" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition17" Index="17" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition18" Index="18" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition19" Index="19" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition20" Index="20" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition21" Index="21" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition22" Index="22" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition23" Index="23" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition24" Index="24" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition25" Index="25" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition26" Index="26" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition27" Index="27" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition28" Index="28" />
|
|
|
|
<Partition Include="$(BuildConfig).Partition29" Index="29" />
|
2019-07-11 12:25:27 +00:00
|
|
|
</ItemGroup>
|
|
|
|
|
2019-08-23 12:33:14 +00:00
|
|
|
<PropertyGroup Condition="'$(Compare)' == 'true'">
|
|
|
|
<FailOnTestFailure>false</FailOnTestFailure>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-07-11 12:25:27 +00:00
|
|
|
<!--
|
|
|
|
Partition the Microbenchmarks project, but nothing else
|
|
|
|
-->
|
|
|
|
<ItemGroup Condition="$(TargetCsproj.Contains('MicroBenchmarks.csproj'))">
|
|
|
|
<HelixWorkItem Include="@(Partition)">
|
|
|
|
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
|
2019-08-30 12:32:56 +00:00
|
|
|
<PreCommands Condition="'$(Compare)' == 'true'">$(WorkItemCommand) --bdn-artifacts $(BaselineArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(BaselineCoreRunArgument) --partition-count $(PartitionCount) --partition-index %(HelixWorkItem.Index)"</PreCommands>
|
|
|
|
<Command>$(WorkItemCommand) --bdn-artifacts $(ArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(CoreRunArgument) --partition-count $(PartitionCount) --partition-index %(HelixWorkItem.Index)"</Command>
|
2019-08-23 12:33:14 +00:00
|
|
|
<PostCommands Condition="'$(Compare)' == 'true'">$(DotnetExe) run -f $(_Framework) -p $(ResultsComparer) --base $(BaselineArtifactsDirectory) --diff $(ArtifactsDirectory) --threshold 2$(Percent) --xml $(XMLResults);$(FinalCommand)</PostCommands>
|
2020-07-08 13:11:11 +00:00
|
|
|
<Timeout>$(WorkItemTimeout)</Timeout>
|
2019-07-11 12:25:27 +00:00
|
|
|
</HelixWorkItem>
|
|
|
|
</ItemGroup>
|
2019-08-23 12:33:14 +00:00
|
|
|
|
2019-07-11 12:25:27 +00:00
|
|
|
<ItemGroup Condition="!$(TargetCsproj.Contains('MicroBenchmarks.csproj'))">
|
|
|
|
<HelixWorkItem Include="$(BuildConfig).WorkItem">
|
|
|
|
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
|
2019-08-30 12:32:56 +00:00
|
|
|
<PreCommands Condition="'$(Compare)' == 'true'">$(WorkItemCommand) --bdn-artifacts $(BaselineArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(BaselineCoreRunArgument)"</PreCommands>
|
|
|
|
<Command>$(WorkItemCommand) --bdn-artifacts $(ArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(CoreRunArgument)"</Command>
|
2019-08-23 12:33:14 +00:00
|
|
|
<PostCommands Condition="'$(Compare)' == 'true'">$(DotnetExe) run -f $(_Framework) -p $(ResultsComparer) --base $(BaselineArtifactsDirectory) --diff $(ArtifactsDirectory) --threshold 2$(Percent) --xml $(XMLResults)</PostCommands>
|
2019-07-11 12:25:27 +00:00
|
|
|
<Timeout>4:00</Timeout>
|
|
|
|
</HelixWorkItem>
|
|
|
|
</ItemGroup>
|
2020-04-30 12:44:30 +00:00
|
|
|
</Project>
|