Skip to content

Conversation

@DmitriyVahrushev
Copy link

fix #2452

Should i write test for this? Also i found two test in test_pipeline.py TestPipelineListSingle and TestPipelineListEmpty. Maybe i am wrong but seems like they're doing something strange.

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.

Hi @DmitriyVahrushev !

Thank you so much for the PR! 🙂 Please see a comment attached.

for p in pipelines:
stages = networkx.get_node_attributes(p, "stage")
for stage in stages:
for stage in sorted(stages):
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately, this is not the way to solve the original issue. You are sorting alphabetically, but the original issue is about sorting in the order of execution, basically the way dvc repro does it. See https://github.com/iterative/dvc/blob/0.62.0/dvc/repo/reproduce.py#L172 . So what we need to do here is to print them in the order of dfs_postorder, same as it is in the dvc repro's usual way of execution.

@efiop
Copy link
Contributor

efiop commented Oct 16, 2019

Hi! How is it going? Need any help? :)

@efiop
Copy link
Contributor

efiop commented Oct 23, 2019

@DmitriyVahrushev Need any help? 🙂

@efiop
Copy link
Contributor

efiop commented Oct 25, 2019

Closing in favour of #2669

@efiop efiop closed this Oct 25, 2019
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.

Sort output of DVC pipeline list

2 participants