<?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>193547</bug_id>
          
          <creation_ts>2019-01-17 12:11:33 -0800</creation_ts>
          <short_desc>[ews-build] validate-patch should handle the case when bug_id is None</short_desc>
          <delta_ts>2019-01-17 13:34:12 -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>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1495586</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-01-17 12:11:33 -0800</bug_when>
    <thetext>If bug_id is None for any reason (e.g.: EWS web-app did not passed bug_id to buildbot), it should be handled properly. Note that EWS doesn&apos;t need bug_id to process the patch, it is needed only to validate if the bug is still open or already closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1495589</commentid>
    <comment_count>1</comment_count>
      <attachid>359403</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-01-17 12:17:20 -0800</bug_when>
    <thetext>Created attachment 359403
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1495608</commentid>
    <comment_count>2</comment_count>
      <attachid>359403</attachid>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-01-17 12:57:32 -0800</bug_when>
    <thetext>Comment on attachment 359403
Proposed patch

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

r=me with typo fix.

&gt; Tools/ChangeLog:10
&gt; +        (ValidatePatch.start): If bug_id is set as None in build propeties, fetch it from the patch.

typo: properties</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1495610</commentid>
    <comment_count>3</comment_count>
      <attachid>359403</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-01-17 13:03:17 -0800</bug_when>
    <thetext>Comment on attachment 359403
Proposed patch

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

&gt; Tools/BuildSlaveSupport/ews-build/steps.py:334
&gt; +        bug_id = self.getProperty(&apos;bug_id&apos;, &apos;&apos;) or self.get_bug_id_from_patch(patch_id)

Is self.get_bug_id_from_patch(patch_id) a network operation? That&apos;s the only reason I can think to change this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1495616</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-01-17 13:13:13 -0800</bug_when>
    <thetext>&gt; Is self.get_bug_id_from_patch(patch_id) a network operation?
Yes, it is a network operation. It fetches the patch using bugzilla REST API and reads bug id from it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1495633</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-01-17 13:28:48 -0800</bug_when>
    <thetext>Committed r240128: &lt;https://trac.webkit.org/changeset/240128&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1495634</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-17 13:29:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/47362136&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>359403</attachid>
            <date>2019-01-17 12:17:20 -0800</date>
            <delta_ts>2019-01-17 13:34:12 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>ews-build-bugid-None.patch</filename>
            <type>text/plain</type>
            <size>1864</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI0MDEyMikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE5LTAxLTE3ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBbZXdzLWJ1aWxkXSB2YWxpZGF0ZS1wYXRjaCBzaG91bGQgaGFuZGxlIHRo
ZSBjYXNlIHdoZW4gYnVnX2lkIGlzIE5vbmUKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTE5MzU0NworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgICogQnVpbGRTbGF2ZVN1cHBvcnQvZXdzLWJ1aWxkL3N0ZXBzLnB5
OgorICAgICAgICAoVmFsaWRhdGVQYXRjaC5faXNfYnVnX2Nsb3NlZCk6IEdyYWNlZnVsbHkgaGFu
ZGxlIHRoZSBjYXNlIHdoZW4gYnVnX2lkIGlzIE5vbmUuCisgICAgICAgIChWYWxpZGF0ZVBh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G9yIG5vdCBidWdfanNvbi5nZXQoJ3N0YXR1cycpOgogICAgICAgICAgICAgc2VsZi5f
YWRkVG9Mb2coJ3N0ZGlvJywgJ1VuYWJsZSB0byBmZXRjaCBidWcge30uXG4nLmZvcm1hdChidWdf
aWQpKQpAQCAtMzI3LDcgKzMzMSw3IEBAIGNsYXNzIFZhbGlkYXRlUGF0Y2goYnVpbGRzdGVwLkJ1
aWxkU3RlcCkKICAgICAgICAgICAgIHNlbGYuZmluaXNoZWQoRkFJTFVSRSkKICAgICAgICAgICAg
IHJldHVybiBOb25lCiAKLSAgICAgICAgYnVnX2lkID0gc2VsZi5nZXRQcm9wZXJ0eSgnYnVnX2lk
Jywgc2VsZi5nZXRfYnVnX2lkX2Zyb21fcGF0Y2gocGF0Y2hfaWQpKQorICAgICAgICBidWdfaWQg
PSBzZWxmLmdldFByb3BlcnR5KCdidWdfaWQnLCAnJykgb3Igc2VsZi5nZXRfYnVnX2lkX2Zyb21f
cGF0Y2gocGF0Y2hfaWQpCiAKICAgICAgICAgYnVnX2Nsb3NlZCA9IHNlbGYuX2lzX2J1Z19jbG9z
ZWQoYnVnX2lkKQogICAgICAgICBpZiBidWdfY2xvc2VkID09IDE6Cg==
</data>
<flag name="review"
          id="376173"
          type_id="1"
          status="+"
          setter="lforschler"
    />
          </attachment>
      

    </bug>

</bugzilla>