Skip to content

[action] [PR:12047] [platform][cli] PSU Status Tests: Permit Daemons Some Time to enter RUNNING State#12513

Merged
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/12047
Apr 19, 2024
Merged

[action] [PR:12047] [platform][cli] PSU Status Tests: Permit Daemons Some Time to enter RUNNING State#12513
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/12047

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

This patch adds a 60-second window to the psustatus tests to allow time for the relevant daemons to reach the RUNNING state, should they be found in the STARTING state when the daemon status check occurs.

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

Encountered an instance where the psustatus tests failed because the pmon daemon status check caught the applicable daemons in the STARTING state as opposed to the RUNNING state. This was seen one time; despite a few dozen attempts, have not been able to recreate the issue. This change will help guard against such potential race conditions.

How did you do it?

Added a 60 second wait (5 second interval, 0 delay) on check_pmon_daemon_status in each of the psustatus tests.

How did you verify/test it?

Ran the tests with the fixes applied and they passed.

…t loop to provide some flexibility in the amount of time it takes for the daemons to go from STARTING state to RUNNING. (sonic-net#12047)
@mssonicbld
Copy link
Collaborator Author

Original PR: #12047

@mssonicbld mssonicbld merged commit f94af93 into sonic-net:202311 Apr 19, 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