-
Notifications
You must be signed in to change notification settings - Fork 654
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
Allow dry_run for snapshot_download #1023
Comments
Hi @cccntu, thanks for the feature request 👍 Do you want to give it a try to implement it ? :) If you need any help, I'd be happy to answer any question. |
Hey is it okay if I pick this issue? :) |
Hi @druvdub, thanks for proposing you on this one! This issue is not yet assigned so yes, feel free to take it! 🙏 Implementation-wise, I think you can start with a PR that adds a The biggest question is: what is the expected output of a download in dry-run mode? My expectation is that it would not download anything but it is still ok-ish if it updates the internal refs (see these docs). As a return value,
What do you think? Would you like to start by having a look at the code and then discuss what you think is a good direction to take? Happy to discuss it further if you're interested. |
@Wauplin Yes, I would most likely explore the codebase a bit and then we can discuss how to proceed forward on this issue |
@Wauplin right, did a bit of reading and was wondering if the output should be something that can be parsed and used further for the dry-run like in a JSON format along with the logs. Secondly, should the dry-run support legacy_cache_layout as well. Also, considering the |
Let's do that yes. Returning a dataclass with all the required information.
No need to support
That's a question more for
WDYT? |
Sounds good. I'll make a draft PR with the changes. |
Hi @druvdub, thanks for looking into it! Actually I think it's best to start from a separate dataclass altogether, even if that means you end up with duplicated fields. We tried to play with inheritance in the past for those situations but it always went with drawbacks. Since we need to document all the attributes in the docstring anyway, we would not gain much. So let's have a dry-run -specific class :) |
The current download progress bar doesn't show the file names being downloaded, and doesn't show how many files will be downloaded
With allow_patterns , ignore_patterns, having a dry run option would be very useful.
One can also use it to add logging.
The text was updated successfully, but these errors were encountered: