Bug 217834 - [build.webkit.org] Use feature flag to support Buildbot 2 code
Summary: [build.webkit.org] Use feature flag to support Buildbot 2 code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks: 175056
  Show dependency treegraph
 
Reported: 2020-10-16 10:22 PDT by Aakash Jain
Modified: 2021-02-08 07:37 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.91 KB, patch)
2020-10-16 10:25 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff
Patch (4.95 KB, patch)
2020-10-16 13:28 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2020-10-16 10:22:05 PDT
Use feature flag in build.webkit.org code to support both Buildbot 0.8 as well as Buildbot 2 code. Current code is for Buildbot 0.8. We are planning to update to latest Buildbot (https://bugs.webkit.org/show_bug.cgi?id=175056).
Comment 1 Aakash Jain 2020-10-16 10:25:08 PDT
Created attachment 411595 [details]
Patch
Comment 2 Aakash Jain 2020-10-16 10:37:08 PDT
Tested on uat instance.
Comment 3 Aakash Jain 2020-10-16 13:28:00 PDT
Created attachment 411608 [details]
Patch
Comment 4 Jonathan Bedard 2020-10-16 13:36:22 PDT
Comment on attachment 411608 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=411608&action=review

> Tools/BuildSlaveSupport/build.webkit.org-config/loadConfig.py:161
> +            builder['category'] = category

Weren't we setting the category before? This seems like a change in behavior for the current buildbot.
Comment 5 Aakash Jain 2020-10-16 13:43:45 PDT
Comment on attachment 411608 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=411608&action=review

>> Tools/BuildSlaveSupport/build.webkit.org-config/loadConfig.py:161
>> +            builder['category'] = category
> 
> Weren't we setting the category before? This seems like a change in behavior for the current buildbot.

We were setting builder['category'] before as well. Now we are setting the 'category' variable and later assigning it to builder['category'], but only for old-buildbot-version. There shouldn't be any change in behavior for current buildbot (0.8.6p1).

For new Buildbot version we will be using tags (in subsequent patch). As per http://docs.buildbot.net/latest/relnotes/0.9.0.html#changes-and-removals
"Builders now have “tags” instead of a category. Builders can have multiple tags, allowing more flexible builder displays."
Comment 6 EWS 2020-10-19 11:17:23 PDT
Committed r268674: <https://trac.webkit.org/changeset/268674>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 411608 [details].
Comment 7 Radar WebKit Bug Importer 2020-10-19 11:18:26 PDT
<rdar://problem/70448398>
Comment 8 Aakash Jain 2020-10-20 08:43:36 PDT
(In reply to Aakash Jain from comment #5)
> For new Buildbot version we will be using tags (in subsequent patch).
Adding tags for new Buildbot version in https://bugs.webkit.org/show_bug.cgi?id=217958