<?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>83226</bug_id>
          
          <creation_ts>2012-04-04 15:12:16 -0700</creation_ts>
          <short_desc>build-webkit | filter-build-webkit returns success even when build-webkit fails</short_desc>
          <delta_ts>2016-01-06 10:26:39 -0800</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=67523</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>
          <dependson>70080</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>bburg</cc>
    
    <cc>dino</cc>
    
    <cc>joepeck</cc>
    
    <cc>ojan</cc>
    
    <cc>zoltan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>596004</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-04 15:12:16 -0700</bug_when>
    <thetext>build-webkit | filter-build-webkit returns success even when build-webkit fails

Fixing this would make my life easier. :)  I would like to be able to use:

build-webkit | filter-build-webkit &amp;&amp; run-webkit-tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>596005</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-04 15:12:29 -0700</bug_when>
    <thetext>Hmm... Looks like bug 70080 attempted this before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>596006</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-04 15:12:47 -0700</bug_when>
    <thetext>Another solution would be to just integrate filter-build-webkit into build-webkit :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>596011</commentid>
    <comment_count>3</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2012-04-04 15:13:45 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Another solution would be to just integrate filter-build-webkit into build-webkit :)

Yeah. Pass --filter-build or something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>596015</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-04-04 15:17:35 -0700</bug_when>
    <thetext>mdelany doesn&apos;t seem to have a bugzilla account or I would have CC&apos;d him. :)
http://trac.webkit.org/log/trunk/Tools/Scripts/filter-build-webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153076</commentid>
    <comment_count>5</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-01-06 10:26:39 -0800</bug_when>
    <thetext>There is nothing that we can change in filter-build-webkit (a perl script) to get the exit status from an earlier command in the pipeline.

There are two ways to get this behavior without changing any scripts:

1. In bash, use cmd1 |&amp; cmd2 (shortcut for cmd1 2&gt;&amp;1 | cmd2). Then the BUILD FAILED detection will work.
2. In bash, run &apos;set -o pipefail&apos;. This uses the leftmost non-zero return code from a pipeline rather than the rightmost program.

In the future, build-webkit should incorporate filter-build-webkit. If filter-build-webkit were running build commands, then it could capture and propagate the exit codes from its child processes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>