First attempt to implement Try schedulers

This commit is contained in:
Sergio Durigan Junior 2016-07-22 18:57:34 -04:00
parent b89dac42a8
commit c79cfa643c
2 changed files with 13 additions and 0 deletions

View file

@ -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" ]
}
]
}

View file

@ -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)