-
Notifications
You must be signed in to change notification settings - Fork 4
kpd: add optional mirror support #16
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
kpd: add optional mirror support #16
Conversation
We always clone a full repository. This is counter productive and wasteful. Allow users to specify that they are using kpd to help test patches for a git tree which we should expect a mirror on a target mirror path. Optionally, we also allow users to clarify that their target git tree is a linux clone, and in such cases we can always fallback to looking for a mirror path with the "linux.git" name. So for example, all kdevops enterprise deployments can easily profit from this as kdevops has support to mirror all target git trees it supports under /mirror/ through an NFS export for clients. And so small thing guests can be used for kpd instances, which can leverage this NFS export. This allows kpd to be run on smaller guests with less storage needs. This should allow more than one kpd instance to run on small guests too. Generated-by: ChatGPT Codex Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
theihor
left a comment
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.
A great improvement overall, thanks!
Please see comments with feedback.
|
OK! Pushed new fixes. |
|
I've addressed the feedback in #20 to limit the scope back here. |
|
Going to re-open this. |
|
OK let's see if this works |
|
@theihor I can't re-open this pull request despite all my efforts. |
|
@mcgrof thank you for addressing the feedback. Looks like inability to re-open a closed PR after a force-push is a known github quirk: isaacs/github#361 |
We always clone a full repository. This is counter productive and wasteful. Allow users to specify that they are using kpd to help test patches for a git tree which we should expect a mirror on a target mirror path.
Optionally, we also allow users to clarify that their target git tree is a linux clone, and in such cases we can always fallback to looking for a mirror path with the "linux.git" name.
So for example, all kdevops enterprise deployments can easily profit from this as kdevops has support to mirror all target git trees it supports under /mirror/ through an NFS export for clients. And so small thing guests can be used for kpd instances, which can leverage this NFS export.
This allows kpd to be run on smaller guests with less storage needs. This should allow more than one kpd instance to run on small guests too.
Generated-by: ChatGPT Codex