RESOLVED FIXED 191929
[ews-app] Add field in Patch object to indicate if it has been sent to Buildbot
https://bugs.webkit.org/show_bug.cgi?id=191929
Summary [ews-app] Add field in Patch object to indicate if it has been sent to Buildbot
Aakash Jain
Reported 2018-11-23 16:41:07 PST
We should add a field in Patch object to indicate if it has been sent to Buildbot. This would help in keeping track of the patch status, and whether the patch needs to be sent to Buildbot or not. For e.g.: if the Patch is downloaded and saved to Database, but 'buildbot try' command failed, there should be a way differentiate that patch in db from another patch which was successfully sent to Buildbot. Note that in order to trigger builds on multiple builders on Buildbot, ews just needs to execute a single 'buildbot try' command (with appropriate port number). So, one flag (in Patch table) is enough to keep track of whether the patch has been sent to Buildbot or not.
Attachments
Proposed patch (3.00 KB, patch)
2018-11-23 19:00 PST, Aakash Jain
lforschler: review+
Aakash Jain
Comment 1 2018-11-23 19:00:14 PST
Created attachment 355547 [details] Proposed patch Part of patch series. Therefore wouldn't apply to ToT without applying other patches first.
Lucas Forschler
Comment 2 2018-11-26 12:48:13 PST
Comment on attachment 355547 [details] Proposed patch lgtm. if we refactor bb to buildbot, it will need update here as well.
Kocsen Chung
Comment 3 2018-11-26 14:58:23 PST
Comment on attachment 355547 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=355547&action=review > Tools/BuildSlaveSupport/ews-app/ews/models/patch.py:38 > + sent_to_bb = models.BooleanField(default=False) Ditto from the other patch to expand `bb` to `buildbot`. > Tools/BuildSlaveSupport/ews-app/ews/models/patch.py:54 > _log.info('Saved patch in database, id: {}'.format(patchid)) Where does `_log` come from? Is there default Django logging when things save to the DB that we can leverage?
Aakash Jain
Comment 4 2018-11-26 16:34:13 PST
> Ditto from the other patch to expand `bb` to `buildbot`. Will expand bb to buildbot. > Where does `_log` come from? Is there default Django logging when things save to the DB that we can leverage? Using the python logging. Beginning of this file has: _log = logging.getLogger(__name__)
Aakash Jain
Comment 5 2018-11-26 16:49:21 PST
Radar WebKit Bug Importer
Comment 6 2018-11-26 16:50:51 PST
Note You need to log in before you can comment on or make changes to this bug.