RDKEMW-18082: ctrlm coverity cleanup#225
Conversation
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
| # 2. Clone the required repositories | ||
|
|
||
| XRSDK_REF="1.0.13" | ||
| XRSDK_REF="feature/RDKEMW-18082" |
There was a problem hiding this comment.
Will update once xr-voice-sdk changes are merged
There was a problem hiding this comment.
perhaps we can point this to "main" so it always uses the latest release version?
There was a problem hiding this comment.
Yes will update this once we merge change for xr-voice-sdk
| # We can remove this if added to upstream testframework | ||
| git -C entservices-testframework apply "$GITHUB_WORKSPACE/ci/mocks/devicesettings_ctrlm.patch" | ||
| git clone --depth 1 --filter=blob:none --branch feature/RDKEMW-18082 https://github.com/rdkcentral/entservices-testframework.git | ||
|
|
There was a problem hiding this comment.
Will update once changes to testframework have been merged
There was a problem hiding this comment.
Pull request overview
This PR follows up on prior Coverity/CI integration feedback by removing CI-only shim/patch artifacts and adjusting the native CI dependency/build flow to rely on upstream fixes (via feature branches) rather than local patch layers.
Changes:
- Removes CI shims/patch files (
xlog_ci_compat.h,testframework_overrides.h,devicesettings_ctrlm.patch) and updates CI build flags accordingly. - Updates
ci/build_dependencies.shto build and install realxr-voice-sdkheaders/libs via CMake instead of copying/stubbing. - Adds explicit
std::using-declarations inctrlm_utils.cppto replace the removed CI namespace shim behavior.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ctrlm_utils.cpp | Adds explicit using std::... declarations to replace reliance on CI shim behavior. |
| ci/cov_build.sh | Removes forced inclusion of deleted CI shim/override headers. |
| ci/build_dependencies.sh | Switches dependency strategy to build/install xr-voice-sdk and drops local testframework patching. |
| ci/mocks/xlog_ci_compat.h | Deleted (CI namespace-compat shim removed). |
| ci/mocks/testframework_overrides.h | Deleted (CI mock gap overrides removed). |
| ci/mocks/devicesettings_ctrlm.patch | Deleted (CI-time patch for testframework mocks removed). |
| if(session->packets_processed > 0) { | ||
| uint32_t stream_duration = session->packets_processed * 20; // assume 20 ms per packet | ||
| uint32_t samples_per_packet = 320; // 16 kHz samples at 20 ms per packet | ||
| // uint32_t samples_per_packet = 320; // 16 kHz samples at 20 ms per packet |
There was a problem hiding this comment.
samples_per_packet is an unused variable, not sure if we want to remove, log it, or something else
| # 2. Clone the required repositories | ||
|
|
||
| XRSDK_REF="1.0.13" | ||
| XRSDK_REF="feature/RDKEMW-18082" |
There was a problem hiding this comment.
perhaps we can point this to "main" so it always uses the latest release version?
| -DSTAGING_BINDIR_NATIVE="/usr/bin" \ | ||
| -DCMAKE_PROJECT_VERSION="1.0.13" | ||
|
|
||
| # xr-voice-sdk adds -Werror unconditionally, strip it for CI until warnings are dealt with |
There was a problem hiding this comment.
follow up ticket for this?
Coverity Issue - Array compared against 0Comparing an array to null is not useful: ""NEVER" != NULL", since the test will always evaluate as true. Medium Impact, CWE-398 How to fixWas ""NEVER"" formerly declared as a pointer? Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Array compared against 0Comparing an array to null is not useful: ""NEVER" != NULL", since the test will always evaluate as true. Medium Impact, CWE-398 How to fixWas ""NEVER"" formerly declared as a pointer? Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Array compared against 0Comparing an array to null is not useful: ""NEVER" != NULL", since the test will always evaluate as true. Medium Impact, CWE-398 How to fixWas ""NEVER"" formerly declared as a pointer? Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Array compared against 0Comparing an array to null is not useful: ""NEVER" != NULL", since the test will always evaluate as true. Medium Impact, CWE-398 How to fixWas ""NEVER"" formerly declared as a pointer? Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
https://ccp.sys.comcast.net/browse/RDKEMW-18082
Addresses comments in a previous ctrlm PR:
Related PRs: