<?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>276081</bug_id>
          
          <creation_ts>2024-07-01 11:09:05 -0700</creation_ts>
          <short_desc>run-webkit-tests failing doesn&apos;t fail EWS</short_desc>
          <delta_ts>2025-05-01 11:54:26 -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=275992</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=271808</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=256988</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=277654</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=277682</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=284659</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>
          <dependson>277749</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Sam Sneddon [:gsnedders]">gsnedders</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>angelos</cc>
    
    <cc>ap</cc>
    
    <cc>bfan2</cc>
    
    <cc>fujii</cc>
    
    <cc>pgriffis</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2044007</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-07-01 11:09:05 -0700</bug_when>
    <thetext>c.f. https://github.com/WebKit/WebKit/pull/30272#issuecomment-2198130465

https://ews-build.webkit.org/#/builders/42/builds/30643 shows layout-tests passing, despite the logs containing:

webkitpy.layout_tests.servers.http_server_base.ServerError: WPT Server process exited prematurely with status code 1

We should instead be failing the EWS test job as run-webkit-tests should be exiting with non-zero.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044009</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-01 11:09:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/130908663&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044012</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-07-01 11:34:35 -0700</bug_when>
    <thetext>Looking at the code run-webkit-tests should definitely be exiting with non-zero.

However, the problem here might be the fact that we have logged:

/bin/sh -c &apos;python3 Tools/Scripts/run-webkit-tests --no-build --no-show-results --no-new-test-results --clobber-old-results --release --ios-simulator --results-directory layout-test-results --debug-rwt-logging --exit-after-n-failures 60 --skip-failing-tests --child-processes=5 imported/w3c/web-platform-tests 2&gt;&amp;1 | Tools/Scripts/filter-test-logs layout&apos;
 in dir /Volumes/Data/worker/iOS-17-Simulator-WPT-WK2-Tests-EWS/build (timeout 19800.0 secs)
 watching logfiles {&apos;json&apos;: &apos;layout-test-results/full_results.json&apos;}
 argv: [b&apos;/bin/sh&apos;, b&apos;-c&apos;, b&apos;python3 Tools/Scripts/run-webkit-tests --no-build --no-show-results --no-new-test-results --clobber-old-results --release --ios-simulator --results-directory layout-test-results --debug-rwt-logging --exit-after-n-failures 60 --skip-failing-tests --child-processes=5 imported/w3c/web-platform-tests 2&gt;&amp;1 | Tools/Scripts/filter-test-logs layout&apos;]
 using PTY: False
program finished with exit code 0
elapsedTime=25.727919

Because we&apos;re running a sub-shell, we&apos;re actually just getting the exit code of `sh`, and running without `-e`.

This makes this seem like potentially a regression from 279663@main, bug 270651, &quot;Upload layout-test logs to S3&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044367</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-07-02 18:58:13 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30424</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2050773</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-08-05 16:28:14 -0700</bug_when>
    <thetext>I&apos;d held off from landing this because I was a bit concerned that Bug 277654 would mean this wouldn&apos;t have actually fixed the original bug, but it would, so I guess we land that and treat that as a separate issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2050810</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-05 18:56:00 -0700</bug_when>
    <thetext>Committed 281869@main (44f912123399): &lt;https://commits.webkit.org/281869@main&gt;

Reviewed commits have been landed. Closing PR #30424 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056387</commentid>
    <comment_count>6</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2024-08-29 14:50:24 -0700</bug_when>
    <thetext>*** Bug 277654 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2077171</commentid>
    <comment_count>7</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2024-11-22 15:54:43 -0800</bug_when>
    <thetext>This change was reverted, reopening to reflect that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082044</commentid>
    <comment_count>8</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2024-12-16 08:40:36 -0800</bug_when>
    <thetext>*** Bug 284659 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2109597</commentid>
    <comment_count>9</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-04-07 17:04:44 -0700</bug_when>
    <thetext>(In reply to Angelos Oikonomopoulos from comment #4 on bug 277749)
&gt; We got bitten by this again, with `run-jsc-stress-tests` throwing an
&gt; exception and `filter-test-logs` accidentally eating it up, presumably
&gt; because it relied on `-o pipefail`. I&apos;ve asked internally at Igalia and all
&gt; our buildbots should have `bash` in the PATH. For the post-commit bots could
&gt; we change `remote_command` in `build-webkit-org/steps.py` to use `bash`,
&gt; `-c` instead of `/bin/sh`, `-c`? Would that work on other platforms?

This is probably an acceptable option for now; we probably should longer term try to move back to `sh`, given shells are slowly adding it after its addition in POSIX 2024.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2109672</commentid>
    <comment_count>10</comment_count>
    <who name="Angelos Oikonomopoulos">angelos</who>
    <bug_when>2025-04-08 00:49:35 -0700</bug_when>
    <thetext>Yah, `-o pipefail` is going to be in the version of dash included in the next debian release (to be released in a few months), but I&apos;m not sure when we&apos;ll be able to move to it. I don&apos;t think we want to wait that long to introduce `-o pipefail` anyway, so perhaps we can re-land the above commit with the command set to `bash`?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2110964</commentid>
    <comment_count>11</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-04-14 17:04:37 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/44077</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2114465</commentid>
    <comment_count>12</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-05-01 11:54:24 -0700</bug_when>
    <thetext>Committed 294384@main (afddd6334cd1): &lt;https://commits.webkit.org/294384@main&gt;

Reviewed commits have been landed. Closing PR #44077 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>