<?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>180303</bug_id>
          
          <creation_ts>2017-12-01 18:20:48 -0800</creation_ts>
          <short_desc>Add docstring in EarlyWarningSystemTask to explain return values</short_desc>
          <delta_ts>2017-12-04 16:06:40 -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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Aakash Jain">aakash_jain</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>dbates</cc>
    
    <cc>dean_johnson</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1377207</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-12-01 18:20:48 -0800</bug_when>
    <thetext>EarlyWarningSystemTask run() method has return value which are slightly non-intuitive. False does not indicate that patch failed EWS, it indicates that EWS is not sure. Patch failure is indicated by an exception. We should document these values in order to avoid confusion.

Having this comment could have prevented https://bugs.webkit.org/show_bug.cgi?id=180302</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377208</commentid>
    <comment_count>1</comment_count>
      <attachid>328202</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-12-01 18:23:59 -0800</bug_when>
    <thetext>Created attachment 328202
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377234</commentid>
    <comment_count>2</comment_count>
      <attachid>328202</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-12-01 21:52:46 -0800</bug_when>
    <thetext>Comment on attachment 328202
Proposed patch

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

&gt; Tools/Scripts/webkitpy/tool/bot/earlywarningsystemtask.py:61
&gt; +        &quot;&quot;&quot;

Could named constants help make this clearer And let us simplify this comment to just explain that an exception indicates patch failure (e.g. RETRY = False, PASS =&gt; True)?

If you have your heart set on this comment then “would be”  =&gt; “will be”. Also does the formatting of this docstring match the formatting of other docstrings that explain return values and/or exceptions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377971</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-12-04 16:05:05 -0800</bug_when>
    <thetext>Committed r225500: &lt;https://trac.webkit.org/changeset/225500&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377975</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-12-04 16:06:40 -0800</bug_when>
    <thetext>&lt;rdar://problem/35842175&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>328202</attachid>
            <date>2017-12-01 18:23:59 -0800</date>
            <delta_ts>2017-12-04 16:05:32 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>webkitpy_earlywarningsystemtask_docstring.patch</filename>
            <type>text/plain</type>
            <size>1369</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIyNTQ0MCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE3LTEyLTAxICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBBZGQgZG9jc3RyaW5nIGluIEVhcmx5V2FybmluZ1N5c3RlbVRhc2sgdG8g
ZXhwbGFpbiByZXR1cm4gdmFsdWVzCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD0xODAzMDMKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMh
KS4KKworICAgICAgICAqIFNjcmlwdHMvd2Via2l0cHkvdG9vbC9ib3QvZWFybHl3YXJuaW5nc3lz
dGVtdGFzay5weToKKyAgICAgICAgKEVhcmx5V2FybmluZ1N5c3RlbVRhc2sucnVuKTogQWRkZWQg
ZG9jc3RyaW5nIHRvIGV4cGxhaW4gcmV0dXJuIHZhbHVlcy4KKwogMjAxNy0xMi0wMSAgRGV3ZWkg
Wmh1ICA8ZGV3ZWlfemh1QGFwcGxlLmNvbT4KIAogICAgICAgICBIYXJkY29kZWQgcHl0aG9uIHBh
dGggaXMgbm90IGNvbXBhdGlibGUgd2l0aCB2aXJ0dWFsIGVudmlyb25tZW50LgpJbmRleDogVG9v
bHMvU2NyaXB0cy93ZWJraXRweS90b29sL2JvdC9lYXJseXdhcm5pbmdzeXN0ZW10YXNrLnB5Cj09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0KLS0tIFRvb2xzL1NjcmlwdHMvd2Via2l0cHkvdG9vbC9ib3QvZWFybHl3YXJuaW5n
c3lzdGVtdGFzay5weQkocmV2aXNpb24gMjI1NDQwKQorKysgVG9vbHMvU2NyaXB0cy93ZWJraXRw
eS90b29sL2JvdC9lYXJseXdhcm5pbmdzeXN0ZW10YXNrLnB5CSh3b3JraW5nIGNvcHkpCkBAIC01
NCw2ICs1NCwxMSBAQCBjbGFzcyBFYXJseVdhcm5pbmdTeXN0ZW1UYXNrKFBhdGNoQW5hbHlzCiAg
ICAgICAgIHJldHVybiBUcnVlCiAKICAgICBkZWYgcnVuKHNlbGYpOgorICAgICAgICAiIiIKKyAg
ICAgICAgcmV0dXJucyBUcnVlOiBwYXRjaCBwYXNzZXMgRVdTLgorICAgICAgICByZXR1cm5zIEZh
bHNlOiBwYXRjaCBzdGF0dXMgY2FuIG5vdCBiZSBkZXRlcm1pbmVkIGZvciBzdXJlLiBQYXRjaCB3
b3VsZCBiZSByZS10cmllZCBieSBhbm90aGVyIGJvdC4KKyAgICAgICAgZXhjZXB0aW9uOiBwYXRj
aCBmYWlscyBFV1MuCisgICAgICAgICIiIgogICAgICAgICBpZiBub3Qgc2VsZi5fY2xlYW4oKToK
ICAgICAgICAgICAgIHJldHVybiBGYWxzZQogICAgICAgICBpZiBub3Qgc2VsZi5fdXBkYXRlKCk6
Cg==
</data>
<flag name="review"
          id="347399"
          type_id="1"
          status="+"
          setter="dbates"
    />
          </attachment>
      

    </bug>

</bugzilla>