Skip to content

chore: skip PSU check for chassis LC#16057

Merged
yejianquan merged 1 commit intosonic-net:masterfrom
cyw233:skip-psu-check-on-lc
Dec 13, 2024
Merged

chore: skip PSU check for chassis LC#16057
yejianquan merged 1 commit intosonic-net:masterfrom
cyw233:skip-psu-check-on-lc

Conversation

@cyw233
Copy link
Contributor

@cyw233 cyw233 commented Dec 13, 2024

Description of PR

Skip platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus for chassis LC

Summary:
Fixes # (issue) Microsoft ADO 30114143

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Due to the module-level enumerate fixture psu_test_setup_teardown that has enum_rand_one_per_hwsku_hostname in this test module, we will run platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus multiple times when it's a T2 chassis. However, we don't need to run it multiple times because we are just toggling the PDU/PSU on the supervisor card in this test case. Therefore, we should skip the runs when the parametrization is on LCs.

How did you do it?

How did you verify/test it?

Ran it on T2 and I can confirm it's only run for supervisor parametrization.

Any platform specific information?

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

Documentation

@cyw233 cyw233 requested a review from prgeor as a code owner December 13, 2024 01:50
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@cyw233 cyw233 requested review from wenyiz2021 and removed request for prgeor December 13, 2024 05:11
Copy link
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yejianquan yejianquan merged commit 2c28912 into sonic-net:master Dec 13, 2024
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Dec 13, 2024
Description of PR
Skip platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus for chassis LC

Summary:
Fixes # (issue) Microsoft ADO 30114143

Approach
What is the motivation for this PR?
Due to the module-level enumerate fixture psu_test_setup_teardown that has enum_rand_one_per_hwsku_hostname in this test module, we will run platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus multiple times when it's a T2 chassis. However, we don't need to run it multiple times because we are just toggling the PDU/PSU on the supervisor card in this test case. Therefore, we should skip the runs when the parametrization is on LCs.

How did you do it?
How did you verify/test it?
Ran it on T2 and I can confirm it's only run for supervisor parametrization.

Any platform specific information?
Supported testbed topology if it's a new test case?

co-authorized by: jianquanye@microsoft.com
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #16060

@mssonicbld
Copy link
Collaborator

@cyw233 PR conflicts with 202411 branch

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jan 3, 2025
Description of PR
Skip platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus for chassis LC

Summary:
Fixes # (issue) Microsoft ADO 30114143

Approach
What is the motivation for this PR?
Due to the module-level enumerate fixture psu_test_setup_teardown that has enum_rand_one_per_hwsku_hostname in this test module, we will run platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus multiple times when it's a T2 chassis. However, we don't need to run it multiple times because we are just toggling the PDU/PSU on the supervisor card in this test case. Therefore, we should skip the runs when the parametrization is on LCs.

How did you do it?
How did you verify/test it?
Ran it on T2 and I can confirm it's only run for supervisor parametrization.

Any platform specific information?
Supported testbed topology if it's a new test case?

co-authorized by: jianquanye@microsoft.com
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202411: #16332

mssonicbld pushed a commit that referenced this pull request Jan 3, 2025
Description of PR
Skip platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus for chassis LC

Summary:
Fixes # (issue) Microsoft ADO 30114143

Approach
What is the motivation for this PR?
Due to the module-level enumerate fixture psu_test_setup_teardown that has enum_rand_one_per_hwsku_hostname in this test module, we will run platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus multiple times when it's a T2 chassis. However, we don't need to run it multiple times because we are just toggling the PDU/PSU on the supervisor card in this test case. Therefore, we should skip the runs when the parametrization is on LCs.

How did you do it?
How did you verify/test it?
Ran it on T2 and I can confirm it's only run for supervisor parametrization.

Any platform specific information?
Supported testbed topology if it's a new test case?

co-authorized by: jianquanye@microsoft.com
mssonicbld pushed a commit that referenced this pull request Jan 3, 2025
Description of PR
Skip platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus for chassis LC

Summary:
Fixes # (issue) Microsoft ADO 30114143

Approach
What is the motivation for this PR?
Due to the module-level enumerate fixture psu_test_setup_teardown that has enum_rand_one_per_hwsku_hostname in this test module, we will run platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus multiple times when it's a T2 chassis. However, we don't need to run it multiple times because we are just toggling the PDU/PSU on the supervisor card in this test case. Therefore, we should skip the runs when the parametrization is on LCs.

How did you do it?
How did you verify/test it?
Ran it on T2 and I can confirm it's only run for supervisor parametrization.

Any platform specific information?
Supported testbed topology if it's a new test case?

co-authorized by: jianquanye@microsoft.com
@cyw233 cyw233 deleted the skip-psu-check-on-lc branch January 10, 2025 00:23
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.

3 participants