Skip to content

Scripts for coverity integration#41

Open
ABIRAMI-S wants to merge 3 commits into
developfrom
topic/coverity
Open

Scripts for coverity integration#41
ABIRAMI-S wants to merge 3 commits into
developfrom
topic/coverity

Conversation

@ABIRAMI-S

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 30, 2026 10:05
Comment on lines +11 to +28
name: Build sceneset component in github rdkcentral
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
bash -x build_dependencies.sh

- name: Native build
run: |
bash -x cov_build.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/sceneset/41/rdkcentral/sceneset

  • Commit: 6a0230b

Report detail: gist'

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 CI automation scripts and a GitHub Actions workflow to build SceneSet (and its external dependencies) in a native/container environment as groundwork for Coverity integration.

Changes:

  • Added build_dependencies.sh to install packages, fetch/build third-party dependencies, and install CMake if needed.
  • Added cov_build.sh to configure and build SceneSet via CMake/Ninja.
  • Added .github/workflows/native_full_build.yml to run the above scripts in a container on pushes/PRs.

Reviewed changes

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

File Description
cov_build.sh Adds a CMake/Ninja build script for SceneSet.
build_dependencies.sh Adds dependency installation + cloning/building required upstream components.
.github/workflows/native_full_build.yml Adds a CI workflow to run dependency build + native build in a container.

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

Comment thread build_dependencies.sh
Comment on lines +32 to +35
CURRENT_CMAKE_VERSION=$(cmake --version | head -n1 | awk '{print $3}')
REQUIRED_VERSION="3.16"
if [ "$(printf '%s\n' "$REQUIRED_VERSION" "$CURRENT_CMAKE_VERSION" | sort -V | head -n1)" != "$REQUIRED_VERSION" ]; then
echo "Current CMake version $CURRENT_CMAKE_VERSION is less than required $REQUIRED_VERSION"
Comment thread build_dependencies.sh
Comment on lines +5 to +7
GITHUB_WORKSPACE="${PWD}"
ls -la ${GITHUB_WORKSPACE}
cd ${GITHUB_WORKSPACE}
Comment thread build_dependencies.sh
Comment on lines +12 to +19
apt update
apt install -y libsqlite3-dev libcurl4-openssl-dev valgrind lcov clang libsystemd-dev \
libboost-all-dev libwebsocketpp-dev meson libcunit1 libcunit1-dev curl wget \
protobuf-compiler-grpc libgrpc-dev libgrpc++-dev libunwind-dev libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev libjsoncpp-dev libyaml-cpp-dev ninja-build \
libarchive-dev libxml2-dev liblz4-dev libssl-dev openssl pkg-config git

pip install jsonref
Comment thread build_dependencies.sh Outdated
Comment on lines +71 to +81
git clone --branch R4.4.3 https://github.com/rdkcentral/ThunderTools.git

git clone --branch R4.4.1 https://github.com/rdkcentral/Thunder.git

git clone --branch develop https://github.com/rdkcentral/entservices-apis.git

git clone -b develop https://github.com/rdkcentral/eshelpers.git

git clone -b v1.2.0 https://github.com/rdkcentral/ralf-utils.git

git clone -b develop https://github.com/rdkcentral/libPackage.git
Comment thread cov_build.sh
Comment on lines +24 to +26
GITHUB_WORKSPACE="${PWD}"
ls -la ${GITHUB_WORKSPACE}
cd ${GITHUB_WORKSPACE}
Comment on lines +1 to +8
name: Build Component in Native Environment

on:
push:
branches: [ main, 'sprint/**', 'release/**', master, develop ]
pull_request:
branches: [ main, 'sprint/**', 'release/**', master, develop ]

Comment on lines +13 to +15
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/sceneset/41/rdkcentral/sceneset

  • Commit: 62150ed

Report detail: gist'

Copilot AI review requested due to automatic review settings June 30, 2026 12:14

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 13 comments.

Comment thread build_dependencies.sh
Comment on lines +12 to +17
apt update
apt install -y libsqlite3-dev libcurl4-openssl-dev valgrind lcov clang libsystemd-dev \
libboost-all-dev libwebsocketpp-dev meson libcunit1 libcunit1-dev curl wget \
protobuf-compiler-grpc libgrpc-dev libgrpc++-dev libunwind-dev libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev libjsoncpp-dev libyaml-cpp-dev ninja-build \
libarchive-dev libxml2-dev liblz4-dev libssl-dev openssl pkg-config git
Comment thread build_dependencies.sh
libgstreamer-plugins-base1.0-dev libjsoncpp-dev libyaml-cpp-dev ninja-build \
libarchive-dev libxml2-dev liblz4-dev libssl-dev openssl pkg-config git

pip install jsonref
Comment thread build_dependencies.sh
pip install jsonref

############################
# Install CMake 3.22 or higher (required by CMakeLists.txt)
Comment thread build_dependencies.sh
git clone --branch develop https://github.com/rdkcentral/Thunder.git

# Only clone ralf-utils which is required for libralf (needed by sceneset)
git clone -b v1.2.0 https://github.com/rdkcentral/ralf-utils.git
Comment thread build_dependencies.sh
Comment on lines +5 to +7
GITHUB_WORKSPACE="${PWD}"
ls -la ${GITHUB_WORKSPACE}
cd ${GITHUB_WORKSPACE}
Comment thread cov_build.sh
Comment on lines +18 to +19
set -x
set -e
Comment on lines +24 to +28
- name: Native build
run: |
bash -x cov_build.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Comment thread build_dependencies.sh
Comment on lines +71 to +76
git clone --branch R4.4.3 https://github.com/rdkcentral/ThunderTools.git

# Using R4.4.3 (same as ThunderTools) to avoid version mismatches
# R4.4.1 has JSONRPC API issues that require patches
git clone --branch R4.4.3 https://github.com/rdkcentral/Thunder.git 2>/dev/null || \
git clone --branch develop https://github.com/rdkcentral/Thunder.git
jobs:
build-sceneset-on-pr:
name: Build sceneset component in github rdkcentral
runs-on: ubuntu-latest
name: Build sceneset component in github rdkcentral
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest
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.

4 participants