|
68 | 68 |
|
69 | 69 | <!-- OS-specific settings for non-benchmarks collections -->
|
70 | 70 |
|
71 |
| - <PropertyGroup Condition=" '$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld' and '$(AGENT_OS)' == 'Windows_NT' "> |
| 71 | + <PropertyGroup Condition=" '$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld' and '$(CollectionName)' != 'aspnet2' and '$(AGENT_OS)' == 'Windows_NT' "> |
72 | 72 | <AssembliesDirectoryOnHelix>%HELIX_WORKITEM_PAYLOAD%\binaries</AssembliesDirectoryOnHelix>
|
73 | 73 | </PropertyGroup>
|
74 |
| - <PropertyGroup Condition=" '$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld' and '$(AGENT_OS)' != 'Windows_NT' "> |
| 74 | + <PropertyGroup Condition=" '$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld' and '$(CollectionName)' != 'aspnet2' and '$(AGENT_OS)' != 'Windows_NT' "> |
75 | 75 | <AssembliesDirectoryOnHelix>$HELIX_WORKITEM_PAYLOAD/binaries</AssembliesDirectoryOnHelix>
|
76 | 76 | </PropertyGroup>
|
77 | 77 |
|
|
84 | 84 | <PerformanceDirectory>$HELIX_WORKITEM_PAYLOAD/performance</PerformanceDirectory>
|
85 | 85 | </PropertyGroup>
|
86 | 86 |
|
| 87 | + <!-- OS-specific settings for aspnet2 collections --> |
| 88 | + |
| 89 | + <PropertyGroup Condition=" '$(CollectionName)' == 'aspnet2' and '$(AGENT_OS)' == 'Windows_NT' "> |
| 90 | + <CrankWorkDirectory>%HELIX_WORKITEM_PAYLOAD%</CrankWorkDirectory> |
| 91 | + </PropertyGroup> |
| 92 | + <PropertyGroup Condition=" '$(CollectionName)' == 'aspnet2' and '$(AGENT_OS)' != 'Windows_NT' "> |
| 93 | + <CrankWorkDirectory>$HELIX_WORKITEM_PAYLOAD</CrankWorkDirectory> |
| 94 | + </PropertyGroup> |
| 95 | + |
87 | 96 | <!-- Common non-OS-specific settings -->
|
88 | 97 |
|
89 | 98 | <PropertyGroup>
|
|
138 | 147 |
|
139 | 148 | <!-- Define the Helix work item command and timeout for each collection type -->
|
140 | 149 |
|
141 |
| - <PropertyGroup Condition="'$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld'"> |
| 150 | + <PropertyGroup Condition="'$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld' and '$(CollectionName)' != 'aspnet2'"> |
142 | 151 | <WorkItemCommand>$(Python) $(SuperPMIDirectory)$(FileSeparatorChar)superpmi.py collect --clean -log_level DEBUG --$(CollectionType) $(PmiArguments) $(InputKind) $(AssembliesDirectoryOnHelix) -arch $(Architecture) -build_type $(BuildConfig) -core_root $(SuperPMIDirectory)</WorkItemCommand>
|
143 | 152 | <WorkItemTimeout>2:00</WorkItemTimeout>
|
144 | 153 | </PropertyGroup>
|
|
148 | 157 | <WorkItemTimeout>3:00</WorkItemTimeout>
|
149 | 158 | </PropertyGroup>
|
150 | 159 |
|
| 160 | + <PropertyGroup Condition="'$(CollectionName)' == 'aspnet2'"> |
| 161 | + <WorkItemCommand>$(Python) $(SuperPMIDirectory)$(FileSeparatorChar)superpmi_aspnet2.py --core_root $(SuperPMIDirectory) --work_dir $(CrankWorkDirectory) </WorkItemCommand> |
| 162 | + <WorkItemTimeout>3:00</WorkItemTimeout> |
| 163 | + </PropertyGroup> |
| 164 | + |
151 | 165 | <PropertyGroup>
|
152 | 166 | <EnableAzurePipelinesReporter>false</EnableAzurePipelinesReporter>
|
153 | 167 | <EnableXUnitReporter>false</EnableXUnitReporter>
|
|
157 | 171 | <ItemGroup Condition=" '$(AGENT_OS)' == 'Windows_NT' ">
|
158 | 172 | <HelixPreCommand Include="taskkill.exe /f /im corerun.exe"/>
|
159 | 173 | <HelixPostCommand Include="taskkill.exe /f /im corerun.exe"/>
|
| 174 | + |
| 175 | + <HelixPreCommand Include="taskkill.exe /f /im crank-agent.exe"/> |
| 176 | + <HelixPostCommand Include="taskkill.exe /f /im crank-agent.exe"/> |
| 177 | + </ItemGroup> |
| 178 | + |
| 179 | + <ItemGroup Condition=" '$(AGENT_OS)' != 'Windows_NT'"> |
| 180 | + <HelixPreCommand Include="pkill -f crank || true"/> |
| 181 | + <HelixPostCommand Include="pkill -f crank || true"/> |
| 182 | + |
| 183 | + <!-- Temp workaround, will be removed once https://github.com/dotnet/crank/pull/841 lands --> |
| 184 | + <HelixPreCommand Include="sudo tdnf install git -y"/> |
| 185 | + <HelixPreCommand Include="sudo tdnf update -y"/> |
160 | 186 | </ItemGroup>
|
161 | 187 |
|
162 | 188 | <!-- We're currently not using .dotnet on the Helix agents -->
|
|
197 | 223 | <!-- For non-benchmark collections, we create one Helix work item for each sub-directory
|
198 | 224 | in the `InputArtifacts` directory.
|
199 | 225 | -->
|
200 |
| - <ItemGroup Condition="'$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld'"> |
| 226 | + <ItemGroup Condition="'$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld' and '$(CollectionName)' != 'aspnet2'"> |
201 | 227 | <PartitionDirectories Include="$([System.IO.Directory]::GetDirectories($(InputArtifacts)))"/>
|
202 | 228 | <Partition Include="@(PartitionDirectories -> '%(Filename)')" CollectAssemblies="%(Filename)" PartitionId="%(Filename)" />
|
203 | 229 | </ItemGroup>
|
|
262 | 288 | <BDN_Partition Include="Partition3" Index="3" BenchmarkPath="src/benchmarks/real-world/Microsoft.ML.Benchmarks/Microsoft.ML.Benchmarks.csproj" BenchmarkBinary="Microsoft.ML.Benchmarks.dll" />
|
263 | 289 | <BDN_Partition Include="Partition4" Index="4" BenchmarkPath="src/benchmarks/real-world/Roslyn/CompilerBenchmarks.csproj" BenchmarkBinary="CompilerBenchmarks.dll" />
|
264 | 290 | <BDN_Partition Include="Partition5" Index="5" BenchmarkPath="src/benchmarks/real-world/PowerShell.Benchmarks/PowerShell.Benchmarks.csproj" BenchmarkBinary="PowerShell.Benchmarks.dll" />
|
265 |
| - </ItemGroup> |
| 291 | + </ItemGroup> |
| 292 | + |
| 293 | + <ItemGroup Condition="'$(CollectionName)' == 'aspnet2'"> |
| 294 | + <Crank_Partition Include="Partition0" Index="0" /> |
| 295 | + </ItemGroup> |
266 | 296 |
|
267 |
| - <ItemGroup Condition="'$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld'"> |
| 297 | + <ItemGroup Condition="'$(CollectionName)' != 'benchmarks' and '$(CollectionName)' != 'realworld' and '$(CollectionName)' != 'aspnet2'"> |
268 | 298 | <HelixWorkItem Include="@(Partition)">
|
269 | 299 | <OutputFileName>$(CollectionName).$(CollectionType).%(HelixWorkItem.PartitionId).$(MchFileTag)</OutputFileName>
|
270 | 300 | <PayloadDirectory>$(AssembliesPayload)$(FileSeparatorChar)%(HelixWorkItem.CollectAssemblies)</PayloadDirectory>
|
|
292 | 322 | <Timeout>$(WorkItemTimeout)</Timeout>
|
293 | 323 | <DownloadFilesFromResults>%(OutputFileName).mch;%(OutputFileName).mch.mct;%(OutputFileName).log</DownloadFilesFromResults>
|
294 | 324 | </HelixWorkItem>
|
295 |
| - </ItemGroup> |
| 325 | + </ItemGroup> |
| 326 | + |
| 327 | + <ItemGroup Condition="'$(CollectionName)' == 'aspnet2'"> |
| 328 | + <HelixWorkItem Include="@(Crank_Partition)"> |
| 329 | + <OutputFileName>$(CollectionName).$(CollectionType).%(HelixWorkItem.Index).$(MchFileTag)</OutputFileName> |
| 330 | + <PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory> |
| 331 | + <Command>$(WorkItemCommand) --output_mch $(OutputMchPath)$(FileSeparatorChar)%(OutputFileName).mch</Command> |
| 332 | + <Timeout>$(WorkItemTimeout)</Timeout> |
| 333 | + <DownloadFilesFromResults>%(OutputFileName).mch;%(OutputFileName).mch.mct</DownloadFilesFromResults> |
| 334 | + </HelixWorkItem> |
| 335 | + </ItemGroup> |
296 | 336 | </Project>
|
0 commit comments