fix: maven dverbose scope collisions failures - #5880
Merged
Conversation
Contributor
|
@gemaxim nice, thanks for this. Some questions:
|
Contributor
Author
|
@dotkas thanks for the comms.
|
gemaxim
force-pushed
the
fix/maven-dverbose-scope-collision
branch
from
May 8, 2025 07:09
25c1195 to
67a2331
Compare
dotkas
approved these changes
May 8, 2025
gemaxim
force-pushed
the
fix/maven-dverbose-scope-collision
branch
from
May 8, 2025 08:31
67a2331 to
1325abd
Compare
gemaxim
force-pushed
the
fix/maven-dverbose-scope-collision
branch
from
May 8, 2025 09:04
1325abd to
0a48b96
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Submission Checklist
What does this PR do?
Fixes a bug in the maven Dverbose graph building algorithm for specific cases where there are collisions of scope for some packages from the '-Dverbose' maven output.
These 3 PRs come together:
snyk/snyk-mvn-plugin#188 - split of dverbose/not dverbose graph build functions. dverbose function includes the fix where we use scope in the package key for visited + correct queue push in the bfs.
snyk/snyk-mvn-plugin#186
snyk/snyk-mvn-plugin#187
Where should the reviewer start?
This PR explains the fix: snyk/snyk-mvn-plugin#188 and also includes a fixture to represent the use case for the bug.
How should this be manually tested?
Using this pom.xml. Run snyk test/monitor -- -Dverbose or snyk sbom.
Before the fix:
parentNodeId does not existerror.With fix: successful response.
What's the product update that needs to be communicated to CLI users?
Fix for maven sbom and test/monitor with -- -Dverbose affecting scope collisions from the maven Dverbose command output (
parentNodeId does not existerror).What are the relevant tickets?
Common issue: OSM-2676