Creating racy_daily Nightly scheduler and putting the Fedora* builders on it

This commit is contained in:
Sergio Durigan Junior 2016-06-14 14:30:28 -04:00
parent 7eab0bb490
commit c7bef0e0e0
2 changed files with 15 additions and 3 deletions

View file

@ -370,6 +370,18 @@
"Ubuntu-AArch64-m64", "Ubuntu-AArch64-m64",
"Ubuntu-AArch64-native-gdbserver-m64" ] "Ubuntu-AArch64-native-gdbserver-m64" ]
},
{ "type" : "Nightly", "name" : "racy_daily",
"hour" : "0", "minute" : "0",
"builderNames" : [ "Fedora-x86_64-m64",
"Fedora-x86_64-m32",
"Fedora-x86_64-native-gdbserver-m64",
"Fedora-x86_64-native-gdbserver-m32",
"Fedora-x86_64-native-extended-gdbserver-m64",
"Fedora-x86_64-native-extended-gdbserver-m32",
"Fedora-x86_64-cc-with-index",
"Fedora-i686" ]
} }
] ]
} }

View file

@ -391,7 +391,7 @@ class MyMailNotifier (mail.MailNotifier):
"""Extend the regular MailNotifier class in order to filter e-mails by """Extend the regular MailNotifier class in order to filter e-mails by
scheduler.""" scheduler."""
def isMailNeeded (self, build, results): def isMailNeeded (self, build, results):
if build.properties.getProperty ('scheduler') != 'racy': if not build.properties.getProperty ('scheduler').startswith ('racy'):
return mail.MailNotifier.isMailNeeded (self, build, results) return mail.MailNotifier.isMailNeeded (self, build, results)
else: else:
return False return False
@ -602,14 +602,14 @@ class CleanupBreakageLockfile (ShellCommand):
def scheduler_is_racy (step): def scheduler_is_racy (step):
return step.getProperty ('scheduler') == 'racy' return step.getProperty ('scheduler').startswith ('racy')
def scheduler_is_racy_hide (result, step): def scheduler_is_racy_hide (result, step):
return scheduler_is_racy (step) return scheduler_is_racy (step)
def scheduler_is_racy_do (step): def scheduler_is_racy_do (step):
return scheduler_is_racy (step) return scheduler_is_racy (step)
def scheduler_is_not_racy (step): def scheduler_is_not_racy (step):
return step.getProperty ('scheduler') != 'racy' return not step.getProperty ('scheduler').startswith ('racy')
def scheduler_is_not_racy_hide (result, step): def scheduler_is_not_racy_hide (result, step):
return scheduler_is_not_racy (step) return scheduler_is_not_racy (step)
def scheduler_is_not_racy_do (step): def scheduler_is_not_racy_do (step):