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

Add pull-through caching support #97

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented May 11, 2023

fixes: #94

Required pulpcore: pulp/pulpcore#3819

TODO:

  • Add tests
  • Add docs (workflows)
  • Add appropriate pulpcore requirement bump for needed features

@gerrod3 gerrod3 force-pushed the pull-through branch 2 times, most recently from 86993af to b43a5ee Compare May 29, 2023 05:39
@gerrod3 gerrod3 force-pushed the pull-through branch 2 times, most recently from 0283528 to a0ff316 Compare June 14, 2023 14:40
@gerrod3 gerrod3 marked this pull request as ready for review June 14, 2023 15:04
@bmbouter
Copy link
Member

@gerrod3 @mdellweg what do you want to do for review on this? To me it looks fine, but I'm not a pulp_gem reviewer.

pytest.skip("gem not installed on test machine")
content_before = gem_content_api_client.list().count

remote = gem_remote_factory(url="https://rubygems.org")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where's the repository to receive all the cached content?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need it. Pulp itself is the repository that is storing the cached content. An admin user would need to list the content and manually add it to a repository if they want to.

We could add a feature request in pulpcore to try to add the pull-through content to an attached repository.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the caching is actually only done until someone calls orphan cleanup.
Yes, I think we should handle the case when a pull-through distribution has a repository and a remote. You could use that e.g. to collect all the packages needed to build one container and then move it into an immutable set.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not this PR then...

@mdellweg mdellweg merged commit 9bf5687 into pulp:main Jun 21, 2023
14 checks passed
@gerrod3 gerrod3 deleted the pull-through branch June 22, 2023 19:33
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.

Add pull-through caching to Gem Distributions
3 participants