Bug 250623 - [EWS] clean-up-git-repo step tries to delete invalid branches
Summary: [EWS] clean-up-git-repo step tries to delete invalid branches
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-14 09:13 PST by David Kilzer (:ddkilzer)
Modified: 2023-08-21 09:21 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2023-01-14 09:13:37 PST
[EWS] clean-up-git-repo step tries to delete invalid branches:

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

Example:  <https://ews-build.webkit.org/#/builders/77/builds/12461>
Comment 1 David Kilzer (:ddkilzer) 2023-01-14 09:14:26 PST
Maybe the step should do something like `git checkout main` first before running this command?
Comment 2 Radar WebKit Bug Importer 2023-01-21 10:08:22 PST
<rdar://problem/104512536>
Comment 3 David Kilzer (:ddkilzer) 2023-08-20 10:21:27 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16877
Comment 4 EWS 2023-08-21 09:21:16 PDT
Committed 267090@main (318e60ffceea): <https://commits.webkit.org/267090@main>

Reviewed commits have been landed. Closing PR #16877 and removing active labels.