Skip to content

fix: unique foxops branch names to prevent stale branch collisions#586

Open
peterbraden wants to merge 1 commit into
mainfrom
fix/unique-foxops-branch-names
Open

fix: unique foxops branch names to prevent stale branch collisions#586
peterbraden wants to merge 1 commit into
mainfrom
fix/unique-foxops-branch-names

Conversation

@peterbraden
Copy link
Copy Markdown
Contributor

@peterbraden peterbraden commented Jun 2, 2026

Summary

  • Branch names for MR changes are deterministic: foxops/update-to-{hash}-{version}. When an MR is closed without merging, the source branch persists on the remote. A subsequent update to the same version generates the same name, causing a push failure with RebaseRequiredError.
  • Adds a short uuid suffix to the branch name, preventing collisions without requiring branch deletion API calls.

Related to #584 (root cause 2: stale branch scenario).

… collisions

Branch names for MR changes are deterministic: foxops/update-to-{hash}-{version}.
When an MR is closed without merging, GitLab does not delete the source branch.
A subsequent update to the same version generates the same branch name, causing
a push failure because the remote already has that branch with diverging history.

Adding a short uuid suffix to the branch name prevents collisions entirely,
without requiring branch deletion API calls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant