push: five git push calls run outside the guarded Writer #833
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
sixfold-space/madtea#833
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The guard of ADR 0046 runs at every git write seam: the Writer in
internal/gitchecks each push before git runs. Five push calls skip the Writer and call a raw git runner directly:internal/service/workflow/finish_initial.go:146, the initial finish push of the branchinternal/service/workflow/finish_initial.go:251, the initial finish push of HEAD to the default branchinternal/service/issue/develop.go:116, the push of the new issue branchinternal/cmd/git/tag.go:205, tag create with--pushinternal/service/workflow/init.go:346, the init push of HEAD to the default branchEach site carries its own checks, so a new check added to the Writer does not reach them. The fix for a leading
+in a push refspec (#637) had to add the same check to three of these sites by hand. A future push site can repeat the gap.Acceptance criteria
internal/gitrunsgit pushwithout the Writer.