sync to develop - #516
Merged
Merged
Conversation
* Refactor Docker exec command in L2-tests.yml * Update L2-tests.yml --------- Co-authored-by: nhanasi <navihansi@gmail.com>
Co-authored-by: mtirum011 <madhubabu_tirumala@comcast.com>
* RDKEMW-20790 : Improve L2 Coverage for tr69hostif * RDKEMW-20790 : L2 Coverage for tr69hostif update --------- Co-authored-by: mtirum011 <madhubabu_tirumala@comcast.com> Co-authored-by: madhubabutt <114217841+madhubabutt@users.noreply.github.com> Co-authored-by: Hanasi <nhanas001c@cable.comcast.com>
* Update data-model-generic.xml * Update data-model-generic.xml * Update Device_DeviceInfo.cpp * Update Device_DeviceInfo.h * Potential fix for pull request finding 'CodeQL / File created without restricting permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Update data-model-generic.xml --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Tr69hostif release for Develop OTEL feature
Contributor
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR syncs with develop by expanding the L2 functional test suite (pytest + feature specs) across multiple TR-181 areas and by adding a new RFC parameter to enable/disable distributed tracing (OTEL) via a flag file + systemd service control.
Changes:
- Added multiple new L2 pytest modules + corresponding
.featurespecs (Bluetooth, DeviceInfo extended, StorageService, InterfaceStack, xOpsDeviceMgmt RPC/Logging). - Expanded existing L2 coverage for IP/Ethernet/MoCA/DeviceTime/ProcessStatus/WebPA and updated coverage documentation + runner wiring.
- Introduced
Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.DistributedTracing.Enableinto the data model and implemented its SET handling inDevice_DeviceInfo.
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/functional-tests/tests/tr69hostif_webpa_rdkdlmgr.py | Adds WebPA server/token URL GET tests. |
| test/functional-tests/tests/tr69hostif_storageservice.py | New StorageService RBUS GET coverage. |
| test/functional-tests/tests/tr69hostif_rfc_store_params.py | Renames RFC tests to reflect SET handlers. |
| test/functional-tests/tests/tr69hostif_processor_processstatus.py | Reorders tests and adds ProcessStatus CPUUsage GET. |
| test/functional-tests/tests/tr69hostif_opsdevicemgmt_rpc.py | New xOpsDeviceMgmt RPC RBUS GET/SET coverage. |
| test/functional-tests/tests/tr69hostif_opsdevicemgmt_logging.py | New xOpsDeviceMgmt Logging RBUS GET/SET coverage. |
| test/functional-tests/tests/tr69hostif_moca.py | Adds additional MoCA interface GET/SET negative coverage. |
| test/functional-tests/tests/tr69hostif_ipremotesupport.py | Reorders IPRemoteSupport tests. |
| test/functional-tests/tests/tr69hostif_ip.py | Adds many IP interface/address/stats SET/GET tests and reorders execution. |
| test/functional-tests/tests/tr69hostif_interfacestack.py | New InterfaceStack RBUS GET coverage. |
| test/functional-tests/tests/tr69hostif_ethernet_handlers.py | Adds Ethernet SET coverage and expands negative GET/SET checks. |
| test/functional-tests/tests/tr69hostif_devicetime.py | Adds Device.Time SET negative coverage and Enable checks. |
| test/functional-tests/tests/tr69hostif_device_info.py | New extended DeviceInfo coverage (incl. AppArmor blocklist + MemInsight + reboot stop). |
| test/functional-tests/tests/tr69hostif_custom.py | Adds more custom alias-related coverage. |
| test/functional-tests/tests/tr69hostif_bluetooth.py | New Bluetooth xBlueTooth parameter coverage. |
| test/functional-tests/tests/basic_constants.py | Adds Bluetooth constants used by Bluetooth tests. |
| test/functional-tests/features/tr69hostif_webpa_rdkdlmgr.feature | Adds scenarios for WebPA Server/TokenServer URL GET. |
| test/functional-tests/features/tr69hostif_storageservice.feature | New StorageService feature spec. |
| test/functional-tests/features/tr69hostif_processor_processstatus.feature | Adds CPUUsage scenario requirements. |
| test/functional-tests/features/tr69hostif_opsdevicemgmt_rpc.feature | New xOpsDeviceMgmt RPC feature spec. |
| test/functional-tests/features/tr69hostif_opsdevicemgmt_logging.feature | New xOpsDeviceMgmt Logging feature spec. |
| test/functional-tests/features/tr69hostif_moca.feature | Adds MoCA KeyPassphrase/PowerLimit scenarios. |
| test/functional-tests/features/tr69hostif_ip.feature | Expands IP scenarios to include SET/negative expectations. |
| test/functional-tests/features/tr69hostif_interfacestack.feature | New InterfaceStack feature spec. |
| test/functional-tests/features/tr69hostif_ethernet_handlers.feature | Expands Ethernet scenarios to include SET/negative expectations. |
| test/functional-tests/features/tr69hostif_devicetime.feature | Adds Device.Time SET negative scenarios and Enable checks. |
| test/functional-tests/features/tr69hostif_device_info.feature | New extended DeviceInfo feature spec. |
| test/functional-tests/features/tr69hostif_custom.feature | Updates custom scenarios and adds alias-related checks. |
| test/functional-tests/features/tr69hostif_bluetooth.feature | New Bluetooth feature spec. |
| test/docs/L2_Test_Coverage.md | Updates L2 coverage metrics, file lists, and gap analysis status. |
| src/hostif/profiles/DeviceInfo/Device_DeviceInfo.h | Adds DistributedTracing RFC parameter + handler declaration. |
| src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp | Implements SET handling for DistributedTracing RFC (flag file + systemctl). |
| src/hostif/parodusClient/waldb/data-model/data-model-generic.xml | Adds DistributedTracing.Enable to the TR-181 data model. |
| run_l2.sh | Extends L2 runner to execute new pytest modules and adds loguploadstatus seed file. |
| CHANGELOG.md | Adds 1.4.9 section and updates 1.4.8 metadata. |
| .github/workflows/L2-tests.yml | Adjusts CI container invocation + result upload working directory. |
Comments suppressed due to low confidence (5)
test/functional-tests/tests/tr69hostif_webpa_rdkdlmgr.py:106
- The new WebPA TokenServer URL GET test asserts an RBUS exception, but the feature spec added in this PR expects the GET to succeed (no error).
test/functional-tests/tests/tr69hostif_storageservice.py:47 - This PhysicalMedium.Name test currently expects an RBUS exception, but the feature spec added in this PR marks it as implemented (GET should not contain an error).
test/functional-tests/tests/tr69hostif_storageservice.py:110 - This SMARTCapable test currently expects an RBUS exception, but the feature spec added in this PR marks it as implemented (GET should not contain an error).
test/functional-tests/tests/tr69hostif_storageservice.py:117 - This Health test currently expects an RBUS exception, but the feature spec added in this PR marks it as implemented (GET should not contain an error).
test/functional-tests/tests/tr69hostif_storageservice.py:132 - This PhysicalMediumNumberOfEntries test currently expects an RBUS exception, but the feature spec added in this PR expects this GET to succeed (no error).
| def test_X_RDK_WebPA_Server_URL_Get_Handler(): | ||
| DATA_ELEMENT_NAME = "Device.X_RDK_WebPA_Server.URL" | ||
| rstdout = rbus_get_data(DATA_ELEMENT_NAME) | ||
| assert RBUS_EXCEPTION_STRING in rstdout |
| def test_StorageService_ClientNumberOfEntries_Get_Handler(): | ||
| DATA_ELEMENT_NAME = "Device.Services.StorageServiceNumberOfEntries" | ||
| rstdout = rbus_get_data(DATA_ELEMENT_NAME) | ||
| assert RBUS_EXCEPTION_STRING in rstdout |
Comment on lines
+96
to
+102
| def test_ProcessStatus_CPUUsage_Get_Handler(): | ||
| #clear_tr69hostiflogs() | ||
| DATA_ELEMENT_NAME = "Device.DeviceInfo.ProcessStatus.CPUUsage" | ||
| # Force reload config fetch from xconf | ||
| rstdout = rbus_get_data(DATA_ELEMENT_NAME) | ||
| assert RBUS_EXCEPTION_STRING not in rstdout | ||
|
|
Comment on lines
+3873
to
+3897
| /* Create flag file watched by librdk_otlp.so via inotify in all processes */ | ||
| int fd = open(RDK_TRACING_FLAG_FILE, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); | ||
| if (fd >= 0) | ||
| { | ||
| FILE *fp = fdopen(fd, "w"); | ||
| if (fp) | ||
| { | ||
| fclose(fp); | ||
| RDK_LOG(RDK_LOG_INFO, LOG_TR69HOSTIF, | ||
| "[%s] Created tracing flag file %s\n", __FUNCTION__, RDK_TRACING_FLAG_FILE); | ||
| } | ||
| else | ||
| { | ||
| close(fd); | ||
| RDK_LOG(RDK_LOG_ERROR, LOG_TR69HOSTIF, | ||
| "[%s] Failed to create tracing flag file %s: %s\n", | ||
| __FUNCTION__, RDK_TRACING_FLAG_FILE, strerror(errno)); | ||
| } | ||
| } | ||
| else | ||
| { | ||
| RDK_LOG(RDK_LOG_ERROR, LOG_TR69HOSTIF, | ||
| "[%s] Failed to create tracing flag file %s: %s\n", | ||
| __FUNCTION__, RDK_TRACING_FLAG_FILE, strerror(errno)); | ||
| } |
santoshcomcast
merged commit Jul 29, 2026
7048648
into
feature/RDKEMW-19163-thunder-migration
15 of 18 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.