Skip to content

[action] [PR:14945] Fixes for SNMP Tests Flakiness#15269

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/14945
Oct 30, 2024
Merged

[action] [PR:14945] Fixes for SNMP Tests Flakiness#15269
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/14945

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

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.

Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

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.

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
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #14945

@mssonicbld mssonicbld merged commit 30cea1e into sonic-net:202405 Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants