Skip to content

[action] [PR:22494] [memory_utilization] Fix memory check issue for container_autorestart and logrotate#22715

Open
mssonicbld wants to merge 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22494
Open

[action] [PR:22494] [memory_utilization] Fix memory check issue for container_autorestart and logrotate#22715
mssonicbld wants to merge 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22494

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Fixes # (issue)
36843474

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

autorestart/test_container_autorestart.py::test_containers_autorestart, this is a case related to the container restart, need to skip the memory checker during the test

simulate_small_var_log_partition memory checker collects memory before and after the case, so we need to make sure the test environment is stable before the case, it’s better to add the check for interface up and wait for bgp up in the fixture simulate_small_var_log_partition, config reload.
config_reload(duthost, safe_reload=True)
config_reload(duthost, safe_reload=True, check_intf_up_ports=True, wait_for_bgp=True)

How did you do it?

Skip the checker in autorestart/test_container_autorestart.py
Waiting device stable before testing

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…-net#22494)

What is the motivation for this PR?
autorestart/test_container_autorestart.py::test_containers_autorestart, this is a case related to the container restart, need to skip the memory checker during the test

simulate_small_var_log_partition memory checker collects memory before and after the case, so we need to make sure the test environment is stable before the case, it’s better to add the check for interface up and wait for bgp up in the fixture simulate_small_var_log_partition, config reload.
config_reload(duthost, safe_reload=True)
config_reload(duthost, safe_reload=True, check_intf_up_ports=True, wait_for_bgp=True)

How did you do it?
Skip the checker in autorestart/test_container_autorestart.py
Waiting device stable before testing
Signed-off-by: xuliping <xuliping@microsoft.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Collaborator Author

Original PR: #22494

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants