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

Support qos test in KVM testbed and skip fanout config and traffic test #16157

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .azure-pipelines/pr_test_scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ onboarding_t0:
- generic_config_updater/test_mgmt_interface.py
- gnmi/test_gnmi_smartswitch.py
- gnmi/test_gnoi_killprocess.py
- qos/test_pfc_counters.py
- qos/test_pfc_pause.py
- qos/test_qos_dscp_mapping.py


onboarding_t1:
Expand All @@ -496,6 +499,8 @@ onboarding_t1:
- generic_config_updater/test_mgmt_interface.py
- gnmi/test_gnmi_smartswitch.py
- gnmi/test_gnoi_killprocess.py
- qos/test_pfc_counters.py
- qos/test_qos_dscp_mapping.py

specific_param:
t0-sonic:
Expand Down
4 changes: 4 additions & 0 deletions .azure-pipelines/pr_test_skip_scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ t0:
- platform_tests/mellanox/test_hw_management_service.py
- platform_tests/mellanox/test_psu_power_threshold.py
- platform_tests/mellanox/test_reboot_cause.py
# Qos buffer traditional test is only supported 201911 branch
- qos/test_buffer_traditional.py
# This test only support on cisco device with cisco sdk-debug mode
- qos/test_ecn_config.py
# read_mac test needs specific variables and image urls, currently do not support on KVM and regular nightly test
- read_mac/test_read_mac_metadata.py
# This script only supported on Mellanox
Expand Down
51 changes: 3 additions & 48 deletions tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1602,25 +1602,12 @@ qos/test_buffer_traditional.py:
conditions:
- "release not in ['201911']"
- "topo_type in ['m0', 'mx']"
- "asic_type in ['vs']"

qos/test_ecn_config.py:
skip:
reason: "Temporarily skip in PR testing"
conditions:
- "asic_type in ['vs']"

qos/test_pfc_counters.py:
skip:
reason: "Temporarily skip in PR testing"
reason: "This test only support on cisco device"
conditions:
- "asic_type in ['vs']"

qos/test_pfc_pause.py:
skip:
reason: "Temporarily skip in PR testing"
conditions:
- "asic_type in ['vs']"
- "asic_type not in ['cisco-8000']"

qos/test_pfc_pause.py::test_pfc_pause_lossless:
# For this test, we use the fanout connected to the DUT to send PFC pause frames.
Expand All @@ -1637,10 +1624,6 @@ qos/test_qos_dscp_mapping.py:
strict: True
conditions:
- "asic_type in ['cisco-8000'] and platform in ['x86_64-8122_64eh_o-r0']"
skip:
reason: "Temporarily skip in PR testing"
conditions:
- "asic_type in ['vs']"

qos/test_qos_dscp_mapping.py::TestQoSSaiDSCPQueueMapping_IPIP_Base::test_dscp_to_queue_mapping_pipe_mode:
skip:
Expand All @@ -1650,16 +1633,14 @@ qos/test_qos_dscp_mapping.py::TestQoSSaiDSCPQueueMapping_IPIP_Base::test_dscp_to
- "asic_type in ['mellanox', 'broadcom', 'cisco-8000']"
- https://github.com/sonic-net/sonic-mgmt/issues/12906
- "topo_type in ['m0', 'mx']"
- "asic_type in ['vs']"

qos/test_qos_masic.py:
skip:
reason: "QoS tests for multi-ASIC only. Supported topos: t1-lag, t1-64-lag, t1-56-lag, t1-backend. / M0/MX topo does not support qos"
conditions_logical_operator: or
conditions:
- "is_multi_asic==False or topo_name not in ['t1-lag', 't1-64-lag', 't1-56-lag', 't1-backend']"
- "is_multi_asic==False or topo_name not in ['t1-lag', 't1-8-lag', 't1-64-lag', 't1-56-lag', 't1-backend']"
- "topo_type in ['m0', 'mx']"
- "asic_type in ['vs']"

