Skip to content

RDKEMW-14533: Coverity inclusion - fork code check#76

Closed
PreethiALPI wants to merge 1 commit into
rdkcentral:developfrom
PreethiALPI:develop
Closed

RDKEMW-14533: Coverity inclusion - fork code check#76
PreethiALPI wants to merge 1 commit into
rdkcentral:developfrom
PreethiALPI:develop

Conversation

@PreethiALPI

Copy link
Copy Markdown

Reason for change: Inclusion of coverity for BT
Test Procedure: check action's workflow logs if succeeded
Risks: Low
Priority: P2

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:30
@PreethiALPI PreethiALPI requested a review from a team as a code owner June 22, 2026 10:30

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

This PR adds a GitHub Actions workflow and supporting shell scripts to build BT-Core in a native (containerized) CI environment, intended to support Coverity integration / fork build checks.

Changes:

  • Added build_dependencies.sh to install build prerequisites and stage external headers/libs (telemetry + legacy BlueZ headers).
  • Added cov_build.sh to bootstrap autotools, configure, and build the component.
  • Added .github/workflows/native_full_build.yml to run the dependency setup and build in CI.

Reviewed changes

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

File Description
cov_build.sh Adds an autotools bootstrap + configure + build script for CI/Coverity builds.
build_dependencies.sh Installs packages, clones upstream deps, and creates stub telemetry + legacy BlueZ headers.
.github/workflows/native_full_build.yml Introduces a container-based GitHub Actions workflow to run the scripts on PRs/pushes.

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

Comment thread cov_build.sh
Comment on lines +8 to +12
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
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
Comment on lines +26 to +27
make -C src/bt-ifce -j$(nproc)
make -C src -j$(nproc)
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
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 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
# Checkout
# ----------------------------------------
- name: Checkout source
uses: actions/checkout@v6
native-build:
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest
@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