Ejemplo n.º 1
0
 def __init__(self):
     register_handler("MessageAdded", self.on_message_added)
     declare_event("TagsUpdate", series="message object that is updated")
     declare_event(
         "SeriesReviewed",
         series="message object that got Reviewed-by tags for all patches",
     )
Ejemplo n.º 2
0
 def __init__(self):
     register_handler("ResultUpdate", self.on_result_update)
     declare_event("MessageQueued",
                   message="Message added",
                   name="Name of the updated queue",
                   user="******")
     declare_event("MessageDropping",
                   message="Message to be dropped",
                   queue="Message is about to be dropping from a queue")
Ejemplo n.º 3
0
 def __init__(self):
     global _instance
     assert _instance == None
     _instance = self
     # Make sure git is available
     subprocess.check_output(["git", "version"])
     declare_event("ProjectGitUpdate", project="the updated project name")
     declare_event("SeriesApplied", series="the object of applied series")
     register_handler("SeriesComplete", self.on_series_update)
     register_handler("TagsUpdate", self.on_series_update)
Ejemplo n.º 4
0
 def __init__(self):
     register_handler("ResultUpdate", self.on_result_update)
     declare_event(
         "MessageQueued",
         message="Message added",
         name="Name of the updated queue",
         user="******",
     )
     declare_event(
         "MessageDropping",
         message="Message to be dropped",
         queue="Message is about to be dropping from a queue",
     )
Ejemplo n.º 5
0
 def __init__(self):
     global _instance
     assert _instance == None
     _instance = self
     declare_event(
         "TestingReport",
         user="******",
         tester="the name of the tester",
         obj="the object (series or project) which the test is for",
         passed="True if the test is passed",
         test="test name",
         log="test log",
         is_timeout="whether the test has timeout")
     register_handler("SetProperty", self.on_set_property)
Ejemplo n.º 6
0
 def __init__(self):
     global _instance
     assert _instance == None
     _instance = self
     declare_event(
         "TestingReport",
         user="******",
         tester="the name of the tester",
         obj="the object (series or project) which the test is for",
         passed="True if the test is passed",
         test="test name",
         log="test log",
         log_url="URL to test log (text)",
         html_log_url="URL to test log (HTML)",
         is_timeout="whether the test has timeout",
     )
     register_handler("SetProperty", self.on_set_property)
     register_handler("SetProjectConfig", self.on_set_config)
     register_handler("ResultUpdate", self.on_result_update)
Ejemplo n.º 7
0
 def __init__(self):
     register_handler(None, self.on_event)
Ejemplo n.º 8
0
 def __init__(self):
     register_handler("MessageAdded", self.on_message_added)
     declare_event("TagsUpdate", series="message object that is updated")
Ejemplo n.º 9
0
 def __init__(self):
     register_handler("MessageAdded", self.on_message_added)
     declare_event("TagsUpdate", series="message object that is updated")
Ejemplo n.º 10
0
 def __init__(self):
     register_handler(None, self.on_event)