Skip to content

Conversation

@pared
Copy link
Contributor

@pared pared commented Jan 8, 2020

  • ❗ Have you followed the guidelines in the Contributing to DVC list?

  • πŸ“– Check this box if this PR does not require documentation updates, or if it does and you have created a separate PR in dvc.org with such updates (or at least opened an issue about it in that repo). Please link below to your PR (or issue) in the dvc.org repo.

  • ❌ Have you checked DeepSource, CodeClimate, and other sanity checks below? We consider their findings recommendatory and don't expect everything to be addressed. Please review them carefully and fix those that actually improve code or fix bugs.

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Some summary:

  • replaced ambiguous import commands (default behaviour of run) with run_copy
  • renamed steps to make structure of repro_dir a bit clearer
  • add comment explaining how repro_dir looks like internally

@pared pared changed the title repro: tests: migrate to dir helpers [WIP] repro: tests: migrate to dir helpers Jan 8, 2020


def test_recursive_repro_empty_dir(dvc_repo, repro_dir):
def test_recursive_repro_empty_dir(dvc, repro_dir):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I presume that repro_dir was added here to make sure running repro, will not trigger any other stage?

Copy link
Contributor

Choose a reason for hiding this comment

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

@pared I think it was only used for repro_dir.emtydname, so we can safely remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@efiop removed

@pared pared changed the title [WIP] repro: tests: migrate to dir helpers repro: tests: migrate to dir helpers Jan 9, 2020
@pared pared requested review from Suor and efiop January 9, 2020 14:55
# | |
# \ /
# \ /
# dir/Dvcfile
Copy link
Contributor

Choose a reason for hiding this comment

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

You could've used tree CLI util, it would be much easier to understand than graph πŸ™‚

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I intended to show dependency between particular stages, tree would show placement in the directory. I thought that this one brings more information. Maybe I should include both?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, right, sorry. Ok, why not dvc pipeline show --ascii then? Or is it too big?

Copy link
Contributor

Choose a reason for hiding this comment

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

^ Just wondering, I'm okay with this illustration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@efiop, you are right, it was too big, had to to it my own way, so that we will still be able to pass all checks :)

Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

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

THanks!

@efiop efiop merged commit 84ec0d4 into treeverse:master Jan 10, 2020
@pared pared deleted the 2896_repro branch March 24, 2020 09:37
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