Skip to content

RDKEMW-14533: Coverity inclusion changes for core#74

Closed
PreethiALPI wants to merge 1 commit into
rdkcentral:developfrom
PreethiALPI:RDKEMW-14533_new_core
Closed

RDKEMW-14533: Coverity inclusion changes for core#74
PreethiALPI wants to merge 1 commit into
rdkcentral:developfrom
PreethiALPI:RDKEMW-14533_new_core

Conversation

@PreethiALPI

Copy link
Copy Markdown

Reason for change: Inclusion of coverity for BT
Test Procedure: NA
Risks: Low
Priority: P2

Copilot AI review requested due to automatic review settings June 22, 2026 06:25
@PreethiALPI PreethiALPI requested a review from a team as a code owner June 22, 2026 06:25

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.

Pull request overview

Adds a native (Ubuntu) build workflow plus helper scripts intended to support Coverity enablement by bootstrapping autotools, installing dependencies, and building BT-Core in CI.

Changes:

  • Added build_dependencies.sh to install system packages and stage external telemetry/BlueZ headers + a telemetry stub library.
  • Added cov_build.sh to bootstrap autotools, configure, and build the project.
  • Added GitHub Actions workflow to run dependency setup + native build on develop pushes/PRs.

Reviewed changes

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

File Description
cov_build.sh New build script to bootstrap autotools, configure, and compile the project in a Coverity-friendly way.
build_dependencies.sh New dependency/setup script that installs packages and stages external headers/libs required for a native build.
.github/workflows/native_full_build.yml New CI workflow to run the above scripts on develop pushes and PRs.

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

Comment thread build_dependencies.sh

echo "Setting up telemetry stub..."

git clone https://github.com/rdkcentral/telemetry.git
Comment thread build_dependencies.sh
Comment on lines +19 to +23
mkdir -p ${WORKSPACE}/external/include
mkdir -p ${WORKSPACE}/external/lib

cp telemetry/include/telemetry_busmessage_sender.h ${WORKSPACE}/external/include/
cp telemetry/include/telemetry2_0.h ${WORKSPACE}/external/include/
Comment thread build_dependencies.sh
Comment on lines +55 to +56
sed -i '1i#include <stdbool.h>\n' \
${WORKSPACE}/external/include/bluetooth/audio/ipc.h
Comment thread cov_build.sh
export CXXFLAGS="-Wno-error"
export LD_LIBRARY_PATH="${WORKSPACE}/external/lib"

ac_cv_header_telemetry_busmessage_sender_h=yes ./configure
Comment thread cov_build.sh
export LDFLAGS="-L${WORKSPACE}/external/lib"
export CFLAGS="-Wno-error"
export CXXFLAGS="-Wno-error"
export LD_LIBRARY_PATH="${WORKSPACE}/external/lib"
@PreethiALPI PreethiALPI force-pushed the RDKEMW-14533_new_core branch from 3f0fed9 to ecce02e Compare June 22, 2026 06:53
Copilot AI review requested due to automatic review settings June 22, 2026 09:12
@PreethiALPI PreethiALPI force-pushed the RDKEMW-14533_new_core branch from ecce02e to 7979a9c Compare June 22, 2026 09:12
@PreethiALPI PreethiALPI force-pushed the RDKEMW-14533_new_core branch from 7979a9c to fce57cb Compare June 22, 2026 09:13

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.

Pull request overview

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

Comment thread cov_build.sh
Comment on lines +21 to +23

ac_cv_header_telemetry_busmessage_sender_h=yes ./configure

Comment thread build_dependencies.sh
Comment on lines +25 to +34
cat << 'EOF' > telemetry_stub.c
int t2_init(void) { return 0; }
int t2_event_s(const char* n, const char* v) { return 0; }
int t2_event_f(const char* n, float v) { return 0; }
int t2_event_d(const char* n, double v) { return 0; }
EOF

gcc -shared -fPIC telemetry_stub.c \
-o ${WORKSPACE}/external/lib/libtelemetry_msgsender.so

Comment thread build_dependencies.sh
Comment on lines +15 to +18
echo "Setting up telemetry stub..."

git clone https://github.com/rdkcentral/telemetry.git

@PreethiALPI PreethiALPI force-pushed the RDKEMW-14533_new_core branch from fce57cb to 9b74269 Compare June 22, 2026 09:20
@PreethiALPI PreethiALPI changed the title RDKEMW-14533: Coverity inclusion changes RDKEMW-14533: Coverity inclusion changes for core Jun 22, 2026
Copilot AI review requested due to automatic review settings June 22, 2026 09:40
@PreethiALPI PreethiALPI force-pushed the RDKEMW-14533_new_core branch from 9b74269 to 283a642 Compare June 22, 2026 09:40

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.

Pull request overview

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

Comment thread build_dependencies.sh
Comment on lines +4 to +11
echo "Installing system dependencies..."

sudo apt-get update
sudo apt-get install -y \
autoconf automake libtool pkg-config \
gcc g++ make \
libglib2.0-dev libdbus-1-dev libbluetooth-dev \
git
Comment thread build_dependencies.sh

echo "Setting up telemetry stub..."

git clone https://github.com/rdkcentral/telemetry.git
Comment thread build_dependencies.sh

echo "Setting up BlueZ legacy headers..."

git clone https://github.com/bluez/bluez.git
Comment thread cov_build.sh
Comment on lines +16 to +20
export CPPFLAGS="-I${WORKSPACE}/external/include"
export LDFLAGS="-L${WORKSPACE}/external/lib"
export CFLAGS="-Wno-error"
export CXXFLAGS="-Wno-error"
export LD_LIBRARY_PATH="${WORKSPACE}/external/lib"
@PreethiALPI PreethiALPI force-pushed the RDKEMW-14533_new_core branch from 283a642 to 55b4914 Compare June 22, 2026 09:50
Reason for change: Inclusion of coverity for BT
Test Procedure: check action's workflow logs if succeeded
Risks: Low
Priority: P2

Signed-off-by: ppalan289 <preethi_palanisamy@comcast.com>
Copilot AI review requested due to automatic review settings June 22, 2026 10:23
@PreethiALPI PreethiALPI force-pushed the RDKEMW-14533_new_core branch from 55b4914 to 6455e01 Compare June 22, 2026 10:23

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.

Pull request overview

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

Comment on lines +13 to +14
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest
Comment thread cov_build.sh
Comment on lines +16 to +20
export CPPFLAGS="-I${WORKSPACE}/external/include"
export LDFLAGS="-L${WORKSPACE}/external/lib"
export CFLAGS="-Wno-error"
export CXXFLAGS="-Wno-error"
export LD_LIBRARY_PATH="${WORKSPACE}/external/lib"
Comment thread cov_build.sh
export CXXFLAGS="-Wno-error"
export LD_LIBRARY_PATH="${WORKSPACE}/external/lib"

ac_cv_header_telemetry_busmessage_sender_h=yes ./configure
Comment thread build_dependencies.sh

echo "Setting up telemetry stub..."

git clone https://github.com/rdkcentral/telemetry.git
Comment thread build_dependencies.sh
Comment on lines +25 to +30
cat << 'EOF' > telemetry_stub.c
int t2_init(void) { return 0; }
int t2_event_s(const char* n, const char* v) { return 0; }
int t2_event_f(const char* n, float v) { return 0; }
int t2_event_d(const char* n, double v) { return 0; }
EOF
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 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.

3 participants