qos/test_qos_sai.py:
skip:
Expand All @@ -1668,7 +1649,6 @@ qos/test_qos_sai.py:
conditions:
- "asic_type in ['barefoot'] and topo_name in ['t1']"
- "topo_type in ['m0', 'mx']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai:
skip:
Expand All @@ -1677,7 +1657,6 @@ qos/test_qos_sai.py::TestQosSai:
conditions:
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "topo_type in ['m0', 'mx']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testIPIPQosSaiDscpToPgMapping:
skip:
Expand All @@ -1688,7 +1667,6 @@ qos/test_qos_sai.py::TestQosSai::testIPIPQosSaiDscpToPgMapping:
- https://github.com/sonic-net/sonic-mgmt/issues/12906
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testPfcStormWithSharedHeadroomOccupancy:
skip:
Expand All @@ -1698,7 +1676,6 @@ qos/test_qos_sai.py::TestQosSai::testPfcStormWithSharedHeadroomOccupancy:
- "asic_type in ['cisco-8000']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark:
skip:
Expand All @@ -1708,7 +1685,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiBufferPoolWatermark:
- "platform in ['x86_64-nokia_ixr7250e_36x400g-r0', 'x86_64-arista_7800r3_48cq2_lc', 'x86_64-arista_7800r3_48cqm2_lc', 'x86_64-arista_7800r3a_36d2_lc', 'x86_64-arista_7800r3a_36dm2_lc','x86_64-arista_7800r3ak_36dm2_lc']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiDot1pPgMapping:
skip:
Expand All @@ -1718,7 +1694,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiDot1pPgMapping:
- "'backend' not in topo_name"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiDot1pQueueMapping:
skip:
Expand All @@ -1728,7 +1703,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiDot1pQueueMapping:
- "'backend' not in topo_name"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiDscpQueueMapping:
skip:
Expand All @@ -1738,7 +1712,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiDscpQueueMapping:
- "'backend' in topo_name"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiDscpToPgMapping:
skip:
Expand All @@ -1748,7 +1721,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiDscpToPgMapping:
- "'backend' in topo_name"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiDwrrWeightChange:
skip:
Expand All @@ -1758,7 +1730,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiDwrrWeightChange:
- "asic_type in ['mellanox']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiFullMeshTrafficSanity:
skip:
Expand All @@ -1768,7 +1739,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiFullMeshTrafficSanity:
- "asic_type not in ['cisco-8000'] or topo_name not in ['ptf64']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiHeadroomPoolSize:
skip:
Expand All @@ -1781,7 +1751,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiHeadroomPoolSize:
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "'t2' in topo_name and asic_subtype in ['broadcom-dnx']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiHeadroomPoolWatermark:
skip:
Expand All @@ -1793,7 +1762,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiHeadroomPoolWatermark:
and https://github.com/sonic-net/sonic-mgmt/issues/12292 and hwsku in ['Force10-S6100'] and topo_type in ['t1-64-lag']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"
xfail:
reason: "Headroom pool size not supported."
conditions:
Expand All @@ -1807,7 +1775,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiLosslessVoq:
- "asic_type not in ['cisco-8000'] or platform in ['x86_64-8122_64eh_o-r0']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiLossyQueueVoq:
skip:
Expand All @@ -1817,7 +1784,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiLossyQueueVoq:
- "asic_type not in ['cisco-8000'] or platform in ['x86_64-8122_64eh_o-r0']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiLossyQueueVoqMultiSrc:
skip:
Expand All @@ -1827,7 +1793,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiLossyQueueVoqMultiSrc:
- "asic_type not in ['cisco-8000'] or platform in ['x86_64-8122_64eh_o-r0']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiPGDrop:
skip:
Expand All @@ -1837,7 +1802,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiPGDrop:
- "asic_type not in ['cisco-8000'] or platform in ['x86_64-8122_64eh_o-r0']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiPgHeadroomWatermark:
skip:
Expand All @@ -1847,7 +1811,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiPgHeadroomWatermark:
- "asic_type in ['cisco-8000'] and platform not in ['x86_64-8122_64eh_o-r0']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiPgSharedWatermark[None-wm_pg_shared_lossy]:
xfail:
Expand All @@ -1863,7 +1826,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiQWatermarkAllPorts:
- "asic_type not in ['cisco-8000']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_qos_sai.py::TestQosSai::testQosSaiSharedReservationSize:
skip:
Expand All @@ -1873,13 +1835,6 @@ qos/test_qos_sai.py::TestQosSai::testQosSaiSharedReservationSize:
- "asic_type not in ['cisco-8000'] or platform in ['x86_64-8122_64eh_o-r0']"
- "topo_type in ['m0', 'mx']"
- "topo_name not in ['t0', 't0-64', 't0-116', 't0-35', 't0-56', 't0-standalone-32', 't0-standalone-64', 't0-standalone-128', 't0-standalone-256', 'dualtor-56', 'dualtor-120', 'dualtor', 't0-80', 't0-backend', 't1-lag', 't1-64-lag', 't1-56-lag', 't1-backend', 't2', 't2_2lc_36p-masic', 't2_2lc_min_ports-masic'] and asic_type not in ['mellanox']"
- "asic_type in ['vs']"

qos/test_tunnel_qos_remap.py:
skip:
reason: "Temporarily skip in PR testing"
conditions:
- "asic_type in ['vs']"

qos/test_tunnel_qos_remap.py::test_pfc_watermark_extra_lossless_active:
xfail:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,21 @@ ipfwd/test_nhop_group.py:
conditions:
- "asic_type in ['vs']"

#######################################
##### qos #####
#######################################
qos/test_qos_dscp_mapping.py:
skip_traffic_test:
reason: "Skip traffic test for KVM testbed"
conditions:
- "asic_type in ['vs']"

qos/test_tunnel_qos_remap.py:
skip_traffic_test:
reason: "Skip traffic test for KVM testbed"
conditions:
- "asic_type in ['vs']"

#######################################
##### route #####
#######################################
Expand Down
3 changes: 0 additions & 3 deletions tests/qos/test_ecn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import logging
import time
import pytest
from tests.common.cisco_data import is_cisco_device
import json


Expand Down Expand Up @@ -106,8 +105,6 @@ def test_verify_ecn_marking_config(duthosts, rand_one_dut_hostname, request):
@summary: Verify output of `show platform npu voq cgm_profile with wred_profile drop probability`
"""
duthost = duthosts[rand_one_dut_hostname]
if not is_cisco_device(duthost):
pytest.skip("Skipping as not a Cisco device")

cmd = "show platform npu rx cgm_global -d"

Expand Down
Loading
Loading