From 361d469b1c3ff9d913f17c1d01da50c16de0ba09 Mon Sep 17 00:00:00 2001 From: Sejong Oh Date: Tue, 21 Jun 2016 14:31:06 -0700 Subject: Move all JIT stress jobs into a sub directory on CI --- netci.groovy | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/netci.groovy b/netci.groovy index 9e519de698..9acc8a3b46 100755 --- a/netci.groovy +++ b/netci.groovy @@ -96,11 +96,7 @@ def static setMachineAffinity(def job, def os, def architecture) { } def static isJITStressJob(def scenario) { - // For testing purpose, we test only one scenario here. - if (scenario == 'jitstress2_jitstressregs1') { - return true; - } - return false; + return Constants.jitStressModeScenarios.containsKey(scenario) } def static isGCStressRelatedTesting(def scenario) { @@ -1420,7 +1416,7 @@ combinedScenarios.each { scenario -> // Create the new job def newJob = job(Utilities.getFullJobName(project, jobName, isPR, folderName)) {} - + setMachineAffinity(newJob, os, architecture) // Add all the standard options @@ -1809,12 +1805,14 @@ combinedScenarios.each { scenario -> } } } + } // os } // configuration } // architecture } // isPR } // scenario + // Create the Linux/OSX/CentOS coreclr test leg for debug and release and each scenario combinedScenarios.each { scenario -> [true, false].each { isPR -> @@ -1928,6 +1926,7 @@ combinedScenarios.each { scenario -> def lowerConfiguration = configuration.toLowerCase() def osGroup = getOSGroup(os) def jobName = getJobName(configuration, architecture, os, scenario, false) + "_tst" + // Unless this is a coverage test run, we want to copy over the default build of coreclr. def inputScenario = 'default' if (scenario == 'coverage') { @@ -2045,8 +2044,8 @@ combinedScenarios.each { scenario -> } } - - def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) { + def folder = isJITStressJob(scenario) ? 'jitstress' : '' + def newJob = job(Utilities.getFullJobName(project, jobName, isPR, folder)) { // Add parameters for the inputs parameters { @@ -2192,7 +2191,7 @@ combinedScenarios.each { scenario -> JobReport.Report.addReference(inputCoreCLRBuildName) JobReport.Report.addReference(inputWindowTestsBuildName) JobReport.Report.addReference(fullTestJobName) - def newFlowJob = buildFlowJob(Utilities.getFullJobName(project, flowJobName, isPR)) { + def newFlowJob = buildFlowJob(Utilities.getFullJobName(project, flowJobName, isPR, folder)) { buildFlow(""" // Build the input jobs in parallel parallel ( -- cgit v1.2.3