Skip to content

EPMDEDP-17257: refactor: Remove dead git methods and vestigial CodebaseBranch workdir cleanup - #309

Merged
SergK merged 1 commit into
masterfrom
PMDEDP-17257
Aug 4, 2026
Merged

EPMDEDP-17257: refactor: Remove dead git methods and vestigial CodebaseBranch workdir cleanup#309
SergK merged 1 commit into
masterfrom
PMDEDP-17257

Conversation

@SergK

@SergK SergK commented Aug 4, 2026

Copy link
Copy Markdown
Member

Cleanup of code left with zero call sites once CodebaseBranch git operations moved to packless transport.

  • Drop Fetch, CommitExists and CreateRemoteTag from the Git interface and GitProvider. None had a production caller, and Fetch carried a latent bug: its per-branch refspec lacked a force prefix and wrote straight into local branch refs, so any future caller would fail on a diverged branch.
  • Remove the clean_tmp_directory chain step and the branch controller's directory cleanup on deletion. Neither path can do anything useful because the CodebaseBranch chain no longer creates a working directory; only the Codebase chain does, and its own cleanup is untouched.
  • Regenerate mocks and drop the tests that covered the removed methods.

…seBranch workdir cleanup

Cleanup of code left with zero call sites once CodebaseBranch git operations
moved to packless transport.

- Drop Fetch, CommitExists and CreateRemoteTag from the Git interface and GitProvider. None had a
  production caller, and Fetch carried a latent bug: its per-branch refspec lacked a force prefix
  and wrote straight into local branch refs, so any future caller would fail on a diverged branch.
- Remove the clean_tmp_directory chain step and the branch controller's directory cleanup on
  deletion. Neither path can do anything useful because the CodebaseBranch chain no longer creates
  a working directory; only the Codebase chain does, and its own cleanup is untouched.
- Regenerate mocks and drop the tests that covered the removed methods.

Signed-off-by: Sergiy Kulanov <[email protected]>
@SergK
SergK requested a review from a team as a code owner August 4, 2026 07:58
@epmd-edp

epmd-edp commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Pipeline review-codebase-operator-master-wgpdn ✅ Passed

Status Task Duration
github-set-pending-status 6s
fetch-repository 7s
init-values 5s
get-cache 2m13s
commit-validate 5s
dockerfile-lint 8s
helm-lint 6s
helm-docs 11s
build 56s
sonar 16s
save-cache 7s
buildkit-build 20s
github-report-pipeline-status 7s

@SergK
SergK merged commit 2b06b8a into master Aug 4, 2026
6 checks passed
@SergK
SergK deleted the PMDEDP-17257 branch August 4, 2026 08:19
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.

2 participants