<?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>213609</bug_id>
          
          <creation_ts>2020-06-25 09:21:06 -0700</creation_ts>
          <short_desc>[ews] Improve handling of invalid changelog</short_desc>
          <delta_ts>2020-07-16 08:07:32 -0700</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 Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=214365</see_also>
          <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>ap</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>rackler</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1666063</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-06-25 09:21:06 -0700</bug_when>
    <thetext>[ews] Improve handling of invalid changelog.

In https://ews-build.webkit.org/#/builders/28/builds/2949 7  validate-changelog-and-reviewer step failed with below exception because ChangeLog was invalid (started with :wq). Such issue solved be handled in a better manner, and a user readable error message should be displayed.

Traceback (most recent call last):
  File &quot;Tools/Scripts/webkit-patch&quot;, line 80, in &lt;module&gt;
    main()
  File &quot;Tools/Scripts/webkit-patch&quot;, line 75, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File &quot;/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py&quot;, line 55, in execute
    self._sequence.run_and_handle_errors(tool, options, state)
  File &quot;/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 73, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 67, in _run
    step(tool, options).run(state)
  File &quot;/Volumes/Data/worker/Commit-Queue/build/Tools/Scripts/webkitpy/tool/steps/validatereviewer.py&quot;, line 53, in run
    if changelog_entry.has_valid_reviewer():
AttributeError: &apos;NoneType&apos; object has no attribute &apos;has_valid_reviewer&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666065</commentid>
    <comment_count>1</comment_count>
      <attachid>402741</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-06-25 09:27:30 -0700</bug_when>
    <thetext>Created attachment 402741
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666066</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-06-25 09:28:11 -0700</bug_when>
    <thetext>&gt; Patch
Speculative fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666070</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-06-25 09:47:31 -0700</bug_when>
    <thetext>Committed r263513: &lt;https://trac.webkit.org/changeset/263513&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666076</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-06-25 10:10:30 -0700</bug_when>
    <thetext>&gt; Committed r263513: &lt;https://trac.webkit.org/changeset/263513&gt;
This change worked as expected, e.g.: https://bugs.webkit.org/show_bug.cgi?id=213602#c3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666302</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-25 17:11:31 -0700</bug_when>
    <thetext>&lt;rdar://problem/64781527&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>402741</attachid>
            <date>2020-06-25 09:27:30 -0700</date>
            <delta_ts>2020-06-25 09:43:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-213609-20200625122729.patch</filename>
            <type>text/plain</type>
            <size>1346</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI2MzUxMSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDIwLTA2LTI1ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBbZXdzXSBJbXByb3ZlIGhhbmRsaW5nIG9mIGludm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KyAgICAgICAgICAgICAgICBfbG9nLmVycm9yKCdJbnZhbGlkIENoYW5n
ZUxvZyBhdCB7fScuZm9ybWF0KGNoYW5nZWxvZ19wYXRoKSkKKyAgICAgICAgICAgICAgICBzeXMu
ZXhpdCgxKQogICAgICAgICAgICAgaWYgY2hhbmdlbG9nX2VudHJ5Lmhhc192YWxpZF9yZXZpZXdl
cigpOgogICAgICAgICAgICAgICAgIGNvbnRpbnVlCiAgICAgICAgICAgICByZXZpZXdlcl90ZXh0
ID0gY2hhbmdlbG9nX2VudHJ5LnJldmlld2VyX3RleHQoKQo=
</data>
<flag name="review"
          id="418166"
          type_id="1"
          status="+"
          setter="jbedard"
    />
          </attachment>
      

    </bug>

</bugzilla>