Skip to content

Add support for COMRPC changes in L2Tests plugin in Testframework repo#356

Open
smanes0213 wants to merge 13 commits into
developfrom
L2TestPlugin_COMRPC
Open

Add support for COMRPC changes in L2Tests plugin in Testframework repo#356
smanes0213 wants to merge 13 commits into
developfrom
L2TestPlugin_COMRPC

Conversation

@smanes0213

Copy link
Copy Markdown
Contributor

Reason for change: Add COMRPC Support for L2Tests Plugin
Test Procedure : Run L2 Tests to verify the changes
Version : Major
Risks: Low

@smanes0213
smanes0213 requested a review from a team as a code owner January 7, 2026 08:53

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 support for COMRPC changes in the L2Tests plugin by updating CI/CD workflow configurations. The changes modify both L1 and L2 test workflows to use temporary development branches and adjust build configurations.

Changes:

  • Updated repository references to use L2TestPlugin_COMRPC and Test branches instead of develop
  • Fixed CMake variable name from -DBUILD_TYPE to -DCMAKE_BUILD_TYPE for consistency
  • Removed -Werror compiler flag from L2 test builds

Reviewed changes

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

File Description
.github/workflows/L2-tests.yml Updates repository references to COMRPC development branches, fixes CMAKE_BUILD_TYPE variable, and removes -Werror flag
.github/workflows/L1-tests.yml Updates repository references to COMRPC development branches for consistency with L2 tests

repository: rdkcentral/entservices-inputoutput
path: entservices-inputoutput
ref: develop
ref: L2TestPlugin_COMRPC

Copilot AI Jan 15, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow is using a feature branch reference (L2TestPlugin_COMRPC) instead of a stable branch like develop or a tagged release. This is acceptable for development but should be changed to a stable branch before merging to production. Ensure this is intentional for testing purposes.

Suggested change
ref: L2TestPlugin_COMRPC
ref: develop

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/L2-tests.yml Outdated
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/essos-resmgr.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/HdmiCec.h
-Werror -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=

Copilot AI Jan 15, 2026

Copy link

Choose a reason for hiding this comment

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

Removing -Werror from the compiler flags reduces build strictness and allows warnings to be ignored. This change should be documented in the PR description with justification, especially for production code. If temporary for development, ensure this is reverted before final merge.

Suggested change
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wall -Wno-unused-result -Wno-deprecated-declarations

Copilot uses AI. Check for mistakes.
repository: rdkcentral/entservices-testframework
path: entservices-testframework
ref: develop
ref: L2TestPlugin_COMRPC

Copilot AI Jan 15, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow is using a feature branch reference (L2TestPlugin_COMRPC) instead of a stable branch like develop or a tagged release. This is acceptable for development but should be changed to a stable branch before merging to production. Ensure this is intentional for testing purposes.

Copilot uses AI. Check for mistakes.
repository: rdkcentral/entservices-inputoutput
path: entservices-inputoutput
ref: develop
ref: L2TestPlugin_COMRPC

Copilot AI Jan 15, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow is using a feature branch reference (L2TestPlugin_COMRPC) instead of a stable branch like develop or a tagged release. This is acceptable for development but should be changed to a stable branch before merging to production. Ensure this is intentional for testing purposes.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/L1-tests.yml Outdated
Copilot AI review requested due to automatic review settings January 29, 2026 14:51

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 2 out of 2 changed files in this pull request and generated 5 comments.

Comment on lines 208 to 209
run: rm -rf $GITHUB_WORKSPACE/entservices-apis/jsonrpc/DTV.json

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The L2-tests.yml workflow now includes a patch application step for entservices-apis (lines 182-186 in L2-tests.yml), but L1-tests.yml does not have a corresponding patch step after the entservices-apis checkout.

If the COMRPC changes require patching entservices-apis for L2 tests, consider whether L1 tests also need this patch applied. If L1 tests don't require the patch, this is acceptable, but it should be verified that the 'Test' branch reference and lack of patch application won't cause L1 test failures.

Suggested change
run: rm -rf $GITHUB_WORKSPACE/entservices-apis/jsonrpc/DTV.json
- name: Remove DTV.json from entservices-apis
if: steps.cache.outputs.cache-hit != 'true'
run: rm -rf "$GITHUB_WORKSPACE/entservices-apis/jsonrpc/DTV.json"

