Skip to contentSkip to conversation

cooker: Drop package-depends.dot and pn-depends.dot generation

PATCH Peter Kjellerstedt 4 participants 6 messages Jan 25, 2017 – Feb 3, 2017

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines

-----Original Message-----
From: [email protected] [mailto:bitbake- [email protected]] On Behalf Of Richard Purdie
Sent: den 23 januari 2017 23:38
To: [email protected]
Subject: [bitbake-devel] [PATCH] cooker: Drop package-depends.dot and pn-depends.dot generation

A long time ago when we switched to task basked execution we added task-depends.dot and generated package-depends.dot and pn-depends.dot for compatibility as best we could.

Quoted 7 lines

The problem is they contain partial data about the taskgraph, its incomplete and tends to confuse users.

I propose we remove the two compatibilty outputs and just generate the one which contains definitive data.

Is there any alternative to removing package-depends.dot and especially pn-depends.dot? The reason I ask is because we use pn-dependes.dot when visualizing the dependencies between packages. Even though task-depends.dot is more complete, trying to render it is near impossible given the sheer number of nodes and edges it contains. Already visualizing pn-depends.dot is hard but possible with some gvpr and tred filtering. Here are some statistics from one of my typical builds:

                        Nodes  Edges
                        -----  ------
pn-depends.dot           1183   12087
package-depends.dot      5939   55615

task-depends.dot 13756 125870

As can be seen, the number of nodes and edges in task-depends.dot is a magnitude greater than in pn-depends.dot.

//Peter

#1 lore raw
Quoted 18 lines · Peter Kjellerstedt
Quoted 18 lines

-----Original Message-----
From: [email protected] [mailto:bitbake- [email protected]] On Behalf Of Richard Purdie
Sent: den 23 januari 2017 23:38
To: [email protected]
Subject: [bitbake-devel] [PATCH] cooker: Drop package-depends.dot and
pn-depends.dot generation

A long time ago when we switched to task basked execution we added task-depends.dot and generated package-depends.dot and pn- depends.dot
for compatibility as best we could.

The problem is they contain partial data about the taskgraph, its incomplete and tends to confuse users.

Quoted 6 lines
Quoted 4 lines

I propose we remove the two compatibilty outputs and just generate the one which contains definitive data.

Is there any alternative to removing package-depends.dot and especially pn-depends.dot?

We don't have to remove them but what worries me is that the data in them is incomplete. Its some subset of what the real task graph looks like and at some point someone is going to complain the data was inaccurate/misleading (which it is).

Quoted 8 lines

The reason I ask is because we use
pn-dependes.dot when visualizing the dependencies between packages. Even though task-depends.dot is more complete, trying to render it is near impossible given the sheer number of nodes and edges it contains. Already visualizing pn-depends.dot is hard but possible with some gvpr and tred filtering. Here are some statistics from one of my typical builds:

Quoted 8 lines

                        Nodes  Edges
                        -----  ------
pn-depends.dot           1183   12087
package-depends.dot      5939   55615
task-depends.dot        13756  125870

As can be seen, the number of nodes and edges in task-depends.dot is a magnitude greater than in pn-depends.dot.

Its certainly simpler, but the data is just plain buggy. I'm not sure I'd trust anything those files told me, even if they are easier to view.

I appreciate task-depends is hard to load graphically, it is helpful even as a text file though, I do use it a lot since its a near direct dump of bitbake's internal parsed task dependencies.

Cheers,

Richard

#2 lore raw
Quoted 17 lines · NZDT Richard Purdie
Quoted 7 lines · Peter Kjellerstedt

pn-dependes.dot when visualizing the dependencies between packages. Even though task-depends.dot is more complete, trying to render it is near impossible given the sheer number of nodes and edges it contains. Already visualizing pn-depends.dot is hard but possible with some gvpr and tred filtering. Here are some statistics from one of my typical builds:

Quoted 8 lines
                        Nodes  Edges
                        -----  ------
pn-depends.dot           1183   12087
package-depends.dot      5939   55615

task-depends.dot 13756 125870

As can be seen, the number of nodes and edges in task-depends.dot is a magnitude greater than in pn-depends.dot.

Quoted 7 lines

Its certainly simpler, but the data is just plain buggy. I'm not sure I'd trust anything those files told me, even if they are easier to view.

I appreciate task-depends is hard to load graphically, it is helpful even as a text file though, I do use it a lot since its a near direct dump of bitbake's internal parsed task dependencies.

What if we collapsed down task-depends.dot to PNs only in order to produce pn-depends.dot? Then at least it would be reasonably accurate.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw
Quoted 34 lines

-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: den 25 januari 2017 20:17
To: Richard Purdie
Cc: [email protected]; Peter Kjellerstedt
Subject: Re: [bitbake-devel] [PATCH] cooker: Drop package-depends.dot and pn-depends.dot generation

Quoted 17 lines · NZDT Richard Purdie
Quoted 7 lines · Peter Kjellerstedt

