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

Resolve dependencies from lockfiles #1244

Merged
merged 14 commits into from
Jul 1, 2024
Merged

Conversation

@AyanSinhaMahapatra AyanSinhaMahapatra marked this pull request as draft May 22, 2024 09:54
Copy link
Contributor

@tdruez tdruez left a comment

Choose a reason for hiding this comment

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

It's a good start. We are missing unit tests though.

scanpipe/pipes/scancode.py Outdated Show resolved Hide resolved
Reference: #1237
Reference: #1066
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the resolve-dependencies-from-lockfile branch from adc55dc to 5cf11ac Compare June 13, 2024 14:42
@AyanSinhaMahapatra AyanSinhaMahapatra marked this pull request as ready for review June 13, 2024 14:58
scanpipe/migrations/0061_dependency_resolver_update.py Outdated Show resolved Hide resolved
scanpipe/filters.py Show resolved Hide resolved
scanpipe/models.py Show resolved Hide resolved
scanpipe/models.py Show resolved Hide resolved
scanpipe/models.py Show resolved Hide resolved
scanpipe/pipes/__init__.py Outdated Show resolved Hide resolved
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Resolves dependency for cases where multiple requirements
are resolved by one package and all the version requirements
are joined for that package.

Reference: #1237
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
scanpipe/models.py Outdated Show resolved Hide resolved
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the resolve-dependencies-from-lockfile branch from ddead3b to 60050fe Compare June 19, 2024 11:17
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the resolve-dependencies-from-lockfile branch from 60050fe to 65e652d Compare June 19, 2024 13:59
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Handle various lockfile cases where:
* Same package/dependencies are present in different lockfiles
* Independent lockfiles without a manifest and root package
* Ecosystems which have only a single version of package in
  their environment
* Dependency graphs where a resolved package can have many
  parent packages.

Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the resolve-dependencies-from-lockfile branch from 10eae0c to 795a740 Compare June 27, 2024 14:52
@AyanSinhaMahapatra
Copy link
Member Author

@tdruez ready for review again!

Copy link
Contributor

@tdruez tdruez left a comment

Choose a reason for hiding this comment

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

@AyanSinhaMahapatra That looks good, see my minor suggestions.
Also, do you think we have a good enough test coverage for the new resolution features?

scanpipe/models.py Show resolved Hide resolved
scanpipe/models.py Show resolved Hide resolved
scanpipe/pipes/__init__.py Outdated Show resolved Hide resolved
scanpipe/pipes/scancode.py Outdated Show resolved Hide resolved
scanpipe/tests/test_pipelines.py Outdated Show resolved Hide resolved
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the resolve-dependencies-from-lockfile branch from abaaf95 to 9e279b5 Compare June 28, 2024 11:29
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the resolve-dependencies-from-lockfile branch from 9e279b5 to 44711ea Compare June 28, 2024 11:34
Copy link
Contributor

@tdruez tdruez left a comment

Choose a reason for hiding this comment

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

@AyanSinhaMahapatra Looks good, almost ready for merge.
See a few minor change requests.

We are missing a changelog entry that summarize all the changes of this PR.
It's quite an important one.

scanpipe/pipes/__init__.py Show resolved Hide resolved
scanpipe/pipes/__init__.py Outdated Show resolved Hide resolved
scanpipe/pipes/scancode.py Outdated Show resolved Hide resolved
@AyanSinhaMahapatra
Copy link
Member Author

@tdruez thanks, I've addressed your comments and added the CHANGELOG entries, ready for review again.

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.

2 participants