Skip to content

RDKEMW-14537: Coverity integration for ctrlm#199

Merged
msmith113 merged 76 commits into
developfrom
feature/RDKEMW-14537
May 5, 2026
Merged

RDKEMW-14537: Coverity integration for ctrlm#199
msmith113 merged 76 commits into
developfrom
feature/RDKEMW-14537

Conversation

@msmith113
Copy link
Copy Markdown
Contributor

@msmith113 msmith113 commented Apr 8, 2026

https://ccp.sys.comcast.net/browse/RDKEMW-14537

  • Creates a native build in CI which is needed for coverity integration.
  • Added a ci folder which contains build scripts, mocks, patches, and other dependencies needed for a native ci build.

Created RDKEMW-18082 to address any unresolved comments/suggestions

Comment thread .github/workflows/native_full_build.yml Fixed
Comment thread .github/workflows/native_full_build.yml Fixed
@msmith113 msmith113 force-pushed the feature/RDKEMW-14537 branch from 61d9bce to 895e258 Compare April 10, 2026 18:53
@msmith113 msmith113 marked this pull request as ready for review April 10, 2026 18:56
@msmith113 msmith113 requested a review from a team as a code owner April 10, 2026 18:56
Copilot AI review requested due to automatic review settings April 10, 2026 18:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Actions-native build path intended to support Coverity analysis for the Control Manager (ctrlm) project by provisioning dependencies in CI and running a specialized CMake/Ninja build.

Changes:

  • Introduces a dependency bootstrap script that installs packages, clones/builds required Thunder/entservices components, and creates stub headers/libs for external deps.
  • Adds a Coverity-oriented build script that configures ctrlm with mocks/stubs and attempts to neutralize -Werror for analysis builds.
  • Adds a new GitHub Actions workflow to run the above in a containerized Ubuntu environment.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
build_dependencies.sh Installs deps, clones/builds Thunder + entservices-apis, generates stub headers/libs for native CI buildability.
cov_build.sh Configures and builds ctrlm with CMake/Ninja using mocks/stubs and Coverity-friendly flags.
.github/workflows/native_full_build.yml CI workflow wiring to run dependency + build scripts in a container.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/build_dependencies.sh
Comment thread build_dependencies.sh Outdated
Comment thread cov_build.sh Outdated
Comment thread cov_build.sh Outdated
Comment thread .github/workflows/native_full_build.yml Outdated
Comment thread .github/workflows/native_full_build.yml
Copilot AI review requested due to automatic review settings April 10, 2026 19:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/build_dependencies.sh Outdated
Comment thread ci/build_dependencies.sh Outdated
Comment thread .github/workflows/native_full_build.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 10, 2026 19:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/build_dependencies.sh
Comment thread ci/build_dependencies.sh
Comment thread ci/build_dependencies.sh Outdated
Comment thread ci/cov_build.sh
Comment thread build_dependencies.sh Outdated
Copilot AI review requested due to automatic review settings April 14, 2026 16:31
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Copyright scan failure
Commit: 126b843
Report detail: https://gist.github.com/rdkcmf-jenkins/6b3be5cc0efe672bdf29f7bbaf5be38b'

Copilot AI review requested due to automatic review settings April 21, 2026 19:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/mocks/devicesettings_ctrlm.patch Outdated
Comment thread ci/mocks/testframework_overrides.h Outdated
Copilot AI review requested due to automatic review settings April 22, 2026 16:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/build_dependencies.sh
Comment thread ci/build_dependencies.sh
Comment thread ci/build_dependencies.sh Outdated
Comment thread ci/cov_build.sh
Copy link
Copy Markdown
Contributor

@dwolaver dwolaver left a comment

Choose a reason for hiding this comment

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

Looks good! Mostly some suggestions for future improvements...

@@ -0,0 +1,40 @@
--- a/Tests/mocks/devicesettings.h 2026-04-21 19:12:58.154981897 +0000
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.

Should we create a follow up ticket to eliminate this patch?

@@ -0,0 +1,57 @@
/*
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.

I imagine all of this will be removed in RDKEMW-17087 so it's fine for now.

Comment thread ci/mocks/xlog_ci_compat.h
*
* The production rdkx_logger.h is included transitively everywhere via
* ctrlm_log.h. In the Yocto build the SDK headers pull several std:: names
* into the global namespace. A handful of ctrlm TUs (e.g. ctrlm_utils.cpp)
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.

Seems like we may be better off removing this whole compatibility file by modifying the files that rely on the stuff below to build in CI. This can be done in a follow up ticket too.

Comment thread ci/build_dependencies.sh
mkdir -p "${HEADERS_DIR}/rdk/iarmmgrs-hal"
mkdir -p "${XRSDK_HEADERS_DIR}"

# Copy real xr-voice-sdk headers.
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.

This is ok for now. However, I wonder if this would be cleaner if it just called cmake on the xr-voice-sdk repo with a target that just delivers the header files?

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 12:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 13:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/cov_build.sh
msmith113 and others added 2 commits May 5, 2026 13:23
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 13:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/mocks/testframework_overrides.h
@msmith113 msmith113 dismissed mhughesacn’s stale review May 5, 2026 13:42

We no longer need license file updates as we removed all of the offending files

@msmith113 msmith113 removed the request for review from mhughesacn May 5, 2026 17:22
@msmith113 msmith113 merged commit 6ea3431 into develop May 5, 2026
9 checks passed
@msmith113 msmith113 deleted the feature/RDKEMW-14537 branch May 5, 2026 17:24
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants