Skip to content

Support for UMF Integrated-circuit Component.#225

Draft
bibhuprasad-hcl wants to merge 2 commits into
sonic-net:masterfrom
bibhuprasad-hcl:pr_compmodel_ic
Draft

Support for UMF Integrated-circuit Component.#225
bibhuprasad-hcl wants to merge 2 commits into
sonic-net:masterfrom
bibhuprasad-hcl:pr_compmodel_ic

Conversation

@bibhuprasad-hcl

@bibhuprasad-hcl bibhuprasad-hcl commented Jun 10, 2026

Copy link
Copy Markdown

Support for UMF Integrated-circuit Component.

UT Test Result:

=== RUN TestCompRoot_ComponentTypeString
--- PASS: TestCompRoot_ComponentTypeString (0.00s)
=== RUN TestCompRoot_ValidICName
=== RUN TestCompRoot_ValidICName/Fails_HasPrefix_check
=== RUN TestCompRoot_ValidICName/Fails_len(sp)<2_check(Prefix_matches_exactly,but_nothing_follows)
=== RUN TestCompRoot_ValidICName/Fails_Atoi_check
(Suffix_is_not_a_valid_integer)
=== RUN TestCompRoot_ValidICName/Fails_Atoi_check
(Suffix_is_not_a_valid_integer)#1
=== RUN TestCompRoot_ValidICName/Passes_all_checks_(Valid_IC_name)
--- PASS: TestCompRoot_ValidICName (0.00s)
--- PASS: TestCompRoot_ValidICName/Fails_HasPrefix_check (0.00s)
--- PASS: TestCompRoot_ValidICName/Fails_len(sp)<2_check(Prefix_matches_exactly,but_nothing_follows) (0.00s)
--- PASS: TestCompRoot_ValidICName/Fails_Atoi_check
(Suffix_is_not_a_valid_integer) (0.00s)
--- PASS: TestCompRoot_ValidICName/Fails_Atoi_check
(Suffix_is_not_a_valid_integer)#1 (0.00s)
--- PASS: TestCompRoot_ValidICName/Passes_all_checks_(Valid_IC_name) (0.00s)
=== RUN TestIC_FillICInfo_Coverage
--- PASS: TestIC_FillICInfo_Coverage (0.00s)
=== RUN TestIC_FillICInfoErrorPath
--- PASS: TestIC_FillICInfoErrorPath (0.00s)
=== RUN TestIC_YangToDbInvalidComponentType
--- PASS: TestIC_YangToDbInvalidComponentType (0.00s)
=== RUN TestIC_YangToDb__MemMapCoverage
--- PASS: TestIC_YangToDb__MemMapCoverage (0.00s)
=== RUN TestCompRoot_GetCompTypeByName
--- PASS: TestCompRoot_GetCompTypeByName (0.00s)
=== RUN TestCompRoot_GetCompType_ErrorCases
--- PASS: TestCompRoot_GetCompType_ErrorCases (0.00s)
=== RUN TestCompRoot_GetPfmRootObject
--- PASS: TestCompRoot_GetPfmRootObject (0.00s)
=== RUN TestCompRoot_GetPfmRootObject_Success
--- PASS: TestCompRoot_GetPfmRootObject_Success (0.00s)
=== RUN TestCompRoot_GetSysComponentsWithUnknownComponentType
--- PASS: TestCompRoot_GetSysComponentsWithUnknownComponentType (0.00s)
=== RUN TestIC_GetSysComponentsFullCoverage
=== RUN TestIC_GetSysComponentsFullCoverage/CompLoop
=== RUN TestIC_GetSysComponentsFullCoverage/CompSpecific
=== RUN TestIC_GetSysComponentsFullCoverage/CompState
=== RUN TestIC_GetSysComponentsFullCoverage/CompCfg
=== RUN TestIC_GetSysComponentsFullCoverage/DefaultFillIC
--- PASS: TestIC_GetSysComponentsFullCoverage (0.00s)
--- PASS: TestIC_GetSysComponentsFullCoverage/CompLoop (0.00s)
--- PASS: TestIC_GetSysComponentsFullCoverage/CompSpecific (0.00s)
--- PASS: TestIC_GetSysComponentsFullCoverage/CompState (0.00s)
--- PASS: TestIC_GetSysComponentsFullCoverage/CompCfg (0.00s)
--- PASS: TestIC_GetSysComponentsFullCoverage/DefaultFillIC (0.00s)
=== RUN TestCompRoot_Subscribe_pfm_components_xfmr
=== RUN TestCompRoot_Subscribe_pfm_components_xfmr/Early_Exit_-Key_is_empty(Requesting_ALL_components)
=== RUN TestCompRoot_Subscribe_pfm_components_xfmr/Early_Exit_-Key_contains__sensor
--- PASS: TestCompRoot_Subscribe_pfm_components_xfmr (0.00s)
--- PASS: TestCompRoot_Subscribe_pfm_components_xfmr/Early_Exit
-Key_is_empty(Requesting_ALL_components) (0.00s)
--- PASS: TestCompRoot_Subscribe_pfm_components_xfmr/Early_Exit_-_Key_contains__sensor (0.00s)
=== RUN TestCompRoot_GetAllTableEntries
=== RUN TestCompRoot_GetAllTableEntries/Coverage:_Empty_table_name_exits_early
=== RUN TestCompRoot_GetAllTableEntries/Coverage:_Empty_key_exits_early
=== RUN TestCompRoot_GetAllTableEntries/Coverage:_DB_execution_failure_bubbles_up
=== RUN TestCompRoot_GetAllTableEntries/Check_valid_case
--- PASS: TestCompRoot_GetAllTableEntries (0.00s)
--- PASS: TestCompRoot_GetAllTableEntries/Coverage:_Empty_table_name_exits_early (0.00s)
--- PASS: TestCompRoot_GetAllTableEntries/Coverage:_Empty_key_exits_early (0.00s)
--- PASS: TestCompRoot_GetAllTableEntries/Coverage:_DB_execution_failure_bubbles_up (0.00s)
--- PASS: TestCompRoot_GetAllTableEntries/Check_valid_case (0.00s)
=== RUN TestCompRoot_FillICInfo
=== RUN TestCompRoot_FillICInfo/Coverage:_Path_matches_COMP_exactly
=== RUN TestCompRoot_FillICInfo/Coverage:_Path_matches_COMP_ST_exactly
=== RUN TestCompRoot_FillICInfo/Coverage:_Path_has_COMP_ST_prefix_but_hits_switch_default
=== RUN TestCompRoot_FillICInfo/Coverage:_Path_doesn't_match_either_condition
--- PASS: TestCompRoot_FillICInfo (0.00s)
--- PASS: TestCompRoot_FillICInfo/Coverage:_Path_matches_COMP_exactly (0.00s)
--- PASS: TestCompRoot_FillICInfo/Coverage:_Path_matches_COMP_ST_exactly (0.00s)
--- PASS: TestCompRoot_FillICInfo/Coverage:_Path_has_COMP_ST_prefix_but_hits_switch_default (0.00s)
--- PASS: TestCompRoot_FillICInfo/Coverage:_Path_doesn't_match_either_condition (0.00s)
=== RUN TestCompRoot_DbToYang_pfm_components_xfmr
=== RUN TestCompRoot_DbToYang_pfm_components_xfmr/Coverage:_Unsupported_request_URI_triggers_early_exit_error
=== RUN TestCompRoot_DbToYang_pfm_components_xfmr/Coverage:_Successful_execution_path_calls_downstream_getSysComponents
--- PASS: TestCompRoot_DbToYang_pfm_components_xfmr (0.00s)
--- PASS: TestCompRoot_DbToYang_pfm_components_xfmr/Coverage:_Unsupported_request_URI_triggers_early_exit_error (0.00s)
--- PASS: TestCompRoot_DbToYang_pfm_components_xfmr/Coverage:_Successful_execution_path_calls_downstream_getSysComponents (0.00s)
=== RUN TestCompRoot_CompTypeToFuncCall
=== RUN TestCompRoot_CompTypeToFuncCall/Invalid_Component_Type_returns_error
=== RUN TestCompRoot_CompTypeToFuncCall/Valid_CompTypeIC_path
--- PASS: TestCompRoot_CompTypeToFuncCall (0.00s)
--- PASS: TestCompRoot_CompTypeToFuncCall/Invalid_Component_Type_returns_error (0.00s)
--- PASS: TestCompRoot_CompTypeToFuncCall/Valid_CompTypeIC_path (0.00s)
=== RUN TestCompRoot_CreateCompAndFuncCall_Success
=== RUN TestCompRoot_CreateCompAndFuncCall_Success/Successful_component_creation_and_execution_for_default_type
--- PASS: TestCompRoot_CreateCompAndFuncCall_Success (0.00s)
--- PASS: TestCompRoot_CreateCompAndFuncCall_Success/Successful_component_creation_and_execution_for_default_type (0.00s)
=== RUN TestCompRoot_CreateCompAndFuncCall_Branches
=== RUN TestCompRoot_CreateCompAndFuncCall_Branches/Branch:Loop_continues_on_mismatching_type
=== RUN TestCompRoot_CreateCompAndFuncCall_Branches/Branch:Component_creation(pfComp
==_nil)
=== RUN TestCompRoot_CreateCompAndFuncCall_Branches/Branch:_Error_logging_when_table_fetch_fails
--- PASS: TestCompRoot_CreateCompAndFuncCall_Branches (0.00s)
--- PASS: TestCompRoot_CreateCompAndFuncCall_Branches/Branch:Loop_continues_on_mismatching_type (0.00s)
--- PASS: TestCompRoot_CreateCompAndFuncCall_Branches/Branch:Component_creation(pfComp
==_nil) (0.00s)
--- PASS: TestCompRoot_CreateCompAndFuncCall_Branches/Branch:_Error_logging_when_table_fetch_fails (0.00s)
=== RUN TestCompRoot_Subscribe_pfm_components_xfmr_TranslateExists
--- PASS: TestCompRoot_Subscribe_pfm_components_xfmr_TranslateExists (0.00s)
=== RUN TestCompRoot_Subscribe_pfm_components_xfmr_TranslateSubscribe
--- PASS: TestCompRoot_Subscribe_pfm_components_xfmr_TranslateSubscribe (0.00s)
=== RUN TestCompRoot_TranslateExistsInvalidKey
--- PASS: TestCompRoot_TranslateExistsInvalidKey (0.00s)
=== RUN TestCompRoot_TranslateExistsValidKey
--- PASS: TestCompRoot_TranslateExistsValidKey (0.00s)
=== RUN TestCompRoot_TranslateSubscribeValidKey
--- PASS: TestCompRoot_TranslateSubscribeValidKey (0.00s)
=== RUN TestCompRoot_PathType_String
--- PASS: TestCompRoot_PathType_String (0.00s)
=== RUN TestCompRoot_CompTypesForSubscriptionUri
--- PASS: TestCompRoot_CompTypesForSubscriptionUri (0.00s)
=== RUN TestCompRoot_GetICInfoFromDb
--- PASS: TestCompRoot_GetICInfoFromDb (0.00s)
=== RUN TestCompRoot_GetICInfoFromDbSuccessPath
--- PASS: TestCompRoot_GetICInfoFromDbSuccessPath (0.00s)
PASS

…ated-circuit

Signed-off-by: Niranjani Vivek <niranjaniv@google.com>
@mssonicbld

Copy link
Copy Markdown

/azp run

@bibhuprasad-hcl bibhuprasad-hcl marked this pull request as draft June 10, 2026 10:40
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 19, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: bibhuprasad-hcl / name: bibhuprasad (c0abc0f)
  • ✅ login: niranjanivivek / name: Niranjani Vivek (ddf0a00)

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Bibhuprasad Singh <bibhuprasad@google.com>
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

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.

3 participants