-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
import-url: disable push by default for cloud-versioned imports #8578
Conversation
@dberenbaum I'm not really sure how we want to handle this for generic outs (since it works with any dvc-tracked file and not only import-url), so I went with the simplest implementation for now. Essentially, it seems to me that "I don't want to push this file to a remote" is not necessarily the same as "this file should never be found on a remote". This could maybe open up use cases like setting Also not sure if we need to add |
Codecov ReportBase: 94.33% // Head: 94.31% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #8578 +/- ##
==========================================
- Coverage 94.33% 94.31% -0.03%
==========================================
Files 430 430
Lines 32847 32871 +24
Branches 4584 4589 +5
==========================================
+ Hits 30986 31002 +16
- Misses 1443 1447 +4
- Partials 418 422 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. β View full report at Codecov. |
This looks good!
Makes sense for now. Is your hope to migrate
I think we should exclude it from
It's fine to leave out CLI flags for now. If we were to add them, we would need them in What needs to be done to support this for stage outputs? I think that would address #4868. |
The only issue I found is that
Edit: possibly related to #8315 |
Also fixes #7594 |
It will need a refactor of some dvc internals. Basically, for the
I'll make this change in this PR then (it's just a 1 line thing). The branching use case is a good one, but even then I think it's better to show different results for
It should work for stage outputs already, it just requires manually editing dvc.yaml ( |
I think the schema needs to be updated for it to work. |
eb40bd8
to
6a4aed3
Compare
Stage outs schema issue and |
@pmrowla Can you also update https://github.com/iterative/dvcyaml-schema? Edit: After that, let's close #4868. |
Hi. I noticed this isn't documented yet. Besides updating the cmd refs, should we recommend this by default when building pipelines? (Let's make a docs issue?) Thanks
|
@jorgeorpinel this is being documented in iterative/dvc.org#4142 |
Thanks. I guess I meant to comment on the |
β I have followed the Contributing to DVC checklist.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. π
Will close #8429
push:
param that defaults totrue
push: false
is used, the given file will be dvc-tracked and cached locally, but will never be pushed to a remote ondvc push
dvc status -c
anddvc pull
(i.e. we will still try to pull it from a DVC remote when possible, and will report whether or not the file is exists in a DVC remote onstatus -c
)import-url
with cloud-versioned URLs (or explicit--version-aware
flag), the output will be generated withpush: false
push: true
or by removing thepush:
line in the .dvc file (to use the default true value) this will be preserved ondvc update
import-url
without cloud-versioning, the output defaults topush: true
like any regular output (preserving the current behavior for non-versionedimport-url
)Also, this PR does not address #4527. DVC repo imports (
dvc import
) are essentially always consideredpush: false
regardless of whether or not the user explicitly tries to setpush: true
in the dvc file. (But in the future using explicitpush: true
in the .dvc file could be used to support 4527)