-
-
Notifications
You must be signed in to change notification settings - Fork 627
Add Package Instances #2691 #2825
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
Conversation
37434fc to
4665b2d
Compare
Adds the PackageInstance class and functions to group package manifests and create a package instance out of them. Adds a sample example case for python. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Adds functions to merge package data from multiple package manifests into a package instance. Adds tests for a simple python manifests case. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Creates PackageManifest classes for cran description manifests and overrides the methods for detection and PackageManifest creation. See #2748 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Creates PackageManifest class for maven pom.xml manifests and overrides the methods for detection and PackageManifest creation. See #2748 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
4665b2d to
695ae3b
Compare
JonoYang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AyanSinhaMahapatra Initial work on the PackageInstance model looks good. I just have some minor things I pointed out.
Modifies package instance tests to remove package_uuid fields, and adds tests for package instance/manifest type uniqueness. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Adds package_uuid as the pURL string for the package instance, with it's UUID as a qualifier in the pURL. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
|
re: #2825 (comment)
There are three ways to handle these cases:
The more generic solution is 2. ... use mock. |
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Adds `for_packages` attribute to files to have `package_uuid` fields for the package instance this file belongs to. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
8768acc to
ddcd536
Compare
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
ddcd536 to
beeef5a
Compare
Modify and rename the resource-level attribute added for a package scan to "package_data", replacing "package_manifests". Also replaces "package_manifest_paths" in top-level "packages" to "package_data_paths". Changes API function get_package_manifests to get_package_data. Also renames other variables with similar naming. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Regenate tests after "package_manifests" -> "package_data" renaming and add the corresponding chages to the test files. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Adds DependencyInstance to packagedcode models. Adds top-level dependencies list for DependencyInstance objects. Adds DependencyInstance creation to process_codebase in packagedcode plugin. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Regenerates test expectations with top-level `dependencies` list. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Modify `remove_package_uuid` flag to `remove_instance_uuid` to include dependencies. Add `ignore_instance_uuid` attribute and a new test that has UUIDs in the test file. Add XFAIL for failing test. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Add node_modules as ignored paths for NPM package instance creation. Regenerate test expectations after merging from develop. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
27ca9ac to
7497407
Compare
Adds fix for nuget and maven bugs which were in the way of activating their respective package instance creation. Also fixes URL creation for lockfiles. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
2366754 to
32c160b
Compare
Package checksums were being wrongly ignored in package instance data update from detected package data, this commit fixes that. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
32c160b to
b6bb763
Compare
Update Package->PackageData, PackageInstance->Package and PackageData->PackageDataFile for consistency. Also rename "package_data_paths" to "package_data_files" and "is_package_data" to "is_package_data_file". Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
This updates the CHANGELOG with details about specific changes in package detection, in the API and the data model. Also bumps the scancode data format to 3.0.0 as there are major data format changes. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Rename "requirement" to "extracted_requirement" and add new attribute "resolved_package". Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
7c95531 to
376abc6
Compare
|
@pombredanne This is ready! |
pombredanne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks! merging now.
This PR adds the PackageInstance class and functions to group package
manifests and package data as top level package instances.
Existing package data are ported to this new approach.
Reference: #2098
Reference: #2691
Reference: #2692
Reference: #2693
Reference: #2843
Reference: #2652
Signed-off-by: Ayan Sinha Mahapatra ayansmahapatra@gmail.com
Tasks
Run tests locally to check for errors.