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

Release 32.0.0rc1 prep #3150

Merged
merged 90 commits into from
Jan 4, 2023
Merged

Release 32.0.0rc1 prep #3150

merged 90 commits into from
Jan 4, 2023

Conversation

AyanSinhaMahapatra
Copy link
Member

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁

The following images are deprecated in GitHub actions and Azure DevOps:

* `ubuntu-18.04` : actions/runner-images#6002
* `macos-10.15` : actions/runner-images#5583

Due to this there was failing tests due to planned brownouts.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Also update spdx license list version as it was updated previously.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
- Update test fails due to spdx license list update
- Update test fails due to inconsistent rule data

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@AyanSinhaMahapatra
Copy link
Member Author

@pombredanne I've fixed the test failures, but let's keep this open as discussed for the two changes i.e. top level unique license detections and license references as default, I'll open PRs for those into this branch/merge those onto develop and then merge this just before pushing the 32.0.0b1 tag?

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>
@AyanSinhaMahapatra
Copy link
Member Author

@DennisClark I would need your review on the following commit: 088e106 i.e. license additions in scancode-toolkit from spdx license list 3.19

@DennisClark
Copy link
Member

@AyanSinhaMahapatra you are right, thanks. the spdx x11vnc license is the very same as our openssl-exception-gpl-2.0 if you follow the SPDX matching guidelines. So we need to update the SPDX identifier of our license with x11vnc-openssl-exception instead of the current licenseref value and not create a new license.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
We used to vendor parts of python frontmatter and also use it as
a dependency which was problematic. This vendors python-frontmatter
fully and only uses the code needed.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the release-32-rc1-prep branch 2 times, most recently from bca071f to d776a10 Compare December 15, 2022 15:33
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>
* fix bug in debian output plugin
* update plugins to not fetch matched_text from reference data

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
* the license dump CLI option was removed by mistake in a merge
  conflict resolution, this adds it back.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Use sha1 correctly for UUID seed

Reported-by: RayGozer @RayGozer
Reference: #3165
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Also move test utilities to test module

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Prefer copyrght to avoid name collision with the built-in
copyright

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
It kicks in if license or package are requested as a post-scan plugin

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Streamline code now that we do not deal with references in the main
detection.

Improve models accordingly

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Align with latest fixesa nd the move of license details to
license references

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
No deprecated license can participate in detection.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Additional rules and synthetic rules have no URL for now.
The logic to create such URL is now under Rule.rule_url

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
Copy link
Member

@AyanSinhaMahapatra this is ready for your review. The key changes are:

  • the license references are now always created with a new separate post scan plugin. This plugin is not commanded by its own command line option. Instead it is enabled if either the license or package option is requested. Because of this I streamlined or removed quite a bit of license reference-related code.
  • I updated which fields are included in the license and rule references to include many more fields.
  • the package license detection do not contain any license/rule references anymore, this is now only top level.
  • I removed the deprecated "is_license_text" plugin
  • I replaced using md5 with sha1 for Remove MD5 use to allow FIPS compliance. #3165 and eventual future FIPS support
  • I applied cosmetic refactoring and imports cleanup across the codebase

We were missing out certain openssl exception

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
Copy link
Member

Back to green! I am merging this now!

@pombredanne pombredanne merged commit 3021c74 into develop Jan 4, 2023
@pombredanne pombredanne deleted the release-32-rc1-prep branch January 4, 2023 19:13
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.

None yet

3 participants