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 for streaming metadata & multi-artifact content types #3819

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented May 11, 2023

fixes: #3817
fixes: #3818

TODO:

  • Tests (unit tests? pulp_file doesn't support pull-through caching. Currently I am manually testing this against pulp_gem (whom the feature is being added for) and pulp_python)
  • Plugin writer docs (pull-through caching is not very easy to understand/implement)

@gerrod3 gerrod3 force-pushed the pull-through-metadata-fetch branch 2 times, most recently from b13fa9f to 2cefdf2 Compare June 7, 2023 18:22
@gerrod3 gerrod3 marked this pull request as ready for review June 7, 2023 18:24
Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

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

Some nitpicking... but looks good!

content = c_type.objects.get(content.q())
artifacts = content._artifacts
if artifact.sha256 != artifacts.get().sha256:
created_artifact_digests = {rp: a.sha256 for rp, a in artifacts.items() if a}
Copy link
Member

Choose a reason for hiding this comment

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

rp and a are relative path and artifact respectively?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct!

@gerrod3 gerrod3 force-pushed the pull-through-metadata-fetch branch from 2cefdf2 to 8aa3428 Compare June 9, 2023 14:43
@gerrod3 gerrod3 merged commit 1bf3972 into pulp:main Jun 9, 2023
@gerrod3 gerrod3 deleted the pull-through-metadata-fetch branch June 9, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants