RESOLVED FIXED 169701
Fix unit test and bug fix for 'pull-os-versions.js' script.
https://bugs.webkit.org/show_bug.cgi?id=169701
Summary Fix unit test and bug fix for 'pull-os-versions.js' script.
dewei_zhu
Reported 2017-03-15 15:27:06 PDT
Fix unit test and bug fix for 'pull-os-versions.js' script.
Attachments
Patch (4.62 KB, patch)
2017-03-15 15:33 PDT, dewei_zhu
no flags
Patch (4.63 KB, patch)
2017-03-15 22:06 PDT, dewei_zhu
no flags
Patch for landing (5.15 KB, patch)
2017-03-15 22:48 PDT, dewei_zhu
no flags
dewei_zhu
Comment 1 2017-03-15 15:33:34 PDT
Ryosuke Niwa
Comment 2 2017-03-15 21:24:14 PDT
Comment on attachment 304561 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304561&action=review > Websites/perf.webkit.org/ChangeLog:9 > + Fix 'pull-os-versions.js' does not fetch new builds and report. This sentence has two verbs. Fix the bug that 'pull-os-versions.js' does not fetch new builds and report? > Websites/perf.webkit.org/tools/pull-os-versions.js:34 > + return fetchers.reduce((promise, fetcher) => { > + return promise.then(fetcher.fetchAndReportNewBuilds()); > + }, Promise.resolve()); Are you sure you really meant to call chain the promise returned by fetcher.fetchAndReportNewBuilds()? If you want to call each promise in sentience, you need to do: (promise, fetcher) => { return promise.then(() => fetcher.fetchAndReportNewBuilds()); } Perhaps you want to create a new helper function that sequentialize promises?
dewei_zhu
Comment 3 2017-03-15 22:06:46 PDT
Ryosuke Niwa
Comment 4 2017-03-15 22:21:06 PDT
Comment on attachment 304609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304609&action=review > Websites/perf.webkit.org/tools/pull-os-versions.js:33 > + return promise.then(() => {return fetcher.fetchAndReportNewBuilds();}); I think you can just do () => fetcher.fetchAndReportNewBuilds().
dewei_zhu
Comment 5 2017-03-15 22:48:58 PDT
Created attachment 304613 [details] Patch for landing
WebKit Commit Bot
Comment 6 2017-03-15 23:29:06 PDT
Comment on attachment 304613 [details] Patch for landing Clearing flags on attachment: 304613 Committed r214031: <http://trac.webkit.org/changeset/214031>
WebKit Commit Bot
Comment 7 2017-03-15 23:29:11 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.