<?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>250623</bug_id>
          
          <creation_ts>2023-01-14 09:13:37 -0800</creation_ts>
          <short_desc>[EWS] clean-up-git-repo step tries to delete invalid branches</short_desc>
          <delta_ts>2023-08-21 09:21: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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=251211</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1925580</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-01-14 09:13:37 -0800</bug_when>
    <thetext>[EWS] clean-up-git-repo step tries to delete invalid branches:

```
/bin/sh -c &apos;git branch | grep -v &apos;&quot;&apos;&quot;&apos; main$&apos;&quot;&apos;&quot;&apos; | xargs git branch -D || true&apos;
 in dir /Volumes/Data/worker/iOS-16-Build-EWS/build (timeout 300 secs)
 watching logfiles {}
 argv: [b&apos;/bin/sh&apos;, b&apos;-c&apos;, b&quot;git branch | grep -v &apos; main$&apos; | xargs git branch -D || true&quot;]
 using PTY: False
error: branch &apos;*&apos; not found.
error: branch &apos;(HEAD&apos; not found.
error: branch &apos;detached&apos; not found.
error: branch &apos;at&apos; not found.
error: branch &apos;origin/main)&apos; not found.
Deleted branch fix171805-svg-textLength (was 78a3a1afebe9).
program finished with exit code 0
elapsedTime=0.099196
```

Example:  &lt;https://ews-build.webkit.org/#/builders/77/builds/12461&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925581</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-01-14 09:14:26 -0800</bug_when>
    <thetext>Maybe the step should do something like `git checkout main` first before running this command?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927125</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-21 10:08:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/104512536&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972282</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2023-08-20 10:21:27 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/16877</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972395</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-21 09:21:16 -0700</bug_when>
    <thetext>Committed 267090@main (318e60ffceea): &lt;https://commits.webkit.org/267090@main&gt;

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

    </bug>

</bugzilla>