Skip to content
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

update skip conditions for watermark cases #15352

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

zhixzhu
Copy link
Contributor

@zhixzhu zhixzhu commented Nov 5, 2024

Description of PR

Updated skip conditions of watermark cases.

QSharedWatermark: Queue watermark read on egress, since qos params are based on src, keep skipping lossless if src and dst's port_speed_cable_length different, or asic types(Q200, Q100) are different.

PgSharedWatermark: Unskip lossless multi_dut.

BufferPoolWatermark: The watermark is read on egress asic. Unskip lossy for multi_dut. Unskip lossless for multi_dut_shortlink_to_shortlink. Since qos params are based on src, keep skipping lossless if src and dst's port_speed_cable_length different, or asic types(Q200, Q100) are different.

Summary:
Fixes # (issue)
https://migsonic.atlassian.net/browse/MIGSMSFT-695 QoS SAI test gap review

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?

update skip conditions for QSharedWatermark and PgSharedWatermark.

How did you do it?

How did you verify/test it?

Verified it on T2 testbed.

QSharedWatermark:
multi-dut short_to_short is also enabled, since ingress and egress port same config. Verification pending.

------------------------------ generated xml file: /tmp/qos/test_qos_sai.py::TestQosSai::testQosSaiQSharedWatermark_2024-11-08-21-50-32.xml ------------------------------
INFO:root:Can not get Allure report URL. Please check logs
------------------------------------------------------------------------- live log sessionfinish -------------------------------------------------------------------------
22:36:22 __init__.pytest_terminal_summary         L0067 INFO   | Can not get Allure report URL. Please check logs
======================================================================== short test summary info =========================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiQSharedWatermark[single_asic-wm_q_shared_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiQSharedWatermark[single_asic-wm_q_shared_lossy]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiQSharedWatermark[single_dut_multi_asic-wm_q_shared_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiQSharedWatermark[single_dut_multi_asic-wm_q_shared_lossy]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiQSharedWatermark[multi_dut_longlink_to_shortlink-wm_q_shared_lossy]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiQSharedWatermark[multi_dut_shortlink_to_longlink-wm_q_shared_lossy]
SKIPPED [2] qos/test_qos_sai.py:1830: Skip queue watermark lossless test since portspeed or cable length is different between src and dst asic
SKIPPED [2] qos/test_qos_sai.py:1800: Don't have 2 shortlink frontend nodes - so can't run multi_dut_shortlink_to_shortlinktests
========================================================== 6 passed, 4 skipped, 1 warning in 2748.05s (0:45:48) ==========================================================
sonic@sonic-ucs-m6-09:/data/tests$ 

PgSharedWatermark multi_dut:

----------------------------- generated xml file: /tmp/qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark_2024-11-08-20-50-54.xml ------------------------------
INFO:root:Can not get Allure report URL. Please check logs
------------------------------------------------------------------------- live log sessionfinish -------------------------------------------------------------------------
21:32:17 __init__.pytest_terminal_summary         L0067 INFO   | Can not get Allure report URL. Please check logs
======================================================================== short test summary info =========================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark[single_asic-wm_pg_shared_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark[single_asic-wm_pg_shared_lossy]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark[single_dut_multi_asic-wm_pg_shared_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark[multi_dut_longlink_to_shortlink-wm_pg_shared_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark[multi_dut_shortlink_to_longlink-wm_pg_shared_lossless]
SKIPPED [3] qos/test_qos_sai.py:1642: PGSharedWatermark: Lossy test is not applicable in cisco-8000 multi_asic scenarios.
SKIPPED [2] qos/test_qos_sai.py:1598: Don't have 2 shortlink frontend nodes - so can't run multi_dut_shortlink_to_shortlinktests
========================================================== 5 passed, 5 skipped, 1 warning in 2482.17s (0:41:22) ==========================================================
sonic@sonic-ucs-m6-09:/data/tests$  
----------------------------- generated xml file: /tmp/qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark_2024-11-05-00-51-43.xml ------------------------------
------------------------------------------------------------------------- live log sessionfinish -------------------------------------------------------------------------
01:09:16 __init__.pytest_terminal_summary         L0067 INFO   | Can not get Allure report URL. Please check logs
======================================================================== short test summary info =========================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark[multi_dut_shortlink_to_shortlink-wm_pg_shared_lossless]
SKIPPED [1] qos/test_qos_sai.py:1617: The lossy test is not valid for multiAsic configuration.
========================================================== 1 passed, 1 skipped, 1 warning in 1051.75s (0:17:31) ==========================================================
DEBUG:tests.conftest:[log_custom_msg] item: <Function testQosSaiPgSharedWatermark[multi_dut_shortlink_to_shortlink-wm_pg_shared_lossy]>
DEBUG:tests.conftest:append custom_msg: {'dut_check_result': {'config_db_check_pass': False, 'core_dump_check_pass': True}}
INFO:root:Can not get Allure report URL. Please check logs
sonic@sonic-ucs-m6-4:/data/tests$ 

BufferPoolWatermark:

----------- generated xml file: /tmp/qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark_2024-11-05-05-56-41.xml -----------
------------------------------------------------------- live log sessionfinish --------------------------------------------------------
06:23:48 __init__.pytest_terminal_summary         L0067 INFO   | Can not get Allure report URL. Please check logs
======================================================= short test summary info =======================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[multi_dut_shortlink_to_shortlink-wm_buf_pool_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[multi_dut_shortlink_to_shortlink-wm_buf_pool_lossy]
---------------------------- generated xml file: /tmp/qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark_2024-11-08-19-14-59.xml -----------------------------
INFO:root:Can not get Allure report URL. Please check logs
------------------------------------------------------------------------- live log sessionfinish -------------------------------------------------------------------------
19:57:05 __init__.pytest_terminal_summary         L0067 INFO   | Can not get Allure report URL. Please check logs
======================================================================== short test summary info =========================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[single_asic-wm_buf_pool_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[single_asic-wm_buf_pool_lossy]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[single_dut_multi_asic-wm_buf_pool_lossless]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[single_dut_multi_asic-wm_buf_pool_lossy]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[multi_dut_longlink_to_shortlink-wm_buf_pool_lossy]
PASSED qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark[multi_dut_shortlink_to_longlink-wm_buf_pool_lossy]
SKIPPED [2] qos/test_qos_sai.py:1108: Skip buffer Pool watermark lossless test since portspeed or cable length is different between src and dst asic
SKIPPED [2] qos/test_qos_sai.py:1070: Don't have 2 shortlink frontend nodes - so can't run multi_dut_shortlink_to_shortlinktests
========================================================== 6 passed, 4 skipped, 1 warning in 2524.20s (0:42:04) ==========================================================
sonic@sonic-ucs-m6-09:/data/tests$ 

Any platform specific information?

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

Documentation

@zhixzhu zhixzhu changed the title update skip conditions for QSharedWatermark and PgSharedWatermark update skip conditions for watermark cases Nov 6, 2024
@zhixzhu zhixzhu force-pushed the qos_sai_skip_update branch from dde5932 to 59b744f Compare November 8, 2024 23:11
@alpeshspatel
Copy link
Contributor

FYI @kevinwangsk and @wsycqyz

@auspham
Copy link
Contributor

auspham commented Nov 14, 2024

@abdosi please help review

@sdszhang
Copy link
Contributor

sdszhang commented Dec 9, 2024

@zhixzhu can you resolve the conflict, and move it out of draft state when ready?

Signed-off-by: Zhixin Zhu <[email protected]>
@zhixzhu zhixzhu marked this pull request as ready for review December 9, 2024 17:33
@zhixzhu
Copy link
Contributor Author

zhixzhu commented Dec 9, 2024

Conflict resolved, ready for review.

Copy link
Contributor

@sdszhang sdszhang left a comment

Choose a reason for hiding this comment

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

LGTM

@abdosi abdosi merged commit 45b347c into sonic-net:master Dec 12, 2024
16 checks passed
@mssonicbld
Copy link
Collaborator

@zhixzhu PR conflicts with 202405 branch

@zhixzhu
Copy link
Contributor Author

zhixzhu commented Dec 13, 2024

Double commit to 202405: #16056

@zhixzhu zhixzhu deleted the qos_sai_skip_update branch December 13, 2024 01:47
@sdszhang
Copy link
Contributor

sdszhang commented Dec 13, 2024

cherry pick conflicts due to #14469 not in 202405.

yejianquan pushed a commit that referenced this pull request Dec 13, 2024
Description of PR
Summary:
Fixes # (issue)
Double commit #15352

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 Test case(new/improvement)

Signed-off-by: Zhixin Zhu <[email protected]>
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jan 2, 2025
Updated skip conditions of watermark cases.

QSharedWatermark: Queue watermark read on egress, since qos params are based on src, keep skipping lossless if src and dst's port_speed_cable_length different, or asic types(Q200, Q100) are different.

PgSharedWatermark: Unskip lossless multi_dut.

BufferPoolWatermark: The watermark is read on egress asic. Unskip lossy for multi_dut. Unskip lossless for multi_dut_shortlink_to_shortlink. Since qos params are based on src, keep skipping lossless if src and dst's port_speed_cable_length different, or asic types(Q200, Q100) are different.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202411: #16297

mssonicbld pushed a commit that referenced this pull request Jan 3, 2025
Updated skip conditions of watermark cases.

QSharedWatermark: Queue watermark read on egress, since qos params are based on src, keep skipping lossless if src and dst's port_speed_cable_length different, or asic types(Q200, Q100) are different.

PgSharedWatermark: Unskip lossless multi_dut.

BufferPoolWatermark: The watermark is read on egress asic. Unskip lossy for multi_dut. Unskip lossless for multi_dut_shortlink_to_shortlink. Since qos params are based on src, keep skipping lossless if src and dst's port_speed_cable_length different, or asic types(Q200, Q100) are different.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Done
Development

Successfully merging this pull request may close these issues.

8 participants