Bug 187058 - Malformed contributors.json should not cause webkit-patch apply-attachment to fail; breaks EWS
Summary: Malformed contributors.json should not cause webkit-patch apply-attachment to...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-26 11:57 PDT by Daniel Bates
Modified: 2022-11-17 08:33 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2018-06-26 11:57:04 PDT
The command "webkit-patch apply-attachment" fails when the file <https://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json> is malformed. Because the EWS bots use "webkit-patch apply-attachment" they will fail to apply a patch in this case and stop processing of the patch. A malformed contributors.json should not cause this command to fail and more importantly should not cause the EWS to fail a patch. 

I noticed this issue on the EWS following the landing of <https://trac.webkit.org/changeset/233209/>. This changeset contained an erroneous comma that caused contributors.json to be considered malformed JSON. Here is the output seen on EWS:

[[
Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=ews104', 'apply-attachment', '--no-update', '--non-interactive', 343619, '--port=mac-wk2']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

contributors.json is malformed: Expecting property name enclosed in double quotes: line 166 column 4 (char 3586)
]]
<https://webkit-queues.webkit.org/results/8349480>

For completeness, the syntax of contributors.json was corrected in <https://trac.webkit.org/changeset/233211/>.
Comment 1 Ahmad Saleem 2022-11-17 08:33:08 PST
Is this an issue as of today or this can be marked as resolved? Thanks!