X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fsystem-tests%2Fsystem-trigger.groovy;h=fd5b901cedd095e1bee178077128e243baaf021f;hb=2fad6b3dfbd16e0ae64fdc25ad35df7bdb2f6ff7;hp=a4f2a514220f47ff1c3498b8bc21196e8b0edbf5;hpb=a28d0f54fc0eb4a531c2a28bb12e42776bb24f98;p=lttng-ci.git diff --git a/scripts/system-tests/system-trigger.groovy b/scripts/system-tests/system-trigger.groovy index a4f2a51..fd5b901 100644 --- a/scripts/system-tests/system-trigger.groovy +++ b/scripts/system-tests/system-trigger.groovy @@ -273,7 +273,7 @@ def LaunchJob = { jobName, jobInfo -> for (paramdef in job.getProperty(ParametersDefinitionProperty.class).getParameterDefinitions()) { // If there is a default value for this parameter, use it. Don't use empty // default value parameters. - if (paramdef.getDefaultValue()) { + if (paramdef.getDefaultParameterValue() != null) { params += paramdef.getDefaultParameterValue(); } } @@ -300,13 +300,27 @@ final String linuxRepo = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/l final String pastJobsPath = build.getEnvironment(listener).get('WORKSPACE') + "/pastjobs"; -def recentLttngBranchesOfInterest = ['master', 'stable-2.10', 'stable-2.9'] -def recentLinuxBranchesOfInterest = ['master', 'linux-4.19.y', 'linux-4.14.y', 'linux-4.9.y'] - -def legacyLttngBranchesOfInterest = ['master', 'stable-2.10', 'stable-2.9', 'stable-2.7'] -def legacyLinuxBranchesOfInterest = ['linux-4.4.y'] - -def vmLinuxBranchesOfInterest = ['linux-3.18.y'] +def recentLttngBranchesOfInterest = ['master', + 'stable-2.13', + 'stable-2.12'] +def recentLinuxBranchesOfInterest = ['master', + 'linux-6.1.y', + 'linux-5.15.y', + 'linux-5.10.y', + 'linux-5.4.y', + 'linux-4.19.y', + 'linux-4.14.y', +] + +def legacyLttngBranchesOfInterest = [] +def legacyLinuxBranchesOfInterest = [ + 'linux-5.14.y', + 'linux-4.18.y', + 'linux-4.12.y', + 'linux-4.9.y', +] + +def vmLinuxBranchesOfInterest = [] // Generate configurations of interest. def configurationOfInterest = [] as Set @@ -324,7 +338,7 @@ legacyLttngBranchesOfInterest.each { lttngBranch -> } def lttngBranchesOfInterest = recentLttngBranchesOfInterest + legacyLttngBranchesOfInterest -def linuxBranchesOfInterest = recentLinuxBranchesOfInterest + legacyLinuxBranchesOfInterest +def linuxBranchesOfInterest = recentLinuxBranchesOfInterest + legacyLinuxBranchesOfInterest + vmLinuxBranchesOfInterest // For LTTng branches, we look for new commits. def toolsHeadCommits = GetHeadCommits(toolsRepo, lttngBranchesOfInterest) @@ -359,8 +373,6 @@ if (triggerJobName.contains("vm_tests")) { } } else if (triggerJobName.contains("baremetal_tests")) { jobType = 'baremetal_tests'; -} else if (triggerJobName.contains("baremetal_benchmarks")) { - jobType = 'baremetal_benchmarks'; } // Hashmap containing all the jobs, their configuration (commit id, etc. )and @@ -372,24 +384,18 @@ def currentJobs = [:]; configurationOfInterest.each { lttngBr, linuxBr -> def jobName = CraftJobName(jobType, linuxBr, lttngBr); currentJobs[jobName] = CraftConfig(linuxBr, lttngBr); - - // Add fuzzing job in vm_tests on master branches of lttng and linux. - //if (jobType == 'vm_tests' && lttngBr == 'master' && linuxBr == 'master') { - // def vmFuzzingJobName = CraftJobName(jobType + '_fuzzing', linuxBr, lttngBr); - // currentJobs[vmFuzzingJobName] = CraftConfig(linuxBr, lttngBr); - //} } //Add canary job -def jobNameCanary = jobType + "_canary"; +def jobNameCanary = jobType + "_kcanary_lcanary"; currentJobs[jobNameCanary] = [:]; currentJobs[jobNameCanary]['config'] = [:]; -currentJobs[jobNameCanary]['config']['linuxBranch'] = 'v4.4.9'; -currentJobs[jobNameCanary]['config']['lttngBranch'] = 'v2.8.6'; -currentJobs[jobNameCanary]['config']['linuxTagID'] ='1a1a512b983108015ced1e7a7c7775cfeec42d8c'; -currentJobs[jobNameCanary]['config']['toolsCommit'] = '9f10e482d6cc937acead52951cf69c553cd11e22' -currentJobs[jobNameCanary]['config']['modulesCommit'] = '7fd9215' -currentJobs[jobNameCanary]['config']['ustCommit'] = '514a87f' +currentJobs[jobNameCanary]['config']['linuxBranch'] = 'v5.15.112'; +currentJobs[jobNameCanary]['config']['lttngBranch'] = 'v2.13.9'; +currentJobs[jobNameCanary]['config']['linuxTagID'] ='9d6bde853685609a631871d7c12be94fdf8d912e'; // v5.15.112 +currentJobs[jobNameCanary]['config']['toolsCommit'] = '2ff0385718ff894b3d0e06f3961334c20c5436f8' // v2.13.9 +currentJobs[jobNameCanary]['config']['modulesCommit'] = 'da1f5a264fff33fc5a9518e519fb0084bf1074af' // v2.13.9 +currentJobs[jobNameCanary]['config']['ustCommit'] = 'de624c20694f69702b42c5d47b5bcf692293a238' // v2.13.5 currentJobs[jobNameCanary]['status'] = 'NOT_SET'; currentJobs[jobNameCanary]['build'] = null; @@ -403,9 +409,8 @@ def ongoingJobs = 0; currentJobs.each { jobName, jobInfo -> // If the job ran in the past, we check if the IDs changed since. - // Fetch past results only if the job is not of type canary or fuzzing. - if (!jobName.contains('_canary') && !jobName.contains('_fuzzing') && - pastJobs.containsKey(jobName) && + // Fetch past results only if the job is not of type canary. + if (!jobName.contains('_kcanary_lcanary') && pastJobs.containsKey(jobName) && build.getBuildVariables().get('FORCE_JOB_RUN') == 'false') { pastJob = pastJobs[jobName]; @@ -414,7 +419,8 @@ currentJobs.each { jobName, jobInfo -> // if the config has not changed, we keep it. // if it's failed, we don't launch a new job and keep it failed. jobInfo['status'] = pastJob['status']; - if (pastJob['status'] == 'FAILED') { + if (pastJob['status'] == 'FAILED' && + build.getBuildVariables().get('FORCE_FAILED_JOB_RUN') == 'false') { println("${jobName} as not changed since the last failed run. Don't run it again."); // Marked the umbrella job for failure but still run the jobs that since the // last run.