-
Notifications
You must be signed in to change notification settings - Fork 850
[chassis] accomodate test_memory_exhaustion.py if random dut is chassis sup #9075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
|
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:
|
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:
|
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:
|
@@ -24,7 +24,8 @@ class TestMemoryExhaustion: | |||
""" | |||
|
|||
@pytest.fixture(autouse=True) | |||
def tearDown(self, duthosts, enum_rand_one_per_hwsku_hostname, localhost, pdu_controller): | |||
def tearDown(self, duthosts, enum_rand_one_per_hwsku_hostname, | |||
localhost, pdu_controller,): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra comma at end #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also fix the line indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the comma.
Indentation is correct I believe:
xcvr_skip_list, conn_graph_facts, shutdown_ebgp): # noqa F811 |
# For sup, we also need to ensure linecards are back and healthy for following tests | ||
is_sup = duthost.get_facts().get("modular_chassis") and duthost.is_supervisor_node() | ||
if is_sup: | ||
for lc in duthosts.frontend_nodes: | ||
wait_for_startup(lc, localhost, delay=10, timeout=300) | ||
wait_critical_processes(lc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we write commmon function for this code, it is being used couple time here may be useful in other tests as well
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:
|
Cherry-pick PR to 202205: #9295 |
Cherry-pick PR to 202305: #9329 |
Description of PR
There are 2 fixes in this PR to enhance for chassis:
Summary:
Fixes # (issue)
#9087
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation