Add support for COMRPC changes in L2Tests plugin in Testframework repo#356
Add support for COMRPC changes in L2Tests plugin in Testframework repo#356smanes0213 wants to merge 13 commits into
Conversation
Changed -Wno-deprecated-declarations to -Wno-error=deprecated-declarations to allow warnings from Thunder's VirtualInput.h without failing the build.
There was a problem hiding this comment.
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_COMRPCandTestbranches instead ofdevelop - Fixed CMake variable name from
-DBUILD_TYPEto-DCMAKE_BUILD_TYPEfor consistency - Removed
-Werrorcompiler 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 |
There was a problem hiding this comment.
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.
| ref: L2TestPlugin_COMRPC | |
| ref: develop |
| -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= |
There was a problem hiding this comment.
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.
| -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format= | |
| -Wall -Wno-unused-result -Wno-deprecated-declarations |
| repository: rdkcentral/entservices-testframework | ||
| path: entservices-testframework | ||
| ref: develop | ||
| ref: L2TestPlugin_COMRPC |
There was a problem hiding this comment.
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.
| repository: rdkcentral/entservices-inputoutput | ||
| path: entservices-inputoutput | ||
| ref: develop | ||
| ref: L2TestPlugin_COMRPC |
There was a problem hiding this comment.
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.
| run: rm -rf $GITHUB_WORKSPACE/entservices-apis/jsonrpc/DTV.json | ||
|
|
There was a problem hiding this comment.
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.
| 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" |
| - name: Apply patches entservices-apis | ||
| run: | | ||
| cd $GITHUB_WORKSPACE/entservices-apis | ||
| patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/comrpc-support-for-l2tests-plugin.patch |
There was a problem hiding this comment.
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:
- Update line 117 to checkout 'L2TestPlugin_COMRPC' branch of entservices-testframework, or
- Ensure the patch file exists in the 'develop' branch of entservices-testframework before merging this 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 |
| -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= |
There was a problem hiding this comment.
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:
- Clearly documented in the PR description
- Considered temporary until the warnings are fixed
- 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.
| -Wall -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format= | |
| -Wall -Werror -Wno-unused-result -Wno-deprecated-declarations -Wno-error=format= |
| repository: rdkcentral/entservices-testframework | ||
| path: entservices-testframework | ||
| ref: develop | ||
| ref: L2TestPlugin_COMRPC |
There was a problem hiding this comment.
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.
| repository: rdkcentral/entservices-inputoutput | ||
| path: entservices-inputoutput | ||
| ref: develop | ||
| ref: L2TestPlugin_COMRPC |
There was a problem hiding this comment.
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.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| repository: rdkcentral/entservices-inputoutput | ||
| path: entservices-inputoutput | ||
| ref: develop | ||
| ref: L2TestPlugin_COMRPC |
There was a problem hiding this comment.
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:
- Feature branches may be deleted or rebased after merging, breaking the workflow
- It creates dependency on unmerged code changes
- 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.
| ref: L2TestPlugin_COMRPC | |
| ref: develop |
Reason for change: Add COMRPC Support for L2Tests Plugin
Test Procedure : Run L2 Tests to verify the changes
Version : Major
Risks: Low