Skip to content

RDKEMW-23662: Exclude dirs for cov scan - #488

Open
Sonajeya31 wants to merge 5 commits into
developfrom
topic/RDKEMW-23662-1
Open

Sonajeya31 wants to merge 5 commits into
developfrom
topic/RDKEMW-23662-1

Conversation

@Sonajeya31

Copy link
Copy Markdown
Contributor

Description

What does this PR change/fix and why?
Exclude directories that are not needed for coverity scan

If there is a corresponding JIRA ticket, please ensure it is in the title of the PR.

Test Procedure

Check for the issues in cov scan

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (doesn't fit into the above categories - e.g. documentation updates)

Requires Bitbake Recipe changes?

  • The base Bitbake recipe (meta-rdk-ext/recipes-containers/dobby/dobby.bb) must be modified to support the changes in this PR (beyond updating SRC_REV)

Copilot AI balanced review requested due to automatic review settings October 1, 2026 11:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Excluding required libocispec sources causes CMake configuration to fail.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Filters non-product directories from the source tree used for Coverity scan builds.

Changes:

  • Creates an external filtered source tree.
  • Excludes selected directories before configuring and building Dobby.
File Description
cov_build.sh Prepares and builds from a filtered source tree.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cov_build.sh
Comment on lines +26 to +31
! -name 'libocispec' \
! -name 'develop' \
! -name 'openspec' \
-exec cp -a {} "${COV_BUILD_SOURCE}/" \;

echo "DEBUG: excluded directories: .git .cov_build_source build tests libocispec develop openspec; keeping install for dependency resolution"

This branch has not been deployed

No deployments
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.

2 participants