<?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>212622</bug_id>
          
          <creation_ts>2020-06-01 18:30:19 -0700</creation_ts>
          <short_desc>REGRESSION(r217572): run-webkit-tests should abort if the TCP ports for the servers are already in use.</short_desc>
          <delta_ts>2020-07-24 09:58:05 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=182360</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=172176</see_also>
          <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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>ap</cc>
    
    <cc>cgarcia</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>gsnedders</cc>
    
    <cc>jbedard</cc>
    
    <cc>jonlee</cc>
    
    <cc>lforschler</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>slewis</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1658148</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-06-01 18:30:19 -0700</bug_when>
    <thetext>It seems run-webkit-tests not longer (since r217572) aborts if there is any other process (for example, from other user) already listening on the TCP port the http/websocket/wpt helper servers needs.

If the TCP port is already listening it simply assumes those servers are already running (perhaps from a previous run-webkit-test iteration).

This can cause hard-to-diagnose problems, for example if the user is running other service than the webkit-test servers on this ports.

I think it should abort if it can&apos;t start itself the server on the designed TCP port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1658151</commentid>
    <comment_count>1</comment_count>
      <attachid>400776</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-06-01 18:46:00 -0700</bug_when>
    <thetext>Created attachment 400776
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1658410</commentid>
    <comment_count>2</comment_count>
      <attachid>400776</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-06-02 12:04:37 -0700</bug_when>
    <thetext>Comment on attachment 400776
Patch

I&apos;m not against this, but I&apos;m curious what people who make more use of these servers than myself things. Does Youenn have an opinion?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1658640</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2020-06-03 00:20:31 -0700</bug_when>
    <thetext>I sometimes have the HTTP servers up and running so that I can debug in a browser. I find it useful that WTR can run in parallel.

