Repository navigation
Serialize preview runs and surface branch delete errors - #186
Open
alexon1234 wants to merge 1 commit into
Open
alexon1234 wants to merge 1 commit into
alexon1234 wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Overlapping
tinybird previewruns on the same git branch all target the sametmp_ci_<branch>Tinybird branch, so they race on delete and create (seen asANALYTICS-HAS: concurrentDELETE /v0/environments/<id>, one got a 422). Preview also swallows every delete error, so a failed delete shows up later as a confusingFailed to create preview branch400.Solution
tinybird initCI templates serialize previews per branch: GitHub gets aconcurrencygroup withcancel-in-progress, GitLab gets a per-branchresource_group.tinybird previewtreats only a 404 from get/delete as "no existing branch". Other errors fail withFailed to delete existing preview branch: ….Server side: tinybird/analytics!28936 (single-flight branch DELETE).