Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67a52a1

Browse files
Speed up native AOT testing (dotnet#98939)
We don't need to run analyzers on native AOT legs because they run on the same code elsewhere. Locally drops `clr.aot+libs` build from 5 mins 30 secs to 4 mins 45 secs.
1 parent c7664ff commit 67a52a1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

eng/pipelines/coreclr/runtime-nativeaot-outerloop.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extends:
6868
testGroup: innerloop
6969
isSingleFile: true
7070
nameSuffix: NativeAOT_Libs
71-
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) /p:TestNativeAot=true /p:ArchiveTests=true /p:IlcUseServerGc=false
71+
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) /p:TestNativeAot=true /p:ArchiveTests=true /p:IlcUseServerGc=false /p:RunAnalyzers=false
7272
timeoutInMinutes: 300 # doesn't normally take this long, but I've seen Helix queues backed up for 160 minutes
7373
includeAllPlatforms: true
7474
# extra steps, run tests
@@ -94,7 +94,7 @@ extends:
9494
testGroup: innerloop
9595
isSingleFile: true
9696
nameSuffix: NativeAOT_Checked_Libs
97-
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) -rc Checked /p:TestNativeAot=true /p:ArchiveTests=true /p:IlcUseServerGc=false
97+
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) -rc Checked /p:TestNativeAot=true /p:ArchiveTests=true /p:IlcUseServerGc=false /p:RunAnalyzers=false
9898
timeoutInMinutes: 360
9999
# extra steps, run tests
100100
postBuildSteps:
@@ -119,7 +119,7 @@ extends:
119119
testGroup: innerloop
120120
isSingleFile: true
121121
nameSuffix: NativeAOT_Checked_Libs_SizeOpt
122-
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) -rc Checked /p:TestNativeAot=true /p:ArchiveTests=true /p:OptimizationPreference=Size /p:IlcUseServerGc=false
122+
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) -rc Checked /p:TestNativeAot=true /p:ArchiveTests=true /p:OptimizationPreference=Size /p:IlcUseServerGc=false /p:RunAnalyzers=false
123123
timeoutInMinutes: 240
124124
# extra steps, run tests
125125
postBuildSteps:
@@ -144,7 +144,7 @@ extends:
144144
testGroup: innerloop
145145
isSingleFile: true
146146
nameSuffix: NativeAOT_Checked_Libs_SpeedOpt
147-
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) -rc Checked /p:TestNativeAot=true /p:ArchiveTests=true /p:OptimizationPreference=Speed /p:IlcUseServerGc=false
147+
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) -rc Checked /p:TestNativeAot=true /p:ArchiveTests=true /p:OptimizationPreference=Speed /p:IlcUseServerGc=false /p:RunAnalyzers=false
148148
timeoutInMinutes: 240
149149
# extra steps, run tests
150150
postBuildSteps:
@@ -174,7 +174,7 @@ extends:
174174
jobParameters:
175175
timeoutInMinutes: 240
176176
nameSuffix: NativeAOT_Pri0
177-
buildArgs: -s clr.aot+host.native+libs -rc $(_BuildConfig) -lc Release -hc Release
177+
buildArgs: -s clr.aot+host.native+libs -rc $(_BuildConfig) -lc Release -hc Release /p:RunAnalyzers=false
178178
postBuildSteps:
179179
- template: /eng/pipelines/coreclr/nativeaot-post-build-steps.yml
180180
parameters:

eng/pipelines/runtime.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ extends:
254254
jobParameters:
255255
timeoutInMinutes: 120
256256
nameSuffix: NativeAOT
257-
buildArgs: -s clr.aot+host.native+libs -rc $(_BuildConfig) -lc Release -hc Release
257+
buildArgs: -s clr.aot+host.native+libs -rc $(_BuildConfig) -lc Release -hc Release /p:RunAnalyzers=false
258258
postBuildSteps:
259259
- template: /eng/pipelines/coreclr/nativeaot-post-build-steps.yml
260260
parameters:
@@ -293,7 +293,7 @@ extends:
293293
jobParameters:
294294
timeoutInMinutes: 180
295295
nameSuffix: NativeAOT
296-
buildArgs: -s clr.aot+host.native+libs.native+libs.sfx -rc $(_BuildConfig) -lc Release -hc Release
296+
buildArgs: -s clr.aot+host.native+libs.native+libs.sfx -rc $(_BuildConfig) -lc Release -hc Release /p:RunAnalyzers=false
297297
postBuildSteps:
298298
- template: /eng/pipelines/coreclr/nativeaot-post-build-steps.yml
299299
parameters:
@@ -338,7 +338,7 @@ extends:
338338
testGroup: innerloop
339339
timeoutInMinutes: 120
340340
nameSuffix: NativeAOT
341-
buildArgs: -s clr.aot+host.native+libs+tools.illink -c $(_BuildConfig) -rc $(_BuildConfig) -lc Release -hc Release
341+
buildArgs: -s clr.aot+host.native+libs+tools.illink -c $(_BuildConfig) -rc $(_BuildConfig) -lc Release -hc Release /p:RunAnalyzers=false
342342
postBuildSteps:
343343
- template: /eng/pipelines/coreclr/nativeaot-post-build-steps.yml
344344
parameters:
@@ -375,7 +375,7 @@ extends:
375375
testGroup: innerloop
376376
isSingleFile: true
377377
nameSuffix: NativeAOT_Libraries
378-
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) /p:TestNativeAot=true /p:RunSmokeTestsOnly=true /p:ArchiveTests=true
378+
buildArgs: -s clr.aot+host.native+libs+libs.tests -c $(_BuildConfig) /p:TestNativeAot=true /p:RunSmokeTestsOnly=true /p:ArchiveTests=true /p:RunAnalyzers=false
379379
timeoutInMinutes: 240 # Doesn't actually take long, but we've seen the ARM64 Helix queue often get backlogged for 2+ hours
380380
# extra steps, run tests
381381
postBuildSteps:

0 commit comments

Comments
 (0)