-
Notifications
You must be signed in to change notification settings - Fork 4
Fix L2 test #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Fix L2 test #460
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,7 @@ apt-get update && apt-get install -y libsoup-3.0 | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| #Build rfc | ||||||||||||||||||||||||||||||||||||||||||||
| cd $ROOT | ||||||||||||||||||||||||||||||||||||||||||||
| rm -rf rfc | ||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/rdkcentral/rfc.git | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
8
to
10
|
||||||||||||||||||||||||||||||||||||||||||||
| cd rfc | ||||||||||||||||||||||||||||||||||||||||||||
| autoreconf -i | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -21,7 +22,8 @@ cd ../utils | |||||||||||||||||||||||||||||||||||||||||||
| make && make install | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| #Build yajl - tr69 alone needs this specific version | ||||||||||||||||||||||||||||||||||||||||||||
| cd $ROOT | ||||||||||||||||||||||||||||||||||||||||||||
| cd $ROOT | ||||||||||||||||||||||||||||||||||||||||||||
| rm -rf yajl | ||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/lloyd/yajl.git -b 1.x | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
24
to
27
|
||||||||||||||||||||||||||||||||||||||||||||
| cd yajl | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+25
to
28
|
||||||||||||||||||||||||||||||||||||||||||||
| mkdir build | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -40,17 +42,23 @@ git clone https://github.com/rdkcentral/rdkvhal-devicesettings-raspberrypi4.git | |||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/rdkcentral/iarmbus.git | ||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/rdkcentral/remote_debugger.git | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/rdkcentral/telemetry.git | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+45
to
+46
|
||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| # Build devicesettings version with fixes for native build and use that as a stub | ||||||||||||||||||||||||||||||||||||||||||||
| # TODO This is not present in mainline versions. Component maintainers will have to provide this in future. | ||||||||||||||||||||||||||||||||||||||||||||
| cd $ROOT | ||||||||||||||||||||||||||||||||||||||||||||
| rm -rf devicesettings | ||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/rdkcentral/devicesettings.git -b feature/RDKE-539 | ||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/rdkcentral/devicesettings.git -b feature/RDKEMW-539 | ||||||||||||||||||||||||||||||||||||||||||||
| cd devicesettings | ||||||||||||||||||||||||||||||||||||||||||||
| autoreconf -i | ||||||||||||||||||||||||||||||||||||||||||||
| sed -i '/#include "dsAudio.h"/d' /usr/devicesettings/rpc/cli/dsAudio.c | ||||||||||||||||||||||||||||||||||||||||||||
| sed -i '/device::HdmiInput::getInstance().isPortConnected(portId);/d' /usr/devicesettings/ds/audioOutputPort.cpp | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
56
to
57
|
||||||||||||||||||||||||||||||||||||||||||||
| sed -i '/#include "dsAudio.h"/d' /usr/devicesettings/rpc/cli/dsAudio.c | |
| sed -i '/_GetAudioPortType/,/}/d' /usr/devicesettings/rpc/srv/dsAudio.c | |
| sed -i '/device::HdmiInput::getInstance().isPortConnected(portId);/d' /usr/devicesettings/ds/audioOutputPort.cpp | |
| DS_AUDIO_CLI_FILE=rpc/cli/dsAudio.c | |
| DS_AUDIO_SRV_FILE=rpc/srv/dsAudio.c | |
| DS_AUDIO_OUTPUT_PORT_FILE=ds/audioOutputPort.cpp | |
| if [ ! -f "$DS_AUDIO_CLI_FILE" ]; then | |
| echo "ERROR: Missing file: $DS_AUDIO_CLI_FILE" >&2 | |
| exit 1 | |
| fi | |
| if [ ! -f "$DS_AUDIO_SRV_FILE" ]; then | |
| echo "ERROR: Missing file: $DS_AUDIO_SRV_FILE" >&2 | |
| exit 1 | |
| fi | |
| if [ ! -f "$DS_AUDIO_OUTPUT_PORT_FILE" ]; then | |
| echo "ERROR: Missing file: $DS_AUDIO_OUTPUT_PORT_FILE" >&2 | |
| exit 1 | |
| fi | |
| sed -i '/#include "dsAudio.h"/d' "$DS_AUDIO_CLI_FILE" | |
| sed -i '/_GetAudioPortType/,/}/d' "$DS_AUDIO_SRV_FILE" | |
| sed -i '/device::HdmiInput::getInstance().isPortConnected(portId);/d' "$DS_AUDIO_OUTPUT_PORT_FILE" |
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated make INCLUDE_FILES=... line embeds a very large, duplicated include-path list inline, which is hard to audit and easy to break with small typos (there are already repeated -I entries). Consider moving these flags into a variable defined once (or using CPPFLAGS/CXXFLAGS exported earlier) to keep this script maintainable.
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build/install steps for tr69hostif have been entirely commented out (autoreconf, configure, make, make install). Since CI workflows call cov_build.sh to build the component before running L2 tests, this change likely causes L2 to run against whatever binary is preinstalled in the container rather than the code under test (or to fail if no binary is present). Please re-enable the build or replace it with an explicit, deterministic alternative that still builds/installs the PR’s sources.
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All steps that configure/build/install the tr69hostif module (and related setup) are now commented out, leaving only the echo. If this script is used to produce artifacts for L2 runs, this will likely result in missing binaries/config and failing tests. Either restore the build/install steps or replace them with the intended alternative build flow.
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tr69hostif build steps (autoreconf, ./configure, make, make install, and mock-parodus build) are now commented out, but the CI workflow still invokes cov_build.sh to build and then runs L2 tests against /usr/local/bin/tr69hostif. As-is, this script will no longer rebuild/install tr69hostif from the current PR, which can make L2 results stale and can also break the native full build workflow that relies on this script. Please either restore the build/install steps or add an explicit, parameterized switch (e.g., an env var) and update workflows accordingly.
Copilot
AI
Apr 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block comments out the configure/build/install steps for tr69hostif (and also mock-parodus build + the tr181Set symlink + RFC enable). In CI, .github/workflows/L2-tests.yml runs cov_build.sh immediately before run_l2.sh, and run_l2.sh starts /usr/local/bin/tr69hostif; with these lines disabled, the binary/symlink/settings may be missing or stale and L2 will fail or become non-deterministic. Re-enable these steps, or explicitly gate them behind an env var/flag and update the workflow to match the intended behavior.
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The follow-on steps for mock-parodus build and runtime setup (mock_parodus_build.sh, tr181Set symlink, RFC enable via rbuscli) are now commented out. If these are required for the L2 environment, they should remain enabled (or be made conditional with a clear flag) to avoid silently skipping required setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm -rf rfcis executed immediately aftercd $ROOTwithout checking whether thecdsucceeded. Ifcdfails (e.g., permission or missing dir), this removal will run in the previous working directory and may delete an unintendedrfcfolder. Consider usingcd "$ROOT" || exit 1(orset -e) and deleting via an explicit path likerm -rf -- "$ROOT/rfc"to make the target unambiguous.