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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare Release 31.b5 #2962

Merged
merged 29 commits into from
May 17, 2022
Merged

Prepare Release 31.b5 #2962

merged 29 commits into from
May 17, 2022

Conversation

pombredanne
Copy link
Member

@pombredanne pombredanne commented May 17, 2022

This PR is to prepare the 31.0.0b5 beta release.
Key changes include several bug fixes thanks to new commoncode and plugincode libraries.
And more stability of the updated package handling code.

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 馃搧

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Either with Package.get_packages_files(codebase) to get the files of a
package in a codebase, or with get_files_for_packages(codebase) to list
all the files and the package_uid they belong to.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
This way it is possible to focus a scan only on some packages types
and not always boil the ocean.

For this we now have two lists of DatafileHandlers: one for system
packages and one for application packages.

The new UX is to have a change in the command line options:
--package detects only application packages (which basically is what it
was doing in the previous release)
--system-package is new and detects only system packages.
These two options can be combined to detect all package types.

Several functions now accept new "application=True, system=False"
arguments


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>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
The new commoncode.resource has an efficient get_resource() function
to lookup a resource by path.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Always strip leading and trailing slahes from paths.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Also set the correct output format version to 2.0. The latest version
was 1.0

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>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Use instead Resource.has_parent()

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Thete are new path prefixes added to each merged codebase

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We need to adopt a different approach when a codebase has a single
resource and when the scan is done with "strip_root" which is a common
case in tests.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Also use the --system-package option correctly

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Also use the --system-package option correctly
* Remove/rename dangling JSON expected test results file

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
AlpineInstalledDatabaseHandler.parse was making an incorrect call and
was not tested. This is now tested with a mock rootfs extracted from
a recent Alpine docker image and called correctly.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
resourec.parent can be null so we better guard against this.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Until the beta cycle is completed

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
- Ensure we correctly dela with installed RPM dbs in
  BaseRpmInstalledDatabaseHandler.parse() and
  BaseRpmInstalledDatabaseHandler.assemble() with the new commoncode.
  In particular lookup the Codebase Resources by path directly
  and properly search and tag file_references and
  missing_file_references.

- Add en to end test with a mock Fedora rootfs
- Add minimal, incomplete support for RPM distros in distro.py

- and other misc. code formatting and minor documentation updates.

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

All green .... merging now!

@pombredanne pombredanne merged commit 539e21d into develop May 17, 2022
@pombredanne pombredanne deleted the prepare-31b5 branch May 17, 2022 22:46
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

1 participant