X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=dsl%2Fkernel-lttng-modules.seed.groovy;h=723b5e042765d1a6c2aea00f1c5d56f464db61a7;hb=530fc31519c09c0c610d7248ecdd458dc4f8b093;hp=4f15c4b9c36615d38141f0d1120011e72672ed14;hpb=23e5a3e083258ae8e351fa16f7747d21df213a8d;p=lttng-ci.git diff --git a/dsl/kernel-lttng-modules.seed.groovy b/dsl/kernel-lttng-modules.seed.groovy index 4f15c4b..723b5e0 100644 --- a/dsl/kernel-lttng-modules.seed.groovy +++ b/dsl/kernel-lttng-modules.seed.groovy @@ -267,7 +267,7 @@ def limitQueue = 4 def anotherBuild jobs.each { job -> def jobName = job.getName() - if (jobName.startsWith(jobStartWith)) { + if (jobName.startsWith(jobStartWithKernel)) { counter = counter + 1 def lastBuild = job.getLastBuild() if (lastBuild == null || lastBuild.result != Result.SUCCESS) { @@ -301,14 +301,15 @@ while (toBuild.size() != 0) { it.task.name.startsWith(jobStartWithModule) } - if ((ongoingBuild.size() <= kernelEnabledNode) && (queuedTask.size() < limitQueue)) { + if ((ongoingBuild.size() <= kernelEnabledNode.intdiv(2)) && (queuedTask.size() < limitQueue)) { def job = toBuild.pop() ongoingBuild.push(job.scheduleBuild2(0)) - println "Currently " + queuedTask.findAll{it.task.name.startsWith(jobStartWithModule).size() + "module jobs are queued" - println "Currently " + queuedTask.findAll{it.task.name.startsWith(jobStartWithKernel).size() + "kernel jobs are queued" println "\\t trigering " + HyperlinkNote.encodeTo('/' + job.url, job.fullDisplayName) } else { - Thread.sleep(random.nextInt(120000)) + println "Currently " + ongoingBuild.size() + " build currently on execution. Limit: " + kernelEnabledNode.intdiv(2) + println "Currently " + queuedTask.findAll{it.task.name.startsWith(jobStartWithModule)}.size() + " module jobs are queued. Limit: " + limitQueue + println "Currently " + queuedTask.findAll{it.task.name.startsWith(jobStartWithKernel)}.size() + " kernel jobs are queued. Limit: " + limitQueue + Thread.sleep(random.nextInt(60000)) ongoingBuild.removeAll{ it.isCancelled() || it.isDone() } } }