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

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

Commits on May 13, 2022

  1. Organize imports

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 13, 2022
    Configuration menu
    Copy the full SHA
    ce58241 View commit details
    Browse the repository at this point in the history
  2. Add new methods to collect package files

    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>
    pombredanne committed May 13, 2022
    Configuration menu
    Copy the full SHA
    07df33c View commit details
    Browse the repository at this point in the history
  3. Recognize either app or system packages or both

    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>
    pombredanne committed May 13, 2022
    Configuration menu
    Copy the full SHA
    4d0a38b View commit details
    Browse the repository at this point in the history
  4. Use new commoncode

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 13, 2022
    Configuration menu
    Copy the full SHA
    7062b3b View commit details
    Browse the repository at this point in the history

Commits on May 14, 2022

  1. Organize imports

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 14, 2022
    Configuration menu
    Copy the full SHA
    69c17ce View commit details
    Browse the repository at this point in the history
  2. Use new DATAFILE_HANDLERS in doc and code

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 14, 2022
    Configuration menu
    Copy the full SHA
    59b6ce3 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. Bump version to 31.0.0b5

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 16, 2022
    Configuration menu
    Copy the full SHA
    69a86a8 View commit details
    Browse the repository at this point in the history
  2. Use pre-released version of commoncode

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 16, 2022
    Configuration menu
    Copy the full SHA
    6731d24 View commit details
    Browse the repository at this point in the history
  3. Use new resource for license reference

    The new commoncode.resource has an efficient get_resource() function
    to lookup a resource by path.
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 16, 2022
    Configuration menu
    Copy the full SHA
    27fb42e View commit details
    Browse the repository at this point in the history
  4. Correct test expectations

    Always strip leading and trailing slahes from paths.
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 16, 2022
    Configuration menu
    Copy the full SHA
    e0f9167 View commit details
    Browse the repository at this point in the history
  5. Bump commoncode to latest beta2

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 16, 2022
    Configuration menu
    Copy the full SHA
    b82c5de View commit details
    Browse the repository at this point in the history
  6. Format CHANGELOG correctly.

    Also set the correct output format version to 2.0. The latest version
    was 1.0
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 16, 2022
    Configuration menu
    Copy the full SHA
    7c1ea0d View commit details
    Browse the repository at this point in the history
  7. Use new commoncode

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 16, 2022
    Configuration menu
    Copy the full SHA
    9a78cd7 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. Fix code syntax in deprecated code

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    4eaeb73 View commit details
    Browse the repository at this point in the history
  2. Adjust help test for new --system-package option

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    2e7afc4 View commit details
    Browse the repository at this point in the history
  3. Drop using Codebase(strip_root)

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    44c209a View commit details
    Browse the repository at this point in the history
  4. Do not use removed Resource.pid

    Use instead Resource.has_parent()
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    040d3ae View commit details
    Browse the repository at this point in the history
  5. Use new VirtualCode approach

    Thete are new path prefixes added to each merged codebase
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    9dcc1ff View commit details
    Browse the repository at this point in the history
  6. Adapt datafile_path handling to new Resource.path

    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>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    f4f1564 View commit details
    Browse the repository at this point in the history
  7. Bump plugincode and commoncode

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    4b1fa75 View commit details
    Browse the repository at this point in the history
  8. Rename debian system-package tests

    * Also use the --system-package option correctly
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    7cfe7c7 View commit details
    Browse the repository at this point in the history
  9. Rename win_reg system-package tests

    * Also use the --system-package option correctly
    * Remove/rename dangling JSON expected test results file
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    22c2007 View commit details
    Browse the repository at this point in the history
  10. Use the --system-package option correctly

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    6c825a5 View commit details
    Browse the repository at this point in the history
  11. Detect alpine installed packages end-to-end

    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>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    4f9affd View commit details
    Browse the repository at this point in the history
  12. Improve how we search for Windows roots

    resourec.parent can be null so we better guard against this.
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    050a76d View commit details
    Browse the repository at this point in the history
  13. Pin commoncode and plugincode for now

    Until the beta cycle is completed
    
    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    a035084 View commit details
    Browse the repository at this point in the history
  14. Remove unused test file

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    80a46b6 View commit details
    Browse the repository at this point in the history
  15. Ensure we can detect installed RPMs end to end

    - 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>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    455c1ac View commit details
    Browse the repository at this point in the history
  16. Do not check headers in RPM tests

    Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
    pombredanne committed May 17, 2022
    Configuration menu
    Copy the full SHA
    3ed8e7f View commit details
    Browse the repository at this point in the history