Bug 1636054

Summary: [RFE] Please enhance Beaker to support Message Bus - send messages whenever Beaker job status change
Product: [Retired] Beaker Reporter: Jiri Hladky <jhladky>
Component: generalAssignee: Dan Callaghan <dcallagh>
Status: CLOSED DUPLICATE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developCC: dcallagh, dzickus, emcnabb, huanli, jhladky, jjurca, jtluka, mhayden, olichtne, osabart, rasibley
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-10 01:14:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Hladky 2018-10-04 10:56:14 UTC
Hello,

after talking to several teams who are using Beaker for the CI we have realized that there is a common pattern. There is an automatic CI job (either Jenkins or Upshift container) which will start a Beaker job and it then waits for the Beaker job to finish, polling the status every few minutes via bkr job-watch.

Since Beaker jobs often take several hours to complete (waiting for the resources) we waste the resources by having Jenkins / container allocated all the time waiting for the Beaker to finish. It also creates unnecessary load on the Beaker side when tens or even hundreds of jobs are polling Beaker job status. 

We could solve the problem by adding support for the message bus to the Beaker. The idea is that Beaker would send a message to UMB whenever a Beaker job status would change the state. 

We believe that the whole kernel QE and engineering department would benefit from this enhancement along with other teams. It has been discussed on the kernel-ci mailing list and got a wide support. 

Thanks a lot for considering this RFE. 
Jirka

Comment 1 Dan Callaghan 2018-10-10 01:14:57 UTC
Agreed, this would be a very useful enhancement. It was near the top of the roadmap.

*** This bug has been marked as a duplicate of bug 1370383 ***