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

ort dependency_graphs #7236

Closed
durr-hackenberg opened this issue Jul 3, 2023 · 2 comments
Closed

ort dependency_graphs #7236

durr-hackenberg opened this issue Jul 3, 2023 · 2 comments
Labels
analyzer About the analyzer tool question An issue that is actually a question reporter About the reporter tool

Comments

@durr-hackenberg
Copy link

Hello,
is there somewhere a description how to generate the dependency graph from ORT Analyser?
I want to render this structure in JavaScript but it is not so simple to understand how the structure was created. Is there any Documentation about that topic ?

What I have understood so far:

  1. So I currently understand that the "scopes" creating the roots of the tree.
  2. The nodes array have "pkg" and "fragment", what are the different ?
  3. "edges" creating the end of the branch ? "from" and "to" are selecting the range of packages ?
  4. How do the indexes belong together ? I think somehow you have to be able to determine which edge/node belongs to which dependency. What array index determines that ?

Thank you!

@sschuberth
Copy link
Member

Depending on the package manager, ORT currently uses two different internal formats to store the dependency graph (also see #3825). But it is anyway highly recommended not to parse ORT's result file format directly, as it's an internal format that might change any at time, breaking things on your side.

Instead, you should probably consider writing a custom / private ORT reporter plugin. Maybe you'd also be interested in #6636.

@sschuberth sschuberth added question An issue that is actually a question analyzer About the analyzer tool reporter About the reporter tool labels Jul 3, 2023
@durr-hackenberg
Copy link
Author

Thank you for that infos, I will check the plugin part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer About the analyzer tool question An issue that is actually a question reporter About the reporter tool
Projects
None yet
Development

No branches or pull requests

2 participants