# fix\(ci\): make the relay teardown retry find and finish failed previews · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/4a027150049c84f9e044a6d683f61b03415211e6)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 4a027150049c84f9e044a6d683f61b03415211e6

Requested commit: 4a027150049c84f9e044a6d683f61b03415211e6

Commit: 4a027150049c84f9e044a6d683f61b03415211e6

Tree: 9d58af66d192707c474070ec71e2f8fcf82ab989

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(ci): make the relay teardown retry find and finish failed previews

The nightly retry listed labeled closed PRs, then required each one to be
unlabeled, so no teardown ever ran. Nothing removed the label either, so every
failure re-queued every night. It also tested state == CLOSED, which misses
MERGED PRs. Teardown now clears the label only after a successful destroy, so
the scheduled list holds exactly the outstanding failures. Eligibility is "not
OPEN". Every job also requires the main branch, like deploy-relay.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

```

## Parents

- [14745631364edfc21c4ed51abd7ec89a5b09da6e](https://git.cafe/pingdotgg/t3code/commit/14745631364edfc21c4ed51abd7ec89a5b09da6e?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/4a027150049c84f9e044a6d683f61b03415211e6?format=markdown)
