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

Added dry run client for running uploads in dry run mode. #213

Closed

Conversation

hoytak
Copy link
Collaborator

@hoytak hoytak commented Mar 20, 2025

Adds a DryRunClient that wraps a given client, but swallows all uploads. This enables dry run mode in the cleaning path simplification PR.

Copy link
Collaborator

@seanses seanses left a comment

Choose a reason for hiding this comment

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

The xtool actually wants to obtain the precise number of bytes a client needs to transfer, this includes the additional bytes to represent the xorb format and counts in the effect of compression. In old remote_client.rs this is implemented by just skipping the reqwest_client.put. The put() in DryRunClient returns Ok(0) and is not sufficient.

@hoytak
Copy link
Collaborator Author

hoytak commented Mar 22, 2025

Given that comment, I think we can actually just drop this pr in favor of 3317388; is that correct?

@hoytak
Copy link
Collaborator Author

hoytak commented Mar 26, 2025

Dropping; incorporated changes needed into PR 199.

@hoytak hoytak closed this Mar 26, 2025
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