Skip to content
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

input_osv3: use git_commit_depth from user_params #1158

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

mlangsdorf
Copy link
Contributor

Now that osbs-client passes the git commit depth and container.yaml from the git repo, read those values from user_params and pass them back through provider_params.

LazyGit will attempt to do a single branch, shallow clone if a branch or commit depth is provided in provider_params.

Depends on containerbuildsystem/osbs-client#845

Signed-off-by: Mark Langsdorf [email protected]

atomic_reactor/plugins/input_osv3.py Outdated Show resolved Hide resolved
atomic_reactor/schemas/user_params.json Outdated Show resolved Hide resolved
atomic_reactor/schemas/user_params.json Show resolved Hide resolved
atomic_reactor/source.py Outdated Show resolved Hide resolved
atomic_reactor/util.py Outdated Show resolved Hide resolved
atomic_reactor/util.py Outdated Show resolved Hide resolved
@mlangsdorf mlangsdorf force-pushed the osbs6599 branch 2 times, most recently from fbe6ec6 to e58dd59 Compare January 29, 2019 21:50
atomic_reactor/source.py Outdated Show resolved Hide resolved
atomic_reactor/util.py Outdated Show resolved Hide resolved
atomic_reactor/util.py Outdated Show resolved Hide resolved
@mlangsdorf mlangsdorf changed the title input_osv3: use git_commit_depth and container.yaml from user_params [WIP] input_osv3: use git_commit_depth and container.yaml from user_params Feb 5, 2019
@mlangsdorf mlangsdorf changed the title [WIP] input_osv3: use git_commit_depth and container.yaml from user_params input_osv3: use git_commit_depth from user_params Feb 15, 2019
@mlangsdorf mlangsdorf changed the title input_osv3: use git_commit_depth from user_params [WIP] input_osv3: use git_commit_depth from user_params Feb 22, 2019
atomic_reactor/util.py Outdated Show resolved Hide resolved
Now that osbs-client passes the git commit depth from the git repo,
retreive that value in input_osv3.

LazyGit will attempt to do a single branch, shallow clone if a branch
and commit depth is provided in provider_params.

Signed-off-by: Mark Langsdorf <[email protected]>
@mlangsdorf mlangsdorf changed the title [WIP] input_osv3: use git_commit_depth from user_params input_osv3: use git_commit_depth from user_params Feb 22, 2019
@mlangsdorf mlangsdorf merged commit 34b2f42 into containerbuildsystem:master Feb 27, 2019
@mlangsdorf mlangsdorf deleted the osbs6599 branch February 27, 2019 18:47
@mlangsdorf
Copy link
Contributor Author

Added to RN under improvements:

  • get the git commit depth from osbs-client and use that value to perform shallow clones of git repositories, dramatically decreasing the load on git servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants