<?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>199493</bug_id>
          
          <creation_ts>2019-07-04 05:00:42 -0700</creation_ts>
          <short_desc>[webkitpy] test-webkitpy is broken on Linux since r246662</short_desc>
          <delta_ts>2019-07-08 10:31:18 -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>
          
          
          <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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>aperez</cc>
    
    <cc>ap</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>dean_johnson</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>fujii</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1550204</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-07-04 05:00:42 -0700</bug_when>
    <thetext>Since r246662 test-webkitpy fails on Linux with:

$ Tools/Scripts/test-webkitpy
Traceback (most recent call last):
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/test/main.py&quot;, line 374, in &lt;module&gt;
    sys.exit(main())
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/test/main.py&quot;, line 72, in main
    if not _supports_building_and_running_lldb_tests():
  File &quot;/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/test/main.py&quot;, line 107, in _supports_building_and_running_lldb_tests
    return not _host.platform.build_version().startswith(&apos;19A&apos;)
AttributeError: &apos;NoneType&apos; object has no attribute &apos;startswith&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550205</commentid>
    <comment_count>1</comment_count>
      <attachid>373459</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-07-04 05:03:41 -0700</bug_when>
    <thetext>Created attachment 373459
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550217</commentid>
    <comment_count>2</comment_count>
      <attachid>373459</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-07-04 06:28:51 -0700</bug_when>
    <thetext>Comment on attachment 373459
Patch

Clearing flags on attachment: 373459

Committed r247139: &lt;https://trac.webkit.org/changeset/247139&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550218</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-07-04 06:28:55 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550219</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-07-04 06:29:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/52644428&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550234</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2019-07-04 07:01:38 -0700</bug_when>
    <thetext>*** Bug 199428 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550815</commentid>
    <comment_count>6</comment_count>
      <attachid>373459</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-07-08 08:41:00 -0700</bug_when>
    <thetext>Comment on attachment 373459
Patch

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

&gt; Tools/Scripts/webkitpy/test/main.py:109
&gt; +        return False

Shouldn&apos;t this be true?

I don&apos;t have a Linux build handy at the moment, but I feel like Linux builds should be running lldb tests, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550818</commentid>
    <comment_count>7</comment_count>
      <attachid>373459</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-07-08 08:57:18 -0700</bug_when>
    <thetext>Comment on attachment 373459
Patch

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

&gt;&gt; Tools/Scripts/webkitpy/test/main.py:109
&gt;&gt; +        return False
&gt; 
&gt; Shouldn&apos;t this be true?
&gt; 
&gt; I don&apos;t have a Linux build handy at the moment, but I feel like Linux builds should be running lldb tests, no?

Does lldb even work on Linux?

Even if it does, lldb is not expected to be installed so the tests shouldn&apos;t run automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550822</commentid>
    <comment_count>8</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-07-08 09:02:44 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #7)
&gt; Comment on attachment 373459 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=373459&amp;action=review
&gt; 
&gt; &gt;&gt; Tools/Scripts/webkitpy/test/main.py:109
&gt; &gt;&gt; +        return False
&gt; &gt; 
&gt; &gt; Shouldn&apos;t this be true?
&gt; &gt; 
&gt; &gt; I don&apos;t have a Linux build handy at the moment, but I feel like Linux builds should be running lldb tests, no?
&gt; 
&gt; Does lldb even work on Linux?

Well, lldb has worked on Linux for ages, sometimes I use it
when GDB is having a bad release that has weird C++ demangling
bugs :)

&gt; Even if it does, lldb is not expected to be installed so the tests shouldn&apos;t
&gt; run automatically.

I think it&apos;s okay that they run if lldb is installed. At any
rate, they should be skipped if it is not available, indeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550857</commentid>
    <comment_count>9</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-07-08 10:24:03 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #6)
&gt; Comment on attachment 373459 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=373459&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/webkitpy/test/main.py:109
&gt; &gt; +        return False
&gt; 
&gt; Shouldn&apos;t this be true?
&gt; 
&gt; I don&apos;t have a Linux build handy at the moment, but I feel like Linux builds
&gt; should be running lldb tests, no?

If lldb tests can run in Linux then a proper check for that can be added, and when the requirements are meet (lldb installed, etc) then return true

But this patch just returns False early to avoid calling startswith() over a None value. That is correct IMHO.

In any case I just tried quickly changing that to True and trying to run the lldb tests and I get:

$ Tools/Scripts/build-lldbwebkittester
lldbWebKitTester is currently only supported on Mac.

So, it seems that adding support for running WebKit lldb tests on Linux should be done in a new bug.

By the way, I&apos;m not familiar with this lldb tests. What is the purpose of them?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550861</commentid>
    <comment_count>10</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-07-08 10:31:18 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #9)
&gt; (In reply to Jonathan Bedard from comment #6)
&gt; &gt; Comment on attachment 373459 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; View in context:
&gt; &gt; https://bugs.webkit.org/attachment.cgi?id=373459&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Tools/Scripts/webkitpy/test/main.py:109
&gt; &gt; &gt; +        return False
&gt; &gt; 
&gt; &gt; Shouldn&apos;t this be true?
&gt; &gt; 
&gt; &gt; I don&apos;t have a Linux build handy at the moment, but I feel like Linux builds
&gt; &gt; should be running lldb tests, no?
&gt; 
&gt; If lldb tests can run in Linux then a proper check for that can be added,
&gt; and when the requirements are meet (lldb installed, etc) then return true
&gt; 
&gt; But this patch just returns False early to avoid calling startswith() over a
&gt; None value. That is correct IMHO.
&gt; 
&gt; In any case I just tried quickly changing that to True and trying to run the
&gt; lldb tests and I get:
&gt; 
&gt; $ Tools/Scripts/build-lldbwebkittester
&gt; lldbWebKitTester is currently only supported on Mac.
&gt; 
&gt; So, it seems that adding support for running WebKit lldb tests on Linux
&gt; should be done in a new bug.
&gt; 
&gt; By the way, I&apos;m not familiar with this lldb tests. What is the purpose of
&gt; them?

If lldbWebKitTester is currently only supported on Mac, false is correct.

My recollection is that the lldb tests were added by Dan Bates some time ago so that WebKit stopped breaking lldb debugging, but it&apos;s been awhile, so I&apos;m not 100% certain of the original motivation.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>373459</attachid>
            <date>2019-07-04 05:03:41 -0700</date>
            <delta_ts>2019-07-04 06:28:51 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-199493-20190704140340.patch</filename>
            <type>text/plain</type>
            <size>1492</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQ3MTM4CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNmM2ZTY4OTdjZTdkNWExODdlY2I4NjgwMmQyOTI1MDdm
YjY1YzRiOC4uMDBjZDAxOWY0ZjkwNTAwM2M2NWU2OTQ5ZTZlNjk1Y2U0YzE2N2FjYyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2h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