-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make warehouse do shallow, single-branch clones #1091
Conversation
✅ Deploy Preview for docs-kargo-akuity-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1091 +/- ##
==========================================
- Coverage 50.32% 50.32% -0.01%
==========================================
Files 114 114
Lines 8089 8088 -1
==========================================
- Hits 4071 4070 -1
Misses 3871 3871
Partials 147 147 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Kent <kent.rancourt@gmail.com>
a24b6c0
to
44931af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// Shallow indicates whether the clone should be with a depth of 1. This is | ||
// useful for speeding up the cloning process when all we care about is the | ||
// latest commit from a single branch. | ||
Shallow bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I only see CloneOptions used one place, is it true that this PR makes it such that all clones performed by kargo are shallow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No... only the Warehouse reconciler is exercising these options.
The Promotion reconciler still does a full clone (nil options).
Fixes #1090