Summary: | BuildbotBuildEntry for buildbot 0.9 uses incorrect buildrequestid | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Aakash Jain <aakash_jain> | ||||||||
Component: | Tools / Tests | Assignee: | Aakash Jain <aakash_jain> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | aakash_jain, ap, commit-queue, dean_johnson, dewei_zhu, lforschler, rniwa, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | Other | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 175969 | ||||||||||
Attachments: |
|
Description
Aakash Jain
2018-02-27 19:13:53 PST
The issue is with pending build-requests. Buildbot API for buildrequests doesn't provide properties. We need to figure out a solution to that first. > The issue is with pending build-requests. Buildbot API for buildrequests doesn't provide properties. We need to figure out a solution to that first. Buildbot API now provides the properties for build-requests after the fix in https://github.com/buildbot/buildbot/pull/3976 Created attachment 334982 [details]
Patch - WIP
Created attachment 335060 [details]
Proposed patch
Tested using unit-test. Will test by running syncing scripts as well. Please review meanwhile.
Comment on attachment 335060 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=335060&action=review > Websites/perf.webkit.org/tools/js/buildbot-syncer.js:24 > + this._buildRequestId = rawData['properties'] && rawData['properties'][syncer._buildRequestPropertyName] ? > + rawData['properties'][syncer._buildRequestPropertyName][0] : null; Nit: Wrong indentation. '?' should be on line 24, and '?' should appear exactly 4 spaces to the right of this._buildRequestId. Created attachment 335468 [details]
Patch for landing
Also passed workerName parameter to samplePendingBuildRequestData, instead of hard-coding worker name inside this sample data. This matches with samplePendingBuildRequestDeprecated.
Committed r229489: <https://trac.webkit.org/changeset/229489> |