Fix CI failures: expose isSecureDbgSrvUnlocked() publicly and add missing Automake root files#190
Draft
KTirumalaSrihari with Copilot wants to merge 3 commits into
Draft
Fix CI failures: expose isSecureDbgSrvUnlocked() publicly and add missing Automake root files#190KTirumalaSrihari with Copilot wants to merge 3 commits into
KTirumalaSrihari with Copilot wants to merge 3 commits into
Conversation
…tests and missing automake files Co-authored-by: KTirumalaSrihari <102281309+KTirumalaSrihari@users.noreply.github.com>
Co-authored-by: KTirumalaSrihari <102281309+KTirumalaSrihari@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix build and test failures for Automake and method access
Fix CI failures: expose isSecureDbgSrvUnlocked() publicly and add missing Automake root files
Mar 17, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
CI was failing due to a private method being called directly in unit tests and missing required Automake metadata files at the repo root.
Changes
rfcMgr/rfc_xconf_handler.hisSecureDbgSrvUnlocked()fromprivatetopublicso tests can call it directlygetDeviceTypeRFC(char*, size_t)helper declarationRFC_DEVICETYPEmacro for TR-181 device type parameterFRIEND_TESTmacros for the 5 new test casesrfcMgr/rfc_xconf_handler.cppisSecureDbgSrvUnlocked(): unconditionally unlocks on DEV builds; on PROD requiresLABSIGNED_ENABLED=true, RFC DeviceTypetest, andDbgServices.Enable=truegetDeviceTypeRFC(): reads device type from RFC store, normalizes to"prod"/"test"/"unknown"(_ebuild_type != ePROD || dbgServices)checks inInitializeRuntimeFeatureControlProcessor()andProcessRuntimeFeatureControlReq()withisSecureDbgSrvUnlocked()rfcMgr/gtest/gtest_main.cppRoot Automake files
AUTHORS,NEWS,ChangeLogand aREADME(fromutils/README) required by AutomakeOriginal prompt
This PR addresses build and test failures found in https://github.com/rdkcentral/rfc/actions/runs/23180531337/job/67352342928?pr=183:
These fixes address:
If more errors appear after this, further investigation will be required.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Why did this job fail?
Assistant: The job failed due to the following issues:
Build Configuration Failures:
configure.acerrors:AM_INIT_AUTOMAKEwas not properly invoked.aclocal.m4is missing or outdated.Makefile.am:AUTHORS,ChangeLog,NEWS,README).aclocalandautoconfneed to be run to regenerate files likeaclocal.m4.Compilation Errors:
isSecureDbgSrvUnlocked()is private:isSecureDbgSrvUnlocked()in the filerfc_xconf_handler.his declared as private, but the test file (gtest_main.cpp) is attempting to call it, causing access errors.Unit Test Execution Failures:
rfcMgr_gtest,rfcapi_gtest, etc.):Root Causes and Actionable Steps:
Fix the Automake/Autotools setup:
AM_INIT_AUTOMAKEinconfigure.ac.aclocal.m4exists and update it by runningaclocal.AUTHORS,NEWS,README) or remove the references to them.Address the
isSecureDbgSrvUnlocked()access issue:isSecureDbgSrvUnlocked()public or add proper test interfaces.Revisit the unit tests:
These issues caused the build and tests to fail, as indicated in the logs.
User: can you fix this failure
Assistant: To help fix this failure, I need to know which repository owner and repository to make changes in. You referenced a job in rdkcentral/rfc—do you want me to open a pull request with fixes in rdkcentral/rfc?
Please confirm the repository owner and name, and clarify if you want all the errors (build system + compilation + missing files + private method) addressed in one PR, or if you want me to focus on a specific issue.
User: yes
Assistant: Thank you for confirming. I’ll prepare a detailed pull request to address the failures in the rdkcentral/rfc repository, including:
I’ll begin gathering relevant code context now and then create a PR to resolve these issues.
Assistant: Here’s how I will fix the failure in rdkcentral/rfc based on the results (note: search results are limited and may be incomplete—you can view more by searching the repo in the GitHub UI):
Problems Found and Fix Strategy
1. Build System Issues (Automake/Autotools)
AM_INIT_AUTOMAKEis present inconfigure.ac, so this is not the source of error. However, files likeAUTHORS,NEWS,README, andChangeLogare missing but required. README exists asutils/README, but not at project root.AUTHORS,NEWS, andChangeLogat the repo root and copy README content into a new root-levelREADME.2. Compilation Failures
isSecureDbgSrvUnlocked()inrfc_xconf_handler.his private. But your test code ingtest_main.cppis trying to access it, causing compilation error.RuntimeFeatureControlProcessorclass.3. Missing Test Binaries
PR Plan
I will:
AUTHORS,NEWS, andChangeLogat repo root.READMEwith content fromutils/README....
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.