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

feat: Don't upload chunks that are already on the server (fixed version) #1660

Merged
merged 4 commits into from
Jun 27, 2023

Conversation

loewenheim
Copy link
Contributor

@loewenheim loewenheim commented Jun 27, 2023

This is a corrected version of #1651. The problem in that version was that we didn't check if a missing_chunks: [] reply from the server actually meant anything. This led to not uploading anything if the server returned [] as a default value. Therefore, this version adds a new ChunkUploadCapability variant ArtifactBundlesV2. Only if the server supports this capability are the chunks deduplicated.

The changelog looks weird right now because the revert of #1651 is not yet published.

@loewenheim
Copy link
Contributor Author

Note that we have tests for both ArtifactBundles and ArtifactBundlesV2. In the former case, uploads work even though the server returns no missing chunks.

@loewenheim loewenheim merged commit 7a0b871 into master Jun 27, 2023
@loewenheim loewenheim deleted the feat/chunks-v2 branch June 27, 2023 11:05
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.

3 participants