RESOLVED FIXED176125
Add initSyncers method in BuildbotTriggerable
https://bugs.webkit.org/show_bug.cgi?id=176125
Summary Add initSyncers method in BuildbotTriggerable
Aakash Jain
Reported 2017-08-30 14:25:34 PDT
This is part of changes for https://bugs.webkit.org/show_bug.cgi?id=175969. We should create a separate initSyncers() method in BuildbotTriggerable, which would initialize all BuildbotSyncer. This method could later be updated to support Buildbot 0.9.
Attachments
Proposed patch (17.40 KB, patch)
2017-08-30 14:32 PDT, Aakash Jain
rniwa: review+
Patch for landing (16.34 KB, patch)
2017-09-06 15:56 PDT, Aakash Jain
no flags
Aakash Jain
Comment 1 2017-08-30 14:32:09 PDT
Created attachment 319404 [details] Proposed patch
Ryosuke Niwa
Comment 2 2017-09-05 00:56:50 PDT
Comment on attachment 319404 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=319404&action=review > Websites/perf.webkit.org/server-tests/tools-buildbot-triggerable-tests.js:40 > + syncPromise = triggerable.initSyncers().then(() => { > + return triggerable.syncOnce(); > + }); Please just do: triggerable.initSyncers().then(() => triggerable.syncOnce()) here and elsewhere. There's no need in adding the boilerplate of { return ~ }. > Websites/perf.webkit.org/tools/js/buildbot-triggerable.js:35 > + return new Promise((resolve, reject) => { > + this._syncers = BuildbotSyncer._loadConfig(this._buildbotRemote, this._config); > + resolve(); > + }); This would resolve the promise right away. In order to test your change, we need to do something like: setTimeout(resolve, 0); or: Promise.resolve().then(() => this._syncers = BuildbotSyncer._loadConfig(this._buildbotRemote, this._config))
Ryosuke Niwa
Comment 3 2017-09-05 00:57:07 PDT
Comment on attachment 319404 [details] Proposed patch r=me provided those two issues are addressed.
Aakash Jain
Comment 4 2017-09-06 15:56:48 PDT
Created attachment 320071 [details] Patch for landing
WebKit Commit Bot
Comment 5 2017-09-06 21:23:38 PDT
Comment on attachment 320071 [details] Patch for landing Clearing flags on attachment: 320071 Committed r221717: <http://trac.webkit.org/changeset/221717>
WebKit Commit Bot
Comment 6 2017-09-06 21:23:39 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2017-09-27 12:48:07 PDT
Note You need to log in before you can comment on or make changes to this bug.