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

fix: missing common maven transitive dependencies #45

Merged
merged 6 commits into from
Sep 5, 2023

Conversation

ruromero
Copy link
Contributor

@ruromero ruromero commented Sep 1, 2023

Description

The dependency:tree plugin omits duplicates but when using the verbose flag the omitted are shown. However the plugin only yields the text type in that case.

I have added the verbose flag to the mvn dependency:tree command and changed how the text file is processed with the text format.

Related issue (if any):
fixes #44

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional information

Related to RHEcosystemAppEng/exhort#135

@ruromero ruromero requested a review from zvigrinberg September 1, 2023 16:00
@ruromero ruromero added the hold Something needs to block this issue from merging label Sep 1, 2023
@ruromero
Copy link
Contributor Author

ruromero commented Sep 1, 2023

Do not merge, it seems the current solution does not load the full sub-tree, only the omitted dependency.

Copy link
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

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

@ruromero I Saw that there was a failure on test - RangeError: Maximum call stack size exceeded - couple of times actually - please check it out at : https://github.com/RHEcosystemAppEng/exhort-javascript-api/actions/runs/6051817204/job/16424074479?pr=45#step:7:107.

It seems that it's either the halting condition of the recursion is not met on such case, or it's using too much space complexity in this recursion on big trees

I'll try to figure out why it's happening for part of the tests ( while working on other tests).

Can you please take a look?

Thanks.

test/providers/java_maven.test.js Outdated Show resolved Hide resolved
zvigrinberg
zvigrinberg previously approved these changes Sep 4, 2023
Copy link
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

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

@ruromero Good Job.
As you could see, i pushed few fixes to your fork, so it will work correctly and all tests will succeeded.
I Approved it - please Merge whenever you are ready ( maybe you want to complete documentation or add something - linting warning for example - see comment below about that - anyway it's not critical at the moment)
Thanks.

src/providers/java_maven.js Outdated Show resolved Hide resolved
src/providers/java_maven.js Outdated Show resolved Hide resolved
@zvigrinberg zvigrinberg changed the title fix: missing common transitive dependencies fix: missing common maven transitive dependencies Sep 4, 2023
@ruromero
Copy link
Contributor Author

ruromero commented Sep 4, 2023

Thanks @zvigrinberg let me validate the use case reported by QE before merging

Copy link
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

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

lgtm

@zvigrinberg zvigrinberg merged commit 4ce56c3 into RHEcosystemAppEng:main Sep 5, 2023
5 checks passed
zvigrinberg added a commit that referenced this pull request Sep 5, 2023
fix: missing common maven transitive dependencies

    ---------

   Signed-off-by: Zvi Grinberg <[email protected]>
   Signed-off-by: Ruben Romero Montes <[email protected]>
   Co-authored-by: Ruben Romero Montes <[email protected]>
zvigrinberg added a commit that referenced this pull request Sep 5, 2023
fix: missing common maven transitive dependencies

---------

Signed-off-by: Zvi Grinberg <[email protected]>
Signed-off-by: Ruben Romero Montes <[email protected]>
Co-authored-by: Ruben Romero Montes <[email protected]>
@ruromero ruromero deleted the dep-tree branch September 5, 2023 19:28
zvigrinberg added a commit that referenced this pull request Sep 5, 2023
fix: missing common maven transitive dependencies

---------

Signed-off-by: Zvi Grinberg <[email protected]>
Signed-off-by: Ruben Romero Montes <[email protected]>
Co-authored-by: Ruben Romero Montes <[email protected]>
@ruromero ruromero removed the hold Something needs to block this issue from merging label Sep 12, 2023
zvigrinberg added a commit to RHEcosystemAppEng/exhort-java-api that referenced this pull request Oct 3, 2023
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.

Missing full path for all transitive dependencies
2 participants