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

Improve coverage tool for P3 Analysis Library integration #41

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Commits on Mar 21, 2024

  1. Add cbicov utility to package

    Currently identical to the old etc/coverage.py script, but renamed.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    47a4e49 View commit details
    Browse the repository at this point in the history
  2. Change metavar convention

    Using angle brackets, similar to how commands like git behave, allows us to use
    metavar names that contain spaces and are easier to read.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    04dab31 View commit details
    Browse the repository at this point in the history
  3. Add -S option to cbicov

    This option enables cbicov to be run anywhere, instead of requiring it to be
    run in the source directory.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d482c3c View commit details
    Browse the repository at this point in the history
  4. Run cbicov with an empty codebase

    Using an empty codebase means that cbicov will only generate coverage
    information for files in the specified source directory.
    
    Pre-populating the codebase file list restricts our ability to exclude files,
    because files that are explicitly listed in the codebase are assumed to have
    been specified by the user.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    2192c86 View commit details
    Browse the repository at this point in the history
  5. Update coverage schema to 0.2.0

    The new schema allows for coverage files to contain both a file hash
    and (optional) path information.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0a80606 View commit details
    Browse the repository at this point in the history
  6. Include filenames in exported coverage files

    The previous coverage schema required the exporter logic to replace all
    filenames with file hashes unconditionally.
    
    The new exporter logic is able to retain filenames, which can be used to
    compute file hashes when required.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7fe1a6b View commit details
    Browse the repository at this point in the history
  7. Update coverage schema to 0.3.0

    Now requires file name, a unique ID, and a different line representation.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7d2a9ba View commit details
    Browse the repository at this point in the history
  8. Add exclude_patterns to cbicov configuration

    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    9708283 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Keep track of which SLOC exist in a CodeNode

    Previously, a CodeNode could only recover region information in terms
    of an extent (start line and end line) which was not sufficient to
    export the information required by the new coverage format.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    cb126be View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Add missing coverage-0.3.0 schema

    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    57f4ff8 View commit details
    Browse the repository at this point in the history
  2. Remove debug print from exporter

    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    fdb8ec9 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Add -x flag to cbicov

    Handles excludes in an identical manner to codebasin.
    
    Signed-off-by: John Pennycook <john.pennycook@intel.com>
    Pennycook committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    4946eeb View commit details
    Browse the repository at this point in the history