Fixes for SNMP Tests Flakiness#14945
Conversation
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
@abdosi @SuvarnaMeenakshi @yejianquan - Can you help review and merge this PR |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@agadia-cisco @vperumal , added comments, thanks |
|
@agadia-cisco |
Both the failures are not related to my change & were seen before my changes too.
|
Description of PR Summary: The PR contains changes to snmp_helpers.py which checks whether snmp-subagent process is up or not before proceeding in the test. Accordingly all the snmp tests were updated to accommodate the change. This fixes the SNMP tests failures due to information not gathered in get_snmp_facts. Approach What is the motivation for this PR? It has been observed that without snmp-subagent being up, SNMP tests proceeds to execution causing TC failures because snmp_facts isn't able to capture the device information. How did you do it? Check was added in snmp_helpers ensuring that snmp-subagent is up before calling snmp_facts. All TCs were updated with the change. How did you verify/test it? Had run the changes on 202405 image installed in T0 device & tests passed. co-authorized by: jianquanye@microsoft.com
|
Cherry-pick PR to 202405: #15269 |
Description of PR Summary: The PR contains changes to snmp_helpers.py which checks whether snmp-subagent process is up or not before proceeding in the test. Accordingly all the snmp tests were updated to accommodate the change. This fixes the SNMP tests failures due to information not gathered in get_snmp_facts. Approach What is the motivation for this PR? It has been observed that without snmp-subagent being up, SNMP tests proceeds to execution causing TC failures because snmp_facts isn't able to capture the device information. How did you do it? Check was added in snmp_helpers ensuring that snmp-subagent is up before calling snmp_facts. All TCs were updated with the change. How did you verify/test it? Had run the changes on 202405 image installed in T0 device & tests passed. co-authorized by: jianquanye@microsoft.com
Description of PR Summary: The PR contains changes to snmp_helpers.py which checks whether snmp-subagent process is up or not before proceeding in the test. Accordingly all the snmp tests were updated to accommodate the change. This fixes the SNMP tests failures due to information not gathered in get_snmp_facts. Approach What is the motivation for this PR? It has been observed that without snmp-subagent being up, SNMP tests proceeds to execution causing TC failures because snmp_facts isn't able to capture the device information. How did you do it? Check was added in snmp_helpers ensuring that snmp-subagent is up before calling snmp_facts. All TCs were updated with the change. How did you verify/test it? Had run the changes on 202405 image installed in T0 device & tests passed. co-authorized by: jianquanye@microsoft.com
Description of PR Summary: The PR contains changes to snmp_helpers.py which checks whether snmp-subagent process is up or not before proceeding in the test. Accordingly all the snmp tests were updated to accommodate the change. This fixes the SNMP tests failures due to information not gathered in get_snmp_facts. Approach What is the motivation for this PR? It has been observed that without snmp-subagent being up, SNMP tests proceeds to execution causing TC failures because snmp_facts isn't able to capture the device information. How did you do it? Check was added in snmp_helpers ensuring that snmp-subagent is up before calling snmp_facts. All TCs were updated with the change. How did you verify/test it? Had run the changes on 202405 image installed in T0 device & tests passed. co-authorized by: jianquanye@microsoft.com
Description of PR
Summary: The PR contains changes to
snmp_helpers.pywhich checks whethersnmp-subagentprocess is up or not before proceeding in the test. Accordingly all thesnmptests were updated to accommodate the change. This fixes the SNMP tests failures due to information not gathered inget_snmp_facts.Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
It has been observed that without
snmp-subagentbeing up, SNMP tests proceeds to execution causing TC failures becausesnmp_factsisn't able to capture the device information.How did you do it?
Check was added in
snmp_helpersensuring thatsnmp-subagentis up before callingsnmp_facts. All TCs were updated with the change.How did you verify/test it?
Had run the changes on
202405image installed inT0device & tests passed.