Debian Codegraph @

external/linker/eng/common/performance/perfhelixpublish.proj

raw
1 <Project Sdk="Microsoft.DotNet.Helix.Sdk" DefaultTargets="Test">
2
3 <PropertyGroup Condition="'$(AGENT_OS)' == 'Windows_NT'">
4 <WorkItemCommand>%HELIX_CORRELATION_PAYLOAD%\performance\scripts\benchmarks_ci.py --csproj %HELIX_CORRELATION_PAYLOAD%\performance\$(TargetCsproj)</WorkItemCommand>
5 <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>
6 <Python>py -3</Python>
7 <CoreRun>%HELIX_CORRELATION_PAYLOAD%\Core_Root\CoreRun.exe</CoreRun>
8 <BaselineCoreRun>%HELIX_CORRELATION_PAYLOAD%\Baseline_Core_Root\CoreRun.exe</BaselineCoreRun>
9 <HelixPreCommands>$(HelixPreCommands);call %HELIX_CORRELATION_PAYLOAD%\performance\tools\machine-setup.cmd</HelixPreCommands>
10 <ArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts</ArtifactsDirectory>
11 <BaselineArtifactsDirectory>%HELIX_CORRELATION_PAYLOAD%\artifacts\BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
12 <ResultsComparer>%HELIX_CORRELATION_PAYLOAD%\performance\src\tools\ResultsComparer\ResultsComparer.csproj</ResultsComparer>
13 <DotnetExe>%HELIX_CORRELATION_PAYLOAD%\performance\tools\dotnet\$(Architecture)\dotnet.exe</DotnetExe>
14 <Percent>%25%25</Percent>
15 <XMLResults>%HELIX_WORKITEM_ROOT%\testResults.xml</XMLResults>
16 </PropertyGroup>
17
18 <PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT' and '$(RunFromPerfRepo)' == 'false'">
19 <BaseDirectory>$HELIX_CORRELATION_PAYLOAD</BaseDirectory>
20 <PerformanceDirectory>$(BaseDirectory)/performance</PerformanceDirectory>
21 </PropertyGroup>
22
23 <PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT' and '$(RunFromPerfRepo)' == 'true'">
24 <BaseDirectory>$HELIX_WORKITEM_PAYLOAD</BaseDirectory>
25 <PerformanceDirectory>$(BaseDirectory)</PerformanceDirectory>
26 </PropertyGroup>
27
28 <PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT'">
29 <WorkItemCommand>$(PerformanceDirectory)/scripts/benchmarks_ci.py --csproj $(PerformanceDirectory)/$(TargetCsproj)</WorkItemCommand>
30 <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>
31 <Python>python3</Python>
32 <CoreRun>$(BaseDirectory)/Core_Root/corerun</CoreRun>
33 <BaselineCoreRun>$(BaseDirectory)/Baseline_Core_Root/corerun</BaselineCoreRun>
34 <HelixPreCommands>$(HelixPreCommands);chmod +x $(PerformanceDirectory)/tools/machine-setup.sh;. $(PerformanceDirectory)/tools/machine-setup.sh</HelixPreCommands>
35 <ArtifactsDirectory>$(BaseDirectory)/artifacts/BenchmarkDotNet.Artifacts</ArtifactsDirectory>
36 <BaselineArtifactsDirectory>$(BaseDirectory)/artifacts/BenchmarkDotNet.Artifacts_Baseline</BaselineArtifactsDirectory>
37 <ResultsComparer>$(PerformanceDirectory)/src/tools/ResultsComparer/ResultsComparer.csproj</ResultsComparer>
38 <DotnetExe>$(PerformanceDirectory)/tools/dotnet/$(Architecture)/dotnet</DotnetExe>
39 <Percent>%25</Percent>
40 <XMLResults>$HELIX_WORKITEM_ROOT/testResults.xml</XMLResults>
41 </PropertyGroup>
42
43 <PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
44 <CoreRunArgument>--corerun $(CoreRun)</CoreRunArgument>
45 </PropertyGroup>
46
47 <PropertyGroup Condition="'$(UseBaselineCoreRun)' == 'true'">
48 <BaselineCoreRunArgument>--corerun $(BaselineCoreRun)</BaselineCoreRunArgument>
49 </PropertyGroup>
50
51 <PropertyGroup Condition="'$(WorkItemCommand)' != ''">
52 <WorkItemCommand>$(Python) $(WorkItemCommand) --incremental no --architecture $(Architecture) -f $(_Framework) $(PerfLabArguments)</WorkItemCommand>
53 </PropertyGroup>
54
55 <PropertyGroup Condition="'$(_Framework)' != 'net461'">
56 <WorkItemCommand>$(WorkItemCommand) $(CliArguments)</WorkItemCommand>
57 </PropertyGroup>
58
59 <ItemGroup>
60 <HelixCorrelationPayload Include="$(CorrelationPayloadDirectory)">
61 <PayloadDirectory>%(Identity)</PayloadDirectory>
62 </HelixCorrelationPayload>
63 </ItemGroup>
64
65 <PropertyGroup>
66 <PartitionCount>5</PartitionCount>
67 </PropertyGroup>
68 <ItemGroup>
69 <Partition Include="$(BuildConfig).Partition0" Index="0" />
70 <Partition Include="$(BuildConfig).Partition1" Index="1" />
71 <Partition Include="$(BuildConfig).Partition2" Index="2" />
72 <Partition Include="$(BuildConfig).Partition3" Index="3" />
73 <Partition Include="$(BuildConfig).Partition4" Index="4" />
74 </ItemGroup>
75
76 <PropertyGroup Condition="'$(Compare)' == 'true'">
77 <FailOnTestFailure>false</FailOnTestFailure>
78 </PropertyGroup>
79
80 <!--
81 Partition the Microbenchmarks project, but nothing else
82 -->
83 <ItemGroup Condition="$(TargetCsproj.Contains('MicroBenchmarks.csproj'))">
84 <HelixWorkItem Include="@(Partition)">
85 <PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
86 <PreCommands Condition="'$(Compare)' == 'true'">$(WorkItemCommand) --bdn-artifacts $(BaselineArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(BaselineCoreRunArgument) --partition-count $(PartitionCount) --partition-index %(HelixWorkItem.Index)"</PreCommands>
87 <Command>$(WorkItemCommand) --bdn-artifacts $(ArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(CoreRunArgument) --partition-count $(PartitionCount) --partition-index %(HelixWorkItem.Index)"</Command>
88 <PostCommands Condition="'$(Compare)' == 'true'">$(DotnetExe) run -f $(_Framework) -p $(ResultsComparer) --base $(BaselineArtifactsDirectory) --diff $(ArtifactsDirectory) --threshold 2$(Percent) --xml $(XMLResults);$(FinalCommand)</PostCommands>
89 <Timeout>4:00</Timeout>
90 </HelixWorkItem>
91 </ItemGroup>
92
93 <ItemGroup Condition="!$(TargetCsproj.Contains('MicroBenchmarks.csproj'))">
94 <HelixWorkItem Include="$(BuildConfig).WorkItem">
95 <PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory>
96 <PreCommands Condition="'$(Compare)' == 'true'">$(WorkItemCommand) --bdn-artifacts $(BaselineArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(BaselineCoreRunArgument)"</PreCommands>
97 <Command>$(WorkItemCommand) --bdn-artifacts $(ArtifactsDirectory) --bdn-arguments="--anyCategories $(BDNCategories) $(ExtraBenchmarkDotNetArguments) $(CoreRunArgument)"</Command>
98 <PostCommands Condition="'$(Compare)' == 'true'">$(DotnetExe) run -f $(_Framework) -p $(ResultsComparer) --base $(BaselineArtifactsDirectory) --diff $(ArtifactsDirectory) --threshold 2$(Percent) --xml $(XMLResults)</PostCommands>
99 <Timeout>4:00</Timeout>
100 </HelixWorkItem>
101 </ItemGroup>
102 </Project>