<?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>220794</bug_id>
          
          <creation_ts>2021-01-21 06:36:47 -0800</creation_ts>
          <short_desc>run-jsc-stress-tests doesn&apos;t handle dead remotes in detectFailures</short_desc>
          <delta_ts>2021-05-24 01:56:43 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>225803</dup_id>
          
          <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="Angelos Oikonomopoulos">angelos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>angelos</cc>
    
    <cc>clopez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1721148</commentid>
    <comment_count>0</comment_count>
    <who name="Angelos Oikonomopoulos">angelos</who>
    <bug_when>2021-01-21 06:36:47 -0800</bug_when>
    <thetext>When a remote board goes away while run-jsc-stress tests is running, the --gnu-parallel-runner reschedules the tests properly, but detectFailures can fail in a number of ways:

- if the board is down when detectFailures runs, it&apos;ll fail the whole test run after getting a connection error
- if the board has come up again, there&apos;s no guarantee that the failure files are still there. In fact, the mips boards will recreate the R/W filesystem if fsck detects any errors on boot, which means that all the machinery in the remoteDirectory isn&apos;t there anymore.

One way to handle this case would be to also restart jobs for which we weren&apos;t able to get the PASS/FAIL status. Perhaps by including the fetch in the command invocation, so that GNU parallel will transparently handle this for us -- guess this means we need to move away from detectFailures on --gnu-parallel-runner.

Note that detectFailures is fundamentally flawed in any case: it should be actively confirming that the job finished successfully, not relying on the absence of a &apos;failure&apos; file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1723363</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-01-28 06:37:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/73706786&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763064</commentid>
    <comment_count>2</comment_count>
    <who name="Angelos Oikonomopoulos">angelos</who>
    <bug_when>2021-05-24 01:56:13 -0700</bug_when>
    <thetext>(In reply to Angelos Oikonomopoulos from comment #0)
&gt; When a remote board goes away while run-jsc-stress tests is running, the
&gt; --gnu-parallel-runner reschedules the tests properly, but detectFailures can
&gt; fail in a number of ways:
&gt; 
&gt; - if the board is down when detectFailures runs, it&apos;ll fail the whole test
&gt; run after getting a connection error
&gt; - if the board has come up again, there&apos;s no guarantee that the failure
&gt; files are still there. In fact, the mips boards will recreate the R/W
&gt; filesystem if fsck detects any errors on boot, which means that all the
&gt; machinery in the remoteDirectory isn&apos;t there anymore.
&gt; 
&gt; One way to handle this case would be to also restart jobs for which we
&gt; weren&apos;t able to get the PASS/FAIL status. Perhaps by including the fetch in
&gt; the command invocation, so that GNU parallel will transparently handle this
&gt; for us -- guess this means we need to move away from detectFailures on
&gt; --gnu-parallel-runner.
&gt; 
&gt; Note that detectFailures is fundamentally flawed in any case: it should be
&gt; actively confirming that the job finished successfully, not relying on the
&gt; absence of a &apos;failure&apos; file.

This has been partly taken care of in https://bugs.webkit.org/show_bug.cgi?id=222601 (don&apos;t be so optimistic in detecting failures). Building on this, https://bugs.webkit.org/show_bug.cgi?id=225803 implements a retry loop within run-jsc-stress-tests. Closing this bug in favor of 225803.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763065</commentid>
    <comment_count>3</comment_count>
    <who name="Angelos Oikonomopoulos">angelos</who>
    <bug_when>2021-05-24 01:56:43 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 225803 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>