<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>187058</bug_id>
          
          <creation_ts>2018-06-26 11:57:04 -0700</creation_ts>
          <short_desc>Malformed contributors.json should not cause webkit-patch apply-attachment to fail; breaks EWS</short_desc>
          <delta_ts>2022-11-17 08:33:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Bates">dbates</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>dean_johnson</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1436608</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-06-26 11:57:04 -0700</bug_when>
    <thetext>The command &quot;webkit-patch apply-attachment&quot; fails when the file &lt;https://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json&gt; is malformed. Because the EWS bots use &quot;webkit-patch apply-attachment&quot; 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 &lt;https://trac.webkit.org/changeset/233209/&gt;. 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 &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.webkit.org&apos;, &apos;--bot-id=ews104&apos;, &apos;apply-attachment&apos;, &apos;--no-update&apos;, &apos;--non-interactive&apos;, 343619, &apos;--port=mac-wk2&apos;]&quot; 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)
]]
&lt;https://webkit-queues.webkit.org/results/8349480&gt;

For completeness, the syntax of contributors.json was corrected in &lt;https://trac.webkit.org/changeset/233211/&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913183</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-17 08:33:08 -0800</bug_when>
    <thetext>Is this an issue as of today or this can be marked as resolved? Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>