But I can see why this could cause issues.
@Carlos, can you detail a bit the problems you encountered?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1658680</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-06-03 07:07:33 -0700</bug_when>
    <thetext>Another possibility is that we save a sort of status file (much like Postgres does) so we can keep track of our own web servers, but not generic ones running on the same ports.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1658693</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-06-03 08:12:51 -0700</bug_when>
    <thetext>(In reply to youenn fablet from comment #3)
&gt; @Carlos, can you detail a bit the problems you encountered?

We have some shared remote servers for building, developing and testing and I found random timeouts and failures when running WebKit layout tests on them. Investigating the issue, I found that it was because I was running the layout tests at the same time than other mate.
Previously if this situation happened, run-webkit-tests aborted with a loud warning (so it was easy to spot the issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1658752</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2020-06-03 09:51:40 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #5)
&gt; (In reply to youenn fablet from comment #3)
&gt; &gt; @Carlos, can you detail a bit the problems you encountered?
&gt; 
&gt; We have some shared remote servers for building, developing and testing and
&gt; I found random timeouts and failures when running WebKit layout tests on
&gt; them. Investigating the issue, I found that it was because I was running the
&gt; layout tests at the same time than other mate.
&gt; Previously if this situation happened, run-webkit-tests aborted with a loud
&gt; warning (so it was easy to spot the issue).

I see, so multiple checkouts but a single server actually running.
Would a console message warning stating that servers are already running be sufficient?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1658765</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-06-03 10:16:34 -0700</bug_when>
    <thetext>(In reply to youenn fablet from comment #6)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #5)
&gt; &gt; (In reply to youenn fablet from comment #3)
&gt; &gt; &gt; @Carlos, can you detail a bit the problems you encountered?
&gt; &gt; 
&gt; &gt; We have some shared remote servers for building, developing and testing and
&gt; &gt; I found random timeouts and failures when running WebKit layout tests on
&gt; &gt; them. Investigating the issue, I found that it was because I was running the
&gt; &gt; layout tests at the same time than other mate.
&gt; &gt; Previously if this situation happened, run-webkit-tests aborted with a loud
&gt; &gt; warning (so it was easy to spot the issue).
&gt; 
&gt; I see, so multiple checkouts but a single server actually running.
&gt; Would a console message warning stating that servers are already running be
&gt; sufficient?

Yes, I guess it will be sufficient.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>400776</attachid>
            <date>2020-06-01 18:46:00 -0700</date>
            <delta_ts>2020-06-01 18:46:00 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-212622-20200602034559.patch</filename>
            <type>text/plain</type>
            <size>2857</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjYyNDA0CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggMTI0NzUxMjY0YjA2M2U1NTE2MWY4MmExMDBlN2YwZTlj
OTkyZjI4NC4uZmZlNTFkZWJhNWU4YjZjNzc2NDlmMjliNDBjZWQ0OGYzOWFiNjU3OSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5
IEBACisyMDIwLTA2LTAxICBDYXJsb3MgQWxiZXJ0byBMb3BleiBQZXJleiAgPGNsb3BlekBpZ2Fs
aWEuY29tPgorCisgICAgICAgIFJFR1JFU1NJT04ocjIxNzU3Mik6IHJ1bi13ZWJraXQtdGVzdHMg
c2hvdWxkIGFib3J0IGlmIHRoZSBUQ1AgcG9ydHMgZm9yIHRoZSBzZXJ2ZXJzIGFyZSBhbHJlYWR5
IGluIHVzZS4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTIxMjYyMgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IElmIHdlIGhhdmVuJ3Qgc3RhcnRlZCB0aGUgc2VydmVycyB0aGVuIGVuc3VyZSB0aGF0IHdlIGRv
IGl0IChhcyBjdXJyZW50bHkKKyAgICAgICAgd2Ugd2VyZSBza2lwcGluZyBzdGFyd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fcnVubmluZygpOgorICAgICAgICBpZiBzZWxm
Ll9uZWVkc193ZWJzb2NrZXRzIGFuZCBub3Qgc2VsZi5fZGlkX3N0YXJ0X3dlYnNvY2tldF9zZXJ2
ZXI6CiAgICAgICAgICAgICBzZWxmLl9wcmludGVyLndyaXRlX3VwZGF0ZSgnU3RhcnRpbmcgV2Vi
U29ja2V0IHNlcnZlciAuLi4nKQogICAgICAgICAgICAgc2VsZi5fcG9ydC5zdGFydF93ZWJzb2Nr
ZXRfc2VydmVyKCkKICAgICAgICAgICAgIHNlbGYuX2RpZF9zdGFydF93ZWJzb2NrZXRfc2VydmVy
ID0gVHJ1ZQotICAgICAgICBpZiBzZWxmLl9uZWVkc193ZWJfcGxhdGZvcm1fdGVzdF9zZXJ2ZXIg
YW5kIG5vdCBzZWxmLl9kaWRfc3RhcnRfd3B0X3NlcnZlciBhbmQgbm90IHNlbGYuX3BvcnQuaXNf
d3B0X3NlcnZlcl9ydW5uaW5nKCk6CisgICAgICAgIGlmIHNlbGYuX25lZWRzX3dlYl9wbGF0Zm9y
bV90ZXN0X3NlcnZlciBhbmQgbm90IHNlbGYuX2RpZF9zdGFydF93cHRfc2VydmVyOgogICAgICAg
ICAgICAgc2VsZi5fcHJpbnRlci53cml0ZV91cGRhdGUoJ1N0YXJ0aW5nIFdlYiBQbGF0Zm9ybSBU
ZXN0IHNlcnZlciAuLi4nKQogICAgICAgICAgICAgc2VsZi5fcG9ydC5zdGFydF93ZWJfcGxhdGZv
cm1fdGVzdF9zZXJ2ZXIoKQogICAgICAgICAgICAgc2VsZi5fZGlkX3N0YXJ0X3dwdF9zZXJ2ZXIg
PSBUcnVlCg==
</data>
<flag name="review"
          id="416172"
          type_id="1"
          status="?"
          setter="clopez"
    />
          </attachment>
      

    </bug>

</bugzilla>