-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
c82472e
to
3e46732
Compare
Graph looks good (once tests pass) |
pkg/visualize/graphviz.go
Outdated
} | ||
if n.Metadata != nil && n.Metadata.Name != "" { | ||
v := strings.LastIndexAny(n.Metadata.Name, ".") | ||
gn.SetLabel(fmt.Sprintf("%s [%s]", n.Metadata.Name[v+1:], t.Template.Type)) |
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.
nit: in the examples it looks like the task type always goes outside the bounding box for the task node - is this fixable 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.
hmm, fixable probably by using a better way of rendering
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.
what if we do the beautification as a separate pass?
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.
💯 sounds good!
@pmahindrakar-oss @kumare3 @@EngHabu This pr need CGO enable in gobuild that's why it's failing. Goreleaser doesn't support CGO build. I explored some solution around this problem. Community is building CGO enabled build in container, They use different images for different PLATFORM/ARC and in our case it become complicated because we are generating multiple binary and may be we will add new binaries in future second problem is that we use goreleaser for generating Third problem is brew, Currently brew package is published by goreleaser or else we need to do this manually Need your thoughts on this. Alternative option is to use different library for graph (https://github.com/awalterschulze/gographviz) Issue : #1082 |
@evalsocket this is really sad. The reason I used this library is because it brings the c-bindings with it. I.e no need of external dot library. Can we limit some go packages only for some platforms like osx |
@kumare3 not sure. This lib look strong https://github.com/awalterschulze/gographviz. I discussed with @pmahindrakar-oss and he is exploring the capabilities of this lib. |
The lib will only print a dot graph - and users will have to use an online renderer |
I guess maybe we have to do this |
ok |
@kumare3 @pmahindrakar-oss checkout influxdb release process. They are using goreleaser for releasing binary with CGO enabled https://github.com/influxdata/influxdb/blob/master/.goreleaser.yml |
@evalsocket this is interesting? Why can't we do this - seems simple |
We can try in this or |
@evalsocket let us know how it goes with the CGO changes similar to influxdb which you have suggested. The changes with other library are also almost done aswell which dumps the dot string which can be used in online or commandline renderer for dot files. I will wait for your results to see if we want to change to complete go library for graphviz or use the existing one. I used this for eg : https://tinyurl.com/h6m7559j |
1846c8e
to
03cc7cf
Compare
31fefdf
to
5b530ac
Compare
a1440be
to
3a929a6
Compare
d938e10
to
990713a
Compare
3414179
to
990713a
Compare
3528d2f
to
449576b
Compare
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Prafulla Mahindrakar <[email protected]>
* Using go graphviz library to print dot file Signed-off-by: Prafulla Mahindrakar <[email protected]> * Rebased Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
* Linter fixes Signed-off-by: Prafulla Mahindrakar <[email protected]> * Added some coverage Signed-off-by: Prafulla Mahindrakar <[email protected]> * Added interface for the mehtods used from graphviz Signed-off-by: Prafulla Mahindrakar <[email protected]> * Fixed the workflow config flag file and bug fixes Signed-off-by: Prafulla Mahindrakar <[email protected]> (cherry picked from commit 77be561) * Added unit tests Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
449576b
to
f4711af
Compare
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Ketan Umare [email protected]
TL;DR
Uses graphviz to visualize flyte workflows on commandline. Example of branch node
Type
Are all requirements met?
Complete description
Uses graphviz to visualize flyte workflows on commandline