@@ -44,7 +44,9 @@ class Constants {
44
44
' jitstressregs3' : [' COMPlus_JitStressRegs' : ' 3' ], ' jitstressregs4' : [' COMPlus_JitStressRegs' : ' 4' ],
45
45
' jitstressregs8' : [' COMPlus_JitStressRegs' : ' 8' ], ' jitstressregs0x10' : [' COMPlus_JitStressRegs' : ' 0x10' ],
46
46
' jitstressregs0x80' : [' COMPlus_JitStressRegs' : ' 0x80' ],
47
- ' corefx_jitstress1' : [' COMPlus_JitStress' : ' 1' ]]
47
+ ' fx' : [' ' : ' ' ], // corefx baseline
48
+ ' fxjs1' : [' COMPlus_JitStress' : ' 1' ],
49
+ ' fxjs2' : [' COMPlus_JitStress' : ' 2' ]]
48
50
// This is the basic set of scenarios
49
51
def static basicScenarios = [' default' , ' pri1' , ' ilrt' ]
50
52
// This is the set of configurations
@@ -67,7 +69,7 @@ def static setMachineAffinity(def job, def os, def architecture) {
67
69
}
68
70
69
71
def static isCorefxTesting (def scenario ) {
70
- return scenario. substring(0 ,6 ) == ' corefx '
72
+ return scenario. substring(0 ,2 ) == ' fx '
71
73
}
72
74
73
75
// Generates the string for creating a file that sets environment variables
@@ -207,7 +209,9 @@ def static addTriggers(def job, def isPR, def architecture, def os, def configur
207
209
case ' forcerelocs' :
208
210
case ' jitstress1' :
209
211
case ' jitstress2' :
210
- case ' corefx_jitstress1' :
212
+ case ' fx' :
213
+ case ' fxjs1' :
214
+ case ' fxjs2' :
211
215
assert (os == ' Windows_NT' ) || (os in Constants . crossList)
212
216
Utilities . addPeriodicTrigger(job, ' @daily' )
213
217
break
@@ -317,7 +321,9 @@ def static addTriggers(def job, def isPR, def architecture, def os, def configur
317
321
Utilities . addGithubPRTrigger(job, " ${ os} ${ architecture} ${ configuration} Build and Test (Jit - JitStressRegs=0x80)" ,
318
322
" (?i).*test\\ W+${ os} \\ W+${ scenario} .*" )
319
323
break
320
- case ' corefx_jitstress1' :
324
+ case ' fx' :
325
+ case ' fxjs1' :
326
+ case ' fxjs2' :
321
327
// No Linux support is needed now
322
328
break
323
329
default :
@@ -407,11 +413,21 @@ def static addTriggers(def job, def isPR, def architecture, def os, def configur
407
413
Utilities . addGithubPRTrigger(job, " ${ os} ${ architecture} ${ configuration} Build and Test (Jit - JitStressRegs=0x80)" ,
408
414
" (?i).*test\\ W+${ os} \\ W+${ scenario} .*" )
409
415
break
410
- case ' corefx_jitstress1' :
416
+ case ' fx' :
417
+ assert (os == ' Windows_NT' ) || (os in Constants . crossList)
418
+ Utilities . addGithubPRTrigger(job, " ${ os} ${ architecture} ${ configuration} Build and Test (Jit - CoreFx Baseline)" ,
419
+ " (?i).*test\\ W+${ os} \\ W+${ scenario} .*" )
420
+ break
421
+ case ' fxjs1' :
411
422
assert (os == ' Windows_NT' ) || (os in Constants . crossList)
412
423
Utilities . addGithubPRTrigger(job, " ${ os} ${ architecture} ${ configuration} Build and Test (Jit - CoreFx JitStress=1)" ,
413
424
" (?i).*test\\ W+${ os} \\ W+${ scenario} .*" )
414
425
break
426
+ case ' fxjs2' :
427
+ assert (os == ' Windows_NT' ) || (os in Constants . crossList)
428
+ Utilities . addGithubPRTrigger(job, " ${ os} ${ architecture} ${ configuration} Build and Test (Jit - CoreFx JitStress=2)" ,
429
+ " (?i).*test\\ W+${ os} \\ W+${ scenario} .*" )
430
+ break
415
431
default :
416
432
println (" Unknown scenario: ${ scenario} " );
417
433
assert false
@@ -592,7 +608,8 @@ combinedScenarios.each { scenario ->
592
608
case ' x86' :
593
609
594
610
if (scenario == ' default' || Constants . jitStressModeScenarios. containsKey(scenario)) {
595
- buildCommands + = " build.cmd ${ lowerConfiguration} ${ architecture} "
611
+ buildOpts = enableCorefxTesting ? ' skiptests' : ' '
612
+ buildCommands + = " build.cmd ${ lowerConfiguration} ${ architecture} ${ buildOpts} "
596
613
}
597
614
598
615
// For Pri 1 tests, we must shorten the output test binary path names.
@@ -621,16 +638,18 @@ combinedScenarios.each { scenario ->
621
638
if (Constants . jitStressModeScenarios. containsKey(scenario)) {
622
639
if (enableCorefxTesting) {
623
640
// Sync to corefx repo
624
- buildCommands + = " git clone https://github.com/dotnet/corefx corefx "
641
+ buildCommands + = " git clone https://github.com/dotnet/corefx fx "
625
642
626
643
def setEnvVar = ' '
627
644
def envVars = Constants . jitStressModeScenarios[scenario]
628
645
envVars. each{ VarName , Value ->
629
- setEnvVar + = " && set ${ VarName} =${ Value} "
646
+ if (VarName != ' ' ) {
647
+ setEnvVar + = " && set ${ VarName} =${ Value} "
648
+ }
630
649
}
631
650
632
651
// Run corefx testing
633
- buildCommands + = " cd corefx && call \" C:\\ Program Files (x86)\\ Microsoft Visual Studio 14.0\\ VC\\ vcvarsall.bat\" x86 ${ setEnvVar} && Build.cmd /p:ConfigurationGroup=Release /p:WithCategories=\" InnerLoop;OuterLoop\" /p:BUILDTOOLS_OVERRIDE_RUNTIME=%WORKSPACE%\\ bin\\ Product\\ Windows_NT.x64.Checked /p:TestWithLocalLibraries=true"
652
+ buildCommands + = " cd fx && call \" C:\\ Program Files (x86)\\ Microsoft Visual Studio 14.0\\ VC\\ vcvarsall.bat\" x86 ${ setEnvVar} && Build.cmd /p:ConfigurationGroup=Release /p:WithCategories=\" InnerLoop;OuterLoop\" /p:BUILDTOOLS_OVERRIDE_RUNTIME=%WORKSPACE%\\ bin\\ Product\\ Windows_NT.x64.Checked /p:TestWithLocalLibraries=true"
634
653
}
635
654
else {
636
655
def stepScriptLocation = " %WORKSPACE%\\ bin\\ tests\\ SetStressModes.bat"
@@ -670,10 +689,10 @@ combinedScenarios.each { scenario ->
670
689
// Archive only result xml files since corefx/bin/tests is very large around 10 GB.
671
690
672
691
// For windows, pull full test results and test drops for x86/x64
673
- Utilities . addArchival(newJob, " corefx /bin/test/**/testResults.xml" )
692
+ Utilities . addArchival(newJob, " fx /bin/test/**/testResults.xml" )
674
693
675
694
if (architecture == ' x64' || ! isPR) {
676
- Utilities . addXUnitDotNETResults(newJob, ' corefx /bin/tests/**/testResults.xml' )
695
+ Utilities . addXUnitDotNETResults(newJob, ' fx /bin/tests/**/testResults.xml' )
677
696
}
678
697
}
679
698
0 commit comments