feat: add support for faster resource pulls without conflicts#799
feat: add support for faster resource pulls without conflicts#799raghavyuva wants to merge 3 commits intofeat/view_compose_packfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…yment_code_persistance
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||||
User description
Issue
Link to related issue(s):
Description
Short summary of what this PR changes or introduces.
Scope of Change
Select all applicable areas impacted by this PR:
Screenshot / Video / GIF (if applicable)
Attach or embed screenshots, screen recordings, or GIFs demonstrating the feature or fix.
Related PRs (if any)
Link any related or dependent PRs across repos.
Additional Notes for Reviewers (optional)
Anything reviewers should know before testing or merging (e.g., environment variables, setup steps).
Developer Checklist
To be completed by the developer who raised the PR.
Reviewer Checklist
To be completed by the reviewer before merge.
PR Type
Enhancement
Description
Disable repository persistence by always removing cloned repos after builds
Add
CleanupRepository()method to remove repositories post-deploymentImplement fresh clones instead of pull operations for consistency
Add
CloneWithBranch()for efficient shallow clones of specific branchesSimplify
GetClonePath()by removing pull logic and return valueDiagram Walkthrough
File Walkthrough
clone.go
Add repository cleanup functionalityapi/internal/features/deploy/tasks/clone.go
CleanupRepository()method to remove cloned reposcreate.go
Integrate cleanup into create deployment flowapi/internal/features/deploy/tasks/create.go
CleanupRepository()after successful image buildCleanupRepository()on build failure for cleanupredeploy.go
Integrate cleanup into redeploy flowapi/internal/features/deploy/tasks/redeploy.go
CleanupRepository()after successful image buildCleanupRepository()on build failureupdate.go
Integrate cleanup into update deployment flowapi/internal/features/deploy/tasks/update.go
CleanupRepository()after successful image buildCleanupRepository()on build failureauthenticated_url.go
Simplify clone path logic for fresh clonesapi/internal/features/github-connector/service/authenticated_url.go
GetClonePath()documentation to reflect fresh clone strategyshouldPullreturn value and logic(string, bool, error)to(string, error)clone_repository.go
Replace pull strategy with fresh clone approachapi/internal/features/github-connector/service/clone_repository.go
should_pullvariable fromGetClonePath()callgit_client.go
Add shallow clone with branch supportapi/internal/features/github-connector/service/git_client.go
CloneWithBranch()method to interface for shallow branch clonesCloneWithBranch()using--depth=1 --branchflags