pn-dependes.dot when visualizing the dependencies between packages. Even though task-depends.dot is more complete, trying to render it is near impossible given the sheer number of nodes and edges it contains. Already visualizing pn-depends.dot is hard but possible with some gvpr and tred filtering. Here are some statistics from one of my typical builds:

Quoted 8 lines
                        Nodes  Edges
                        -----  ------
pn-depends.dot           1183   12087
package-depends.dot      5939   55615

task-depends.dot 13756 125870

As can be seen, the number of nodes and edges in task-depends.dot is a magnitude greater than in pn-depends.dot.

Quoted 7 lines

Its certainly simpler, but the data is just plain buggy. I'm not sure I'd trust anything those files told me, even if they are easier to view.

I appreciate task-depends is hard to load graphically, it is helpful even as a text file though, I do use it a lot since its a near direct dump of bitbake's internal parsed task dependencies.

Quoted 5 lines

What if we collapsed down task-depends.dot to PNs only in order to produce pn-depends.dot? Then at least it would be reasonably accurate.

Cheers,
Paul

That would work for me at least.

//Peter

#4 lore raw
Quoted 48 lines

-----Original Message-----
From: [email protected] [mailto:bitbake- [email protected]] On Behalf Of Peter Kjellerstedt
Sent: den 30 januari 2017 11:19
To: Paul Eggleton; Richard Purdie
Cc: [email protected]
Subject: Re: [bitbake-devel] [PATCH] cooker: Drop package-depends.dot and pn-depends.dot generation

Quoted 39 lines

-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: den 25 januari 2017 20:17
To: Richard Purdie
Cc: [email protected]; Peter Kjellerstedt
Subject: Re: [bitbake-devel] [PATCH] cooker: Drop package-depends.dot and pn-depends.dot generation

Quoted 17 lines · NZDT Richard Purdie
Quoted 7 lines · Peter Kjellerstedt

pn-dependes.dot when visualizing the dependencies between packages. Even though task-depends.dot is more complete, trying to render it is near impossible given the sheer number of nodes and edges it contains. Already visualizing pn-depends.dot is hard but possible with some gvpr and tred filtering. Here are some statistics from one of my typical builds:

Quoted 8 lines
                        Nodes  Edges
                        -----  ------
pn-depends.dot           1183   12087
package-depends.dot      5939   55615

task-depends.dot 13756 125870

As can be seen, the number of nodes and edges in task-depends.dot is a magnitude greater than in pn-depends.dot.

Quoted 8 lines

Its certainly simpler, but the data is just plain buggy. I'm not sure I'd trust anything those files told me, even if they are easier to view.

I appreciate task-depends is hard to load graphically, it is helpful even as a text file though, I do use it a lot since its a near direct dump of bitbake's internal parsed task dependencies.

What if we collapsed down task-depends.dot to PNs only in order to produce pn-depends.dot? Then at least it would be reasonably accurate.

Quoted 6 lines
Quoted 2 lines

Cheers,
Paul

That would work for me at least.

//Peter

Another concern here is the depexp UI which I believe currently uses the same data that ends up in pn-depends.dot. (I noticed this the other day when I could not find a dependency in the depexp UI that I expected should be there, and based on the discussion in this mail thread then searched in task-depends.dot and found the dependency there as expected).

//Peter

#5 lore raw
In reply to Paul Eggleton
Quoted 26 lines · Paul Eggleton
Quoted 17 lines · NZDT Richard Purdie
Quoted 7 lines · Peter Kjellerstedt

pn-dependes.dot when visualizing the dependencies between packages. Even though task-depends.dot is more complete, trying to render it is near impossible given the sheer number of nodes and edges it contains. Already visualizing pn-depends.dot is hard but possible with some gvpr and tred filtering. Here are some statistics from one of my typical builds:

Quoted 8 lines
                        Nodes  Edges
                        -----  ------
pn-depends.dot           1183   12087
package-depends.dot      5939   55615

task-depends.dot 13756 125870

As can be seen, the number of nodes and edges in task-depends.dot is a magnitude greater than in pn-depends.dot.

Quoted 7 lines

Its certainly simpler, but the data is just plain buggy. I'm not sure I'd trust anything those files told me, even if they are easier to view.

I appreciate task-depends is hard to load graphically, it is helpful even as a text file though, I do use it a lot since its a near direct dump of bitbake's internal parsed task dependencies.

Quoted 6 lines

What if we collapsed down task-depends.dot to PNs only in order to produce pn-depends.dot? Then at least it would be reasonably accurate.

Cheers,
Paul

Hi,

It is a great initiative to make the dependency graphs more correct.
I just wanted to note that I have found very good use of the pn-buildlist as a measure to force a certain task on, for instance, all recipe dependencies in an image or other recipe. It is sort of a good input for a "for each" cmdline scripts.

ex: xargs -a pn-buildlist bitbake -c mytask

This can of cause be done by filtering stuff out from the tasks-depends or pn-depends but there is a risk of parse error trying to separate task name from packet name if not following conventions.

So, perhaps you are aware of another preferred way to achieve this or if you could consider still providing the pn-buildlist (although correct and derived from task-depends)?

Cheers
Tobias