Bugfix Git cleanup on draft/proposed branches when pushDraftsToGit is set on DB cache - #1136
Conversation
Signed-off-by: Catalin-Stratulat-Ericsson <catalin.stratulat@ericsson.com>
✅ Deploy Preview for kpt-porch ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
It would be good to get a review from @rendre-greyling on this. |
|
@liamfallon @Catalin-Stratulat-Ericsson LGTM - this is a known issue, but I did not realize that push drafts was enabled here. I'll just leave a note here, there are some other issues regarding the push drafts to git implementation (both functional and performance related). I've got a refactor of this feature and the dbsync that I'm busy porting over, but some changes are needed to get it wired into the repo controller. |
|
We have some postponed tests that we should enable (just remove the "P" from PIt) for this change: https://github.com/kptdev/porch/blob/main/test/e2e/crd/lifecycle_test.go#L204 https://github.com/kptdev/porch/blob/main/test/e2e/crd/lifecycle_test.go#L228 |
thats good to hear @rendre-greyling. whilst looking into this i found a number of other issues that i didnt patch here, such as approves breaking down along other issues. i was going to raise another PR but its good to know you already have a refactor/fix. ill leave those to you :) |
ahhhhh thats what i forgot. i remember seeing those tests when i first started looking into this but forgot about them. i can modify this PR to enable them. thanks for the reminder. @efiacor should i remove the unit tests with this PR and enable those e2e ones or just leave as is? |
No, we can keep the existing ones also. Not sure if we need a similar e2e one for api. |



Bugfix Git cleanup on draft/proposed branches when pushDraftsToGit is set on DB cache
Description
pushDraftsToGitcheck during PR deletionRelated Issue(s)
Type of Change
Checklist
Testing Instructions (Optional)
Additional Notes (Optional)
AI Disclosure
If so, please describe how: