OTV: Handle transition feedback
- Dominant language
- Go
- Stars
- 1
- Forks
- 3
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 6
Description
It is possible to get a redundant transition error from the youtube API, which we currently ignore, retry a few times, and then fail. We should handle the response from the API better so that the transitions can be more robust.
see example failure:
```
2025/11/20 12:57:20 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) status ready reached, breaking...
2025/11/20 12:57:20 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) waiting for active status...
2025/11/20 12:57:36 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) status active reached, breaking...
2025/11/20 12:57:36 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) ID: xfs9h2rgAtI, requesting transition to testing status...
2025/11/20 12:57:36 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) transition to testing for xfs9h2rgAtI failed on attempt 0 with error: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:41 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) ID: xfs9h2rgAtI, requesting transition to testing status...
2025/11/20 12:57:42 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) transition to testing for xfs9h2rgAtI failed on attempt 1 with error: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:47 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) ID: xfs9h2rgAtI, requesting transition to testing status...
2025/11/20 12:57:47 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) transition to testing for xfs9h2rgAtI failed on attempt 2 with error: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:52 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) failed to start broadcast: could not start broadcast: broadcast: Pt Noarlunga Test Broadcast, ID: xfs9h2rgAtI, could not do status actions: failed to go live, could not perform status action: 2: could not transition to testing, max tries exceeded: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:53 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) publishing event: startFailedEvent
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the Go code that performs broadcast status transitions and its retry handling, then inspect how the YouTube API error response is classified. Use the redundantTransition example as the failure case; done means that response is handled appropriately instead of being retried until the broadcast fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100