From c79cfa643cca9144e77f33ebf2bd639b81e59a0f Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 22 Jul 2016 18:57:34 -0400 Subject: [PATCH] First attempt to implement Try schedulers --- lib/config.json | 5 +++++ master.cfg | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/lib/config.json b/lib/config.json index f0ca734..9f30487 100644 --- a/lib/config.json +++ b/lib/config.json @@ -382,6 +382,11 @@ "Fedora-x86_64-native-extended-gdbserver-m32", "Fedora-x86_64-cc-with-index", "Fedora-i686" ] + }, + + { "type" : "Try_Jobdir", "name" : "try_ssh", + "jobdir" : "try_ssh_jobdir", + "builderNames" : [ "Fedora-x86_64-m64" ] } ] } diff --git a/master.cfg b/master.cfg index a5de411..4ccb965 100644 --- a/master.cfg +++ b/master.cfg @@ -969,6 +969,12 @@ changes to build on GDB.""" return False +def prioritizeTryBuilds (builder, requests): + for r in requests: + if r.properties.getProperty ('scheduler').startswith ('try'): + return r + return requests[0] + ############################### #### Configuration loading #### ############################### @@ -1051,6 +1057,8 @@ def load_config (c): except KeyError: pass + b['nextBuild'] = prioritizeTryBuilds + c['builders'].append (b) load_config (c)