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

Auto download for fetch #1918

Merged
merged 7 commits into from
Nov 6, 2023
Merged

Auto download for fetch #1918

merged 7 commits into from
Nov 6, 2023

Conversation

kumare3
Copy link
Contributor

@kumare3 kumare3 commented Oct 24, 2023

TL;DR

It should be possible to download a specific file/directory/dataset as long as you have cloud connection configured.
pflyte fetch flyte://... - just prints
Screenshot 2023-11-02 at 9 42 57 PM

To recursively download all data from a literal map use --recursive
pyflyte fetch --recursive flyte://v1/flytesnacks/development/f9da2e91e3c844a20b89/n0/i /tmp/inputs

To look at a specific value
Screenshot 2023-11-02 at 9 44 16 PM

to download that specific value specify a destination directory

This works out of the box for sandbox as long as this PR is used to generate the config file for sandbox - flyteorg/flytectl#440

The difference is that the config section as a storage configuration for minio.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Signed-off-by: Ketan Umare <[email protected]>
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (63e6632) 62.81% compared to head (6d8f804) 62.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1918      +/-   ##
==========================================
- Coverage   62.81%   62.78%   -0.04%     
==========================================
  Files         307      308       +1     
  Lines       22984    23014      +30     
  Branches     3490     3493       +3     
==========================================
+ Hits        14438    14449      +11     
- Misses       8124     8143      +19     
  Partials      422      422              
Files Coverage Δ
flytekit/interaction/click_types.py 31.50% <0.00%> (-0.30%) ⬇️
flytekit/core/gate.py 37.63% <40.00%> (+0.13%) ⬆️
flytekit/core/data_persistence.py 30.24% <50.00%> (-0.11%) ⬇️
flytekit/core/workflow.py 48.40% <28.57%> (-0.52%) ⬇️
flytekit/interaction/string_literals.py 16.32% <0.00%> (ø)
flytekit/interaction/rich_utils.py 50.00% <50.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

` pyflyte fetch --download-to /tmp/. flyte://v1/flytesnacks/development/f5dc81c5a8c6441d4a0a/rotaterotateimage/o/o0`

Signed-off-by: Ketan Umare <[email protected]>
@kumare3 kumare3 changed the title [wip] Auto download for fetch Auto download for fetch Oct 31, 2023
@kumare3 kumare3 merged commit 55632d7 into master Nov 6, 2023
68 of 70 checks passed
ringohoffman pushed a commit to ringohoffman/flytekit that referenced this pull request Nov 24, 2023
* Auto download for fetch

Signed-off-by: Ketan Umare <[email protected]>

* Adds new fetch with download command

` pyflyte fetch --download-to /tmp/. flyte://v1/flytesnacks/development/f5dc81c5a8c6441d4a0a/rotaterotateimage/o/o0`

Signed-off-by: Ketan Umare <[email protected]>

* Auto download and improved some bugs

Signed-off-by: Ketan Umare <[email protected]>

* Updated fetch and hitl

Signed-off-by: Ketan Umare <[email protected]>

---------

Signed-off-by: Ketan Umare <[email protected]>
RRap0so pushed a commit to RRap0so/flytekit that referenced this pull request Dec 15, 2023
* Auto download for fetch

Signed-off-by: Ketan Umare <[email protected]>

* Adds new fetch with download command

` pyflyte fetch --download-to /tmp/. flyte://v1/flytesnacks/development/f5dc81c5a8c6441d4a0a/rotaterotateimage/o/o0`

Signed-off-by: Ketan Umare <[email protected]>

* Auto download and improved some bugs

Signed-off-by: Ketan Umare <[email protected]>

* Updated fetch and hitl

Signed-off-by: Ketan Umare <[email protected]>

---------

Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Rafael Raposo <[email protected]>
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.

2 participants