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

Drake graph does not show tags? #182

Open
kavink opened this issue Jul 4, 2015 · 5 comments
Open

Drake graph does not show tags? #182

kavink opened this issue Jul 4, 2015 · 5 comments

Comments

@kavink
Copy link

kavink commented Jul 4, 2015

I have a simplistic drake, which just is run using tags. Whenever i try to create a --graph from it, It comes out empty, I was expecting to atleast see something. Please can you let me know if this is a bug or its behaving as expected ?

%initialize <-
    "Start from here"

%export <- %initialize
    echo "Do some stuff"

%build-complete <- %initialize, %export
    echo "Dont"
@dirtyvagabond
Copy link
Contributor

hi @kavink , what does "comes out empty" mean exactly? Is there a .png file generated, and if so, would you mind attaching to this ticket? Also, please show us the exact command you're using to run.

@kavink
Copy link
Author

kavink commented Jul 4, 2015

png is empty.

$ cat workflows/drake/test.d 
%initialize <-
    echo "start"

%export-1 <- %initialize
    echo "do some stuff"

%export-2 <- %export-1
    echo "do some stuff"

%build-complete <- %initialize, %export-1, %export-2
    echo "Done"

$ drake -w workflows/drake/test.d  --graph "+^%initialize"
Image saved to drake.png
$ drake -w workflows/drake/test.d  --graph=dot "+^%initialize"
DOT file saved to drake.dot
$ drake -w workflows/drake/test.d  --preview "+^%initialize"
The following steps will be run, in order:
  1: %initialize <-  [forced (via tag)]
  2: %export-1 <- %initialize [forced]
  3: %export-2 <- %export-1 [forced]
  4: %build-complete <- %initialize, %export-1, %export-2 [forced]

image attached below is empty.
drake

dot file looks like

digraph {
graph[dpi=100, rankdir=TP]
node[fontname="Monospace"]
edge[fontname="Monospace"]

}

@amalloy
Copy link
Contributor

amalloy commented Jul 4, 2015

--graph doesn't really pay attention to tags, only files that are built. it's not that exciting to get a graph of tags, because they need to be rebuilt iff you specified them.

@kavink
Copy link
Author

kavink commented Jul 5, 2015

@amalloy It does help to know the DAG, because now if i need to show all stages in pipeline, The tag stages are missing , which means, need to manually create the dot graph looking at the drake workflow file. This becomes complicated if we have like 20-30 tags in the pipelines.

Any plans --graph will show all stage execution steps ?

@codeforgood
Copy link

Just started to use drake for out data workflows. Tags are great, but hitting the same limitation of not able to visualize tagged steps along with file based steps. Graph is broken with out tags.

Thoughts?

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

No branches or pull requests

4 participants