Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d0ff00f

Browse files
authored
Merge pull request #5892 from sejongoh/group_jitstress_jobs
Initial changes to move JIT stress jobs into jitstress directory on CI
2 parents b9f5ae8 + 972af95 commit d0ff00f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

netci.groovy

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ def project = GithubProject
88
// The input branch name (e.g. master)
99
def branch = GithubBranchName
1010
def projectFolder = Utilities.getFolderName(project) + '/' + Utilities.getFolderName(branch)
11+
12+
// Create a folder for JIT stress jobs
13+
folder('jitstress')
1114

1215
def static getOSGroup(def os) {
1316
def osGroupMap = ['Ubuntu':'Linux',
@@ -92,6 +95,14 @@ def static setMachineAffinity(def job, def os, def architecture) {
9295
}
9396
}
9497

98+
def static isJITStressJob(def scenario) {
99+
// For testing purpose, we test only one scenario here.
100+
if (scenario == 'jitstress2_jitstressregs1') {
101+
return true;
102+
}
103+
return false;
104+
}
105+
95106
def static isGCStressRelatedTesting(def scenario) {
96107
// The 'gcstress15_pri1r2r' scenario is a basic scenario.
97108
// Detect it and make it a GCStress related.
@@ -1405,9 +1416,10 @@ combinedScenarios.each { scenario ->
14051416
// Calculate names
14061417
def lowerConfiguration = configuration.toLowerCase()
14071418
def jobName = getJobName(configuration, architecture, os, scenario, isBuildOnly)
1419+
def folderName = isJITStressJob(scenario) ? 'jitstress' : '';
14081420

14091421
// Create the new job
1410-
def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {}
1422+
def newJob = job(Utilities.getFullJobName(project, jobName, isPR, folderName)) {}
14111423

14121424
setMachineAffinity(newJob, os, architecture)
14131425

0 commit comments

Comments
 (0)