mozilla / release-services

Mozilla Release Engineering Services
https://docs.mozilla-releng.net
Mozilla Public License 2.0
49 stars 93 forks source link

Use message bus in MercurialWorker #2232

Closed La0 closed 5 years ago

La0 commented 5 years ago

This PR adds two queues to MercurialWorker:

  1. an input queue to receive the PhabricatorBuild instances
  2. an output queue to send the outcome of the mercurial apply + push to Phabricator (or any other service that could listen).

This is the first step to get a mercurial worker independant from Phabricator api calls. I'll make a followup PR to remove the patch loading steps from mercurial worker.

There is also a nice side effect: it's now possible to test the mercurial worker full workflow ( method run by using the queues)