-
Notifications
You must be signed in to change notification settings - Fork 394
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
cmd: update push deps example #1591
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,11 +181,11 @@ One could do a simple `dvc push` to share all the data, but what if you only | |
want to upload part of the data? | ||
|
||
```dvc | ||
$ dvc push --with-deps matrix-train.p.dvc | ||
$ dvc push --with-deps test-posts | ||
|
||
... Do some work based on the partial update | ||
|
||
$ dvc push --with-deps model.p.dvc | ||
$ dvc push --with-deps matrix-train | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here - why do we need to change the stage name? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think |
||
|
||
... Push the rest of the data | ||
|
||
|
@@ -194,11 +194,11 @@ $ dvc status --cloud | |
Data and pipelines are up to date. | ||
``` | ||
|
||
We specified a stage in the middle of this pipeline (`matrix-train.p.dvc`) with | ||
the first push. `--with-deps` caused DVC to start with that `.dvc` file, and | ||
search backwards through the pipeline for data files to upload. | ||
We specified a stage in the middle of this pipeline (`test-posts`) with the | ||
first push. `--with-deps` caused DVC to start with that `.dvc` file, and search | ||
backwards through the pipeline for data files to upload. | ||
|
||
Because the `model.p.dvc` stage occurs later (it's the last one), its data was | ||
Because the `matrix-train` stage occurs later (it's the last one), its data was | ||
not pushed. However, we then specified it in the second push, so all remaining | ||
data was uploaded. | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to rewrite the example above, the project structure for this command to make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, why do change the stage name here, intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! It was also done in the complementary PR. Both are merged, please check in https://dvc.org/doc/command-reference/push#example-with-dependencies
Intentional. I came up with these new names. But now that you mention it
matrix-train
would've been the obvious choice here 🤦There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait no, that't the name of the next stage. That's why I came up with
test-posts
.