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

Minor chunk upload improvements. #2779

Merged
merged 1 commit into from
Jun 29, 2022
Merged

Minor chunk upload improvements. #2779

merged 1 commit into from
Jun 29, 2022

Conversation

ipanova
Copy link
Member

@ipanova ipanova commented May 30, 2022

[noissue]

Please be sure you have read our documentation on creating PRs:
https://docs.pulpproject.org/contributing/pull-request-walkthrough.html

@ipanova ipanova marked this pull request as draft May 30, 2022 10:29
ipanova added a commit to ipanova/pulp_container that referenced this pull request May 30, 2022
[noissue]
Required PR: pulp/pulpcore#2779
Comment on lines 37 to 38
upload_chunk = UploadChunk(upload=self, offset=offset, size=len(chunk))
upload_chunk = UploadChunk(upload=self, offset=offset, size=len(chunk_read))
Copy link
Member

Choose a reason for hiding this comment

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

This looks like something we could write a test expectation for.

ipanova added a commit to ipanova/pulp_container that referenced this pull request May 30, 2022
[noissue]
Required PR: pulp/pulpcore#2779
ipanova added a commit to ipanova/pulp_container that referenced this pull request May 30, 2022
[noissue]
Required PR: pulp/pulpcore#2779
ipanova added a commit to ipanova/pulp_container that referenced this pull request May 30, 2022
[noissue]
Required PR: pulp/pulpcore#2779
ipanova added a commit to ipanova/pulp_container that referenced this pull request May 31, 2022
[noissue]
Required PR: pulp/pulpcore#2779
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 8, 2022
[noissue]
Required PR: pulp/pulpcore#2779
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 14, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 14, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 14, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 14, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 14, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 14, 2022
@ipanova ipanova force-pushed the upload-chunk branch 2 times, most recently from 1744096 to d72d1ef Compare June 14, 2022 16:08
@ipanova ipanova changed the title Upload chunk Minor chunk upload improvements. Jun 14, 2022
@ipanova ipanova marked this pull request as ready for review June 14, 2022 16:13
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.

A test would be nice.

ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 15, 2022
if sha256:
current_sha256 = hashlib.sha256(chunk_read).hexdigest()
if sha256 != current_sha256:
raise serializers.ValidationError("Checksum does not match chunk upload.")
Copy link
Member

Choose a reason for hiding this comment

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

This I think is user facing so it should be wrapped in gettext

ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 21, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 21, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 21, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 23, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 23, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 23, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 23, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 23, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 23, 2022
ipanova added a commit to ipanova/pulp_container that referenced this pull request Jun 24, 2022
ipanova added a commit to pulp/pulp_container that referenced this pull request Jun 24, 2022
@ipanova ipanova merged commit 26b1fea into pulp:main Jun 29, 2022
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.

5 participants