Copilot uses AI. Check for mistakes.
- name: Apply patches entservices-apis
run: |
cd $GITHUB_WORKSPACE/entservices-apis
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/comrpc-support-for-l2tests-plugin.patch

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

This patch application step references 'comrpc-support-for-l2tests-plugin.patch' which should exist in the entservices-testframework repository. However, the entservices-testframework checkout on line 117 still references 'develop' branch, not 'L2TestPlugin_COMRPC'. This creates a potential issue:

The patch file may not exist in the 'develop' branch but only in the 'L2TestPlugin_COMRPC' branch. This will cause the workflow to fail when it tries to apply a non-existent patch.

Either:

  1. Update line 117 to checkout 'L2TestPlugin_COMRPC' branch of entservices-testframework, or
  2. Ensure the patch file exists in the 'develop' branch of entservices-testframework before merging this change.
Suggested change
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/comrpc-support-for-l2tests-plugin.patch
if [ -f "$GITHUB_WORKSPACE/entservices-testframework/patches/comrpc-support-for-l2tests-plugin.patch" ]; then
patch -p1 < "$GITHUB_WORKSPACE/entservices-testframework/patches/comrpc-support-for-l2tests-plugin.patch"
else
echo "Patch 'comrpc-support-for-l2tests-plugin.patch' not found in entservices-testframework/patches, skipping."
fi

Copilot uses AI. Check for mistakes.
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/essos-resmgr.h
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/HdmiCec.h
-Werror -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The '-Werror' flag has been removed from the compiler flags. This flag treats all warnings as errors, which is an important quality control measure. Removing it means that code with warnings can now compile successfully, potentially allowing bugs or code quality issues to slip through.

If this removal is intentional (e.g., to work around warnings in new COMRPC code), it should be:

  1. Clearly documented in the PR description
  2. Considered temporary until the warnings are fixed
  3. Re-evaluated to ensure it doesn't mask important issues

If the removal is not essential for COMRPC support, consider keeping '-Werror' to maintain code quality standards.

Suggested change
-Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=
-Wall -Werror -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format=

Copilot uses AI. Check for mistakes.
repository: rdkcentral/entservices-testframework
path: entservices-testframework
ref: develop
ref: L2TestPlugin_COMRPC

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The branch reference has been changed from 'develop' to 'L2TestPlugin_COMRPC', which appears to be a feature branch. Using feature branches in CI workflows can cause workflow failures once the feature branch is merged or deleted. Consider whether this should point to a stable branch like 'develop' or 'main', or if this change should be temporary and reverted before merging.

Copilot uses AI. Check for mistakes.
repository: rdkcentral/entservices-inputoutput
path: entservices-inputoutput
ref: develop
ref: L2TestPlugin_COMRPC

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The branch reference has been changed from 'develop' to 'L2TestPlugin_COMRPC', which appears to be a feature branch. Using feature branches in CI workflows can cause workflow failures once the feature branch is merged or deleted. Consider whether this should point to a stable branch like 'develop' or 'main', or if this change should be temporary and reverted before merging.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 30, 2026 06:56
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
✅ (smanes0213)[https://github.com/smanes0213]
@MukeshkumarK
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

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 2 out of 2 changed files in this pull request and generated 1 comment.

repository: rdkcentral/entservices-inputoutput
path: entservices-inputoutput
ref: develop
ref: L2TestPlugin_COMRPC

Copilot AI Jan 30, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow is referencing a feature branch 'L2TestPlugin_COMRPC' instead of a stable branch like 'develop' or 'main'. Using feature branches in CI workflows is risky because:

  1. Feature branches may be deleted or rebased after merging, breaking the workflow
  2. It creates dependency on unmerged code changes
  3. It makes the workflow non-reproducible

Consider merging the required changes from 'L2TestPlugin_COMRPC' branch into 'develop' first, then update this reference back to 'develop'. If this is temporary for testing purposes, ensure it's reverted before merging to develop.

Suggested change
ref: L2TestPlugin_COMRPC
ref: develop

Copilot uses AI. Check for mistakes.
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