Skip to content

fix(tests): use mock git ops to prevent tag leaks from bump auto tests#233

Merged
indaco merged 1 commit intomainfrom
fix/test-tag-side-effects
Mar 11, 2026
Merged

fix(tests): use mock git ops to prevent tag leaks from bump auto tests#233
indaco merged 1 commit intomainfrom
fix/test-tag-side-effects

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Mar 11, 2026

Description

All tagmanager.NewTagManager() calls in bump test files replaced with tagmanager.NewTagManagerWithOps() using MockGitTagOperations and MockGitCommitOperations. Two call sites with Enabled: true, AutoCreate: true were actively creating real v99.88.77 and v1.2.4 tags in the working repository on every test run. The remaining four call sites (currently Enabled: false) were also updated for defensive consistency - a future edit flipping the flag would silently reintroduce the leak.

Related Issue

  • None

Notes for Reviewers

  • None

All NewTagManager() calls in bump tests replaced with
NewTagManagerWithOps() using MockGitTagOperations and
MockGitCommitOperations.
@indaco indaco merged commit fdf1604 into main Mar 11, 2026
7 checks passed
@indaco indaco deleted the fix/test-tag-side-effects branch March 11, 2026 22:21
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