Skip to content

Change the losslessvoq ports to use the ones coming from qos-sai-base.#11384

Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom
rraghav-cisco:o8c48-losslessvoq
Feb 5, 2024
Merged

Change the losslessvoq ports to use the ones coming from qos-sai-base.#11384
StormLiangMS merged 1 commit intosonic-net:masterfrom
rraghav-cisco:o8c48-losslessvoq

Conversation

@rraghav-cisco
Copy link
Copy Markdown
Contributor

Description of PR

The testcase: qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq uses an internal logic to find the required src and dst ports. This conflicts with the qos-sai-base.py, which returns a correctly calculated set of ports. This causes the test to fail in the case of O8C48, which contains 2 different set of ports with different port-speeds. This PR adjusts that test to use the ports from the qos-sai-base itself.

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?

To fix the failure of losslessvoq in O8C48 platform.

How did you do it?

Changed the test to use the ports from the base code.

How did you verify/test it?

Ran it on my O8C48 Testbed:
=============================================================================================== PASSES ===============================================================================================
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_1] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_2] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_3] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_4] ____________________________________________________________________
------------------------------- generated xml file: /run_logs/8030/2024-01-24-19-49-44/qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq_2024-01-24-19-49-44.xml --------------------------------
INFO:root:Can not get Allure report URL. Please check logs
--------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------
19:55:07 init.pytest_terminal_summary L0064 INFO | Can not get Allure report URL. Please check logs
====================================================================================== short test summary info =======================================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_1]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_2]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_3]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_4]
SKIPPED [4] qos/qos_sai_base.py:602: Did not find any frontend node that is multi-asic - so can't run single_dut_multi_asic tests
SKIPPED [4] qos/qos_sai_base.py:609: multi-dut is not supported on T1 topologies
======================================================================= 4 passed, 8 skipped, 10 warnings in 320.93s (0:05:20) ========================================================================
AzDevOps@sonic-ucs-m3-4:/data/tests$

Any platform specific information?

The change is needed for O8C48, but it doesn't affect others.

@rraghav-cisco
Copy link
Copy Markdown
Contributor Author

@XuChen-MSFT : for viz.

@rraghav-cisco
Copy link
Copy Markdown
Contributor Author

@XuChen-MSFT : I heard you had another issue with this PR. May I know what the issue is ?

Copy link
Copy Markdown
Contributor

@XuChen-MSFT XuChen-MSFT left a comment

Choose a reason for hiding this comment

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

LGTM, and pass local test on multiple platform

Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit 67120b2 into sonic-net:master Feb 5, 2024
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 5, 2024
sonic-net#11384)

What is the motivation for this PR?
To fix the failure of losslessvoq in O8C48 platform.

How did you do it?
Changed the test to use the ports from the base code.

How did you verify/test it?
Ran it on my O8C48 Testbed:
=============================================================================================== PASSES ===============================================================================================
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_1] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_2] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_3] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_4] ____________________________________________________________________
------------------------------- generated xml file: /run_logs/8030/2024-01-24-19-49-44/qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq_2024-01-24-19-49-44.xml --------------------------------
INFO:root:Can not get Allure report URL. Please check logs
--------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------
19:55:07 init.pytest_terminal_summary L0064 INFO | Can not get Allure report URL. Please check logs
====================================================================================== short test summary info =======================================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_1]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_2]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_3]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_4]
SKIPPED [4] qos/qos_sai_base.py:602: Did not find any frontend node that is multi-asic - so can't run single_dut_multi_asic tests
SKIPPED [4] qos/qos_sai_base.py:609: multi-dut is not supported on T1 topologies
======================================================================= 4 passed, 8 skipped, 10 warnings in 320.93s (0:05:20) ========================================================================
AzDevOps@sonic-ucs-m3-4:/data/tests$

Any platform specific information?
The change is needed for O8C48, but it doesn't affect others.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202305: #11605

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 5, 2024
sonic-net#11384)

What is the motivation for this PR?
To fix the failure of losslessvoq in O8C48 platform.

How did you do it?
Changed the test to use the ports from the base code.

How did you verify/test it?
Ran it on my O8C48 Testbed:
=============================================================================================== PASSES ===============================================================================================
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_1] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_2] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_3] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_4] ____________________________________________________________________
------------------------------- generated xml file: /run_logs/8030/2024-01-24-19-49-44/qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq_2024-01-24-19-49-44.xml --------------------------------
INFO:root:Can not get Allure report URL. Please check logs
--------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------
19:55:07 init.pytest_terminal_summary L0064 INFO | Can not get Allure report URL. Please check logs
====================================================================================== short test summary info =======================================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_1]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_2]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_3]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_4]
SKIPPED [4] qos/qos_sai_base.py:602: Did not find any frontend node that is multi-asic - so can't run single_dut_multi_asic tests
SKIPPED [4] qos/qos_sai_base.py:609: multi-dut is not supported on T1 topologies
======================================================================= 4 passed, 8 skipped, 10 warnings in 320.93s (0:05:20) ========================================================================
AzDevOps@sonic-ucs-m3-4:/data/tests$

Any platform specific information?
The change is needed for O8C48, but it doesn't affect others.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202311: #11606

@mssonicbld
Copy link
Copy Markdown
Collaborator

@rraghav-cisco PR conflicts with 202205 branch

@rraghav-cisco
Copy link
Copy Markdown
Contributor Author

@mssonicbld : 202205 PR: #11617

mssonicbld pushed a commit that referenced this pull request Feb 5, 2024
#11384)

What is the motivation for this PR?
To fix the failure of losslessvoq in O8C48 platform.

How did you do it?
Changed the test to use the ports from the base code.

How did you verify/test it?
Ran it on my O8C48 Testbed:
=============================================================================================== PASSES ===============================================================================================
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_1] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_2] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_3] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_4] ____________________________________________________________________
------------------------------- generated xml file: /run_logs/8030/2024-01-24-19-49-44/qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq_2024-01-24-19-49-44.xml --------------------------------
INFO:root:Can not get Allure report URL. Please check logs
--------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------
19:55:07 init.pytest_terminal_summary L0064 INFO | Can not get Allure report URL. Please check logs
====================================================================================== short test summary info =======================================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_1]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_2]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_3]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_4]
SKIPPED [4] qos/qos_sai_base.py:602: Did not find any frontend node that is multi-asic - so can't run single_dut_multi_asic tests
SKIPPED [4] qos/qos_sai_base.py:609: multi-dut is not supported on T1 topologies
======================================================================= 4 passed, 8 skipped, 10 warnings in 320.93s (0:05:20) ========================================================================
AzDevOps@sonic-ucs-m3-4:/data/tests$

Any platform specific information?
The change is needed for O8C48, but it doesn't affect others.
mssonicbld pushed a commit that referenced this pull request Feb 6, 2024
#11384)

What is the motivation for this PR?
To fix the failure of losslessvoq in O8C48 platform.

How did you do it?
Changed the test to use the ports from the base code.

How did you verify/test it?
Ran it on my O8C48 Testbed:
=============================================================================================== PASSES ===============================================================================================
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_1] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_2] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_3] ____________________________________________________________________
____________________________________________________________________ TestQosSai.testQosSaiLosslessVoq[single_asic-lossless_voq_4] ____________________________________________________________________
------------------------------- generated xml file: /run_logs/8030/2024-01-24-19-49-44/qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq_2024-01-24-19-49-44.xml --------------------------------
INFO:root:Can not get Allure report URL. Please check logs
--------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------
19:55:07 init.pytest_terminal_summary L0064 INFO | Can not get Allure report URL. Please check logs
====================================================================================== short test summary info =======================================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_1]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_2]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_3]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq[single_asic-lossless_voq_4]
SKIPPED [4] qos/qos_sai_base.py:602: Did not find any frontend node that is multi-asic - so can't run single_dut_multi_asic tests
SKIPPED [4] qos/qos_sai_base.py:609: multi-dut is not supported on T1 topologies
======================================================================= 4 passed, 8 skipped, 10 warnings in 320.93s (0:05:20) ========================================================================
AzDevOps@sonic-ucs-m3-4:/data/tests$

Any platform specific information?
The change is needed for O8C48, but it doesn't affect others.
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.

4 participants