Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip testing branch preemptive deletion #173

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

rudymatela
Copy link

@rudymatela rudymatela commented Aug 23, 2022

closes: #165

In #134, we transitioned from testing on testing/<id> instead of just
testing. In order to maintain backwards compatibility, we had to delete
testing every time we created a new testing/<id> branch.

That has been a month ago, and most projects that use Hoff should have had at
least one PR triggering the deletion of testing. So we should remove this
code that tries deletion every time.

We currently see the following in the logs every time we merge:

Aug 18 13:37:12 hoff hoff[4321]: [Warn] error: git push -d failed. Reason: error: unable to delete 'testing': remote ref does not exist
Aug 18 13:37:29 hoff hoff[4321]: error: failed to push some refs to 'git@github.com:<org>/<repo>.git'

This should get rid of entries like the above.

In #134, we transitioned from testing on `testing/<id>` instead of just
`testing`.  In order to maintain backwards compatibility, we had to delete
`testing` every time we created a new `testing/<id>` branch.

That has been a month ago, and most projects that use Hoff should have had at
least one PR triggering the deletion of `testing`.  So we should remove this
code that tries deletion every time.

We currently see the following in the logs every time we merge:

```haskell
Aug 18 13:37:12 hoff hoff[4321]: [Warn] error: git push -d failed. Reason: error: unable to delete 'testing': remote ref does not exist
Aug 18 13:37:29 hoff hoff[4321]: error: failed to push some refs to 'git@github.com:<org>/<repo>.git'
```

This should get rid of entries like the above.
@rudymatela rudymatela changed the title skip "testing" branch preemptive deletion skip testing branch preemptive deletion Aug 23, 2022
@rudymatela rudymatela self-assigned this Aug 23, 2022
@rudymatela rudymatela added enhancement New feature or request OKR Objectives and Key Results train Involves Merge Trains labels Aug 23, 2022
Copy link

@alter2000 alter2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 █       ▒███▒███████ █▒  ▒█
 █      ░█▒ ░█   █    ██  ██
 █      █▒       █    ██░░██
 █      █        █    █▒▓▓▒█
 █      █   ██   █    █ ██ █
 █      █    █   █    █ █▓ █
 █      █▒   █   █    █    █
 █      ▒█░ ░█   █    █    █
 ██████  ▒███▒   █    █    █

@rudymatela
Copy link
Author

@alter2000 Thanks for the speedy review. 😄

@OpsBotPrime merge

@OpsBotPrime
Copy link

Pull request approved for merge by @rudymatela, rebasing now.

@OpsBotPrime
Copy link

Rebased as 7d58a61, waiting for CI …

@OpsBotPrime
Copy link

CI job started.

@OpsBotPrime OpsBotPrime merged commit 7d58a61 into master Aug 23, 2022
@OpsBotPrime OpsBotPrime deleted the skip-testing-branch-deletion branch August 23, 2022 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OKR Objectives and Key Results train Involves Merge Trains
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not try do delete testing branch anymore
3 participants