From 044c36d4f4a8a33b4cb11d6a34d943202050269e Mon Sep 17 00:00:00 2001 From: Christopher Croy Date: Fri, 5 Sep 2025 19:10:00 +0000 Subject: [PATCH] [TH5] Skip VxLAN Tests for Non-Applicable Topologies Skip the following tests: decap/test_decap.py::test_decap[ttl=pipe, dscp=uniform, vxlan=set_unset] vxlan/test_vxlan_decap.py for the following topologes: - t0-isolated-d32u32s2 - t0-isolated-d256u256s2 - t0-isolated-v6-d32u32s2 - t0-isolated-v6-d256u256s2 - t1-isolated-d56u2 - t1-isolated-d56u1-lag - t1-isolated-d448u15-lag - t1-isolated-v6-d56u2 - t1-isolated-v6-d56u1-lag - t1-isolated-v6-d448u15-lag - t1-isolated-d32 - t1-isolated-d128 - t1-isolated-v6-d128 - t0-isolated-d96u32s2 - t0-isolated-v6-d96u32s2 --- .../tests_mark_conditions.yaml | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml b/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml index 8350b97090c..8cd16f2bfd6 100644 --- a/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml +++ b/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml @@ -1,3 +1,28 @@ +####################################### +##### Define Anchors ##### +####################################### + +# yaml files don't let an anchor be defined outside a yaml entry, so this block just +# creates an entry for pre-test but ensure it will always run, then the other +# conditions can just be used to define anchors for further use in this file + +test_pretest.py: + skip: + reason: "Dummy entry to allow anchors to be defined at the top of this file" + conditions_logical_operator: and + conditions: + - "False" # Ensure pretest always runs + - &noVxlanTopos | + topo_name in [ + 't0-isolated-d32u32s2', 't0-isolated-d256u256s2', + 't0-isolated-d96u32s2', 't0-isolated-v6-d32u32s2', + 't0-isolated-v6-d256u256s2', 't0-isolated-v6-d96u32s2', + 't1-isolated-d56u2', 't1-isolated-d56u1-lag', + 't1-isolated-d448u15-lag', 't1-isolated-d128', + 't1-isolated-d32', 't1-isolated-v6-d56u2', + 't1-isolated-v6-d56u1-lag', 't1-isolated-v6-d448u15-lag', + 't1-isolated-v6-d128' ] + ####################################### ##### cutsom_acl ##### ####################################### @@ -602,12 +627,12 @@ decap/test_decap.py::test_decap[ttl=pipe, dscp=uniform, vxlan=disable]: decap/test_decap.py::test_decap[ttl=pipe, dscp=uniform, vxlan=set_unset]: skip: - reason: "Not supported on backend, T2 topologies , broadcom platforms before 202012 release, x86_64-8111_32eh_o-r0 platform. Skip on mellanox all releases. Skip on 7260CX3 T1 topo in 202305 release. Skip on t1-isolated-d32/128 topos" + reason: "Not supported on backend, T2 topologies , broadcom platforms before 202012 release, x86_64-8111_32eh_o-r0 platform. Skip on mellanox all releases. Skip on 7260CX3 T1 topo in 202305 release. Not required on isolated topologies d256u256s2, d96u32s2, d448u15-lag, and d128, as well as their minimzed and -v6 variants." conditions_logical_operator: or conditions: - "('t2' in topo_name) or (topo_name in ['t1-backend', 't0-backend']) or (asic_type in ['broadcom'] and release in ['201811', '201911']) or platform in ['x86_64-8111_32eh_o-r0'] or asic_type in ['mellanox']" - "'7260CX3' in hwsku and release in ['202305'] and 't1' in topo_type" - - "topo_name in ['t1-isolated-d128', 't1-isolated-d32']" + - *noVxlanTopos decap/test_decap.py::test_decap[ttl=uniform, dscp=pipe, vxlan=disable]: skip: @@ -4220,9 +4245,11 @@ vxlan/test_vxlan_crm.py::Test_VxLAN_Crm::test_crm_512_nexthop_groups[v6_in_v6]: vxlan/test_vxlan_decap.py: skip: - reason: "vxlan support not available for cisco-8122 platforms" + reason: "vxlan support not available for cisco-8122 platforms. Not required on isolated topologies d256u256s2, d96u32s2, d448u15-lag, and d128, as well as their minimzed and -v6 variants." + conditions_logical_operator: OR conditions: - "platform in ['x86_64-8122_64eh_o-r0', 'x86_64-8122_64ehf_o-r0']" + - *noVxlanTopos xfail: reason: "Skipped due to bug https://github.com/sonic-net/sonic-buildimage/issues/22056" conditions: