Bug 235161

Summary: [EWS] Load contributors from stand-alone class
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=234847
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Jonathan Bedard
Reported 2022-01-12 15:39:08 PST
Loading contributors.json is something other steps may also with to do (namely, ValidateChange). We should break off contributors.json parsing into it's own class.
Attachments
Patch (10.12 KB, patch)
2022-01-12 15:49 PST, Jonathan Bedard
no flags
Patch (10.03 KB, patch)
2022-01-12 15:59 PST, Jonathan Bedard
no flags
Patch (9.98 KB, patch)
2022-01-13 06:37 PST, Jonathan Bedard
no flags
Radar WebKit Bug Importer
Comment 1 2022-01-12 15:39:27 PST
Jonathan Bedard
Comment 2 2022-01-12 15:40:03 PST
Jonathan Bedard
Comment 3 2022-01-12 15:48:42 PST
(In reply to Jonathan Bedard from comment #2) > Pull-request: https://github.com/WebKit/WebKit/pull/70 Posted on the wrong bug, https://github.com/WebKit/WebKit/pull/71 is actually the PR for this bug
Jonathan Bedard
Comment 4 2022-01-12 15:49:34 PST
Jonathan Bedard
Comment 5 2022-01-12 15:59:14 PST
Aakash Jain
Comment 6 2022-01-12 17:39:47 PST
Comment on attachment 449011 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449011&action=review This re-organization seems fine, just need to be careful in subsequent patches how exactly we use it, especially what we display to our users. Also left few comments. > Tools/CISupport/ews-build/steps.py:139 > + printable='{} <{}>'.format(name, emails[0].lower()), let's skip this printable from this patch, and add it in subsequent patch when we implement the exact use-case. > Tools/CISupport/ews-build/steps.py:141 > + email=emails[0], Do we need to store name here? > Tools/CISupport/ews-build/steps.py:1016 > + def __init__(self, *args, **kwargs): Let's skip init and just have 'contributors = {}' as a class variable (as it was before)
Jonathan Bedard
Comment 7 2022-01-13 06:29:41 PST
Comment on attachment 449011 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449011&action=review >> Tools/CISupport/ews-build/steps.py:139 >> + printable='{} <{}>'.format(name, emails[0].lower()), > > let's skip this printable from this patch, and add it in subsequent patch when we implement the exact use-case. Sounds good! >> Tools/CISupport/ews-build/steps.py:141 >> + email=emails[0], > > Do we need to store name here? The other mapping is from email -> name/status. We're going to need username -> email/name/status
Jonathan Bedard
Comment 8 2022-01-13 06:37:33 PST
Jonathan Bedard
Comment 9 2022-01-13 07:24:06 PST
Aakash Jain
Comment 10 2022-01-14 04:08:32 PST
(In reply to Jonathan Bedard from comment #9) > Landed 246007@main (r287978) + email=emails[0], Please check if we should use emails[0].lower() similar to how we use for bugzilla email. There are some emails in contributors.json which use mixed case.
Note You need to log in before you can comment on or make changes to this bug.