Skip to content

Enable new test cases for smartswitch platforms#16935

Merged
bingwang-ms merged 5 commits intosonic-net:masterfrom
prabhataravind:paravind/enable_new_ss_tests
Mar 3, 2025
Merged

Enable new test cases for smartswitch platforms#16935
bingwang-ms merged 5 commits intosonic-net:masterfrom
prabhataravind:paravind/enable_new_ss_tests

Conversation

@prabhataravind
Copy link
Copy Markdown
Contributor

@prabhataravind prabhataravind commented Feb 12, 2025

Description of PR

Enable new test cases for smartswitch which were previously getting skipped

  • Add t1-28-lag topology to the list of topologies supported for various tests that are currently run for t1-lag and t1-64-lag.
  • Add cisco and nvidia smartswitch platform for certain tests that are currently run on Cisco 8102 and Mellanox SN4600/4700.
  • Fix confusing skip conditions for test_bfd_basic and test_bfd_scale

Summary:
Fixes # (31188716)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/enable_new_ss_tests branch from 5ec4198 to 914a9dd Compare February 12, 2025 18:52
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/enable_new_ss_tests branch from 914a9dd to 119f4d1 Compare February 13, 2025 00:05
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind marked this pull request as ready for review February 19, 2025 16:56
Comment thread tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
Comment thread tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Pull request contains merge conflicts.

@prabhataravind
Copy link
Copy Markdown
Contributor Author

@kevinskwang @XuChen-MSFT please review the Cisco specific updates to test_bfd_basic and test_bfd_scale. Let me know if there any concerns.

@prabhataravind prabhataravind force-pushed the paravind/enable_new_ss_tests branch from f2bea5b to 1f8b9c4 Compare February 27, 2025 02:57
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/enable_new_ss_tests branch from 1f8b9c4 to 7622c45 Compare February 27, 2025 03:00
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms bingwang-ms merged commit 390ab01 into sonic-net:master Mar 3, 2025
15 checks passed
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Mar 4, 2025
* Add t1-28-lag to the list of topologies supported for certain qos/vxlan tests

Signed-off-by: Prabhat Aravind <[email protected]>

* Fix skip conditions for test_bfd_basic.py and test_bfd_scale.py

Signed-off-by: Prabhat Aravind <[email protected]>

---------

Signed-off-by: Prabhat Aravind <[email protected]>
bradh352 added a commit to bradh352/sonic-mgmt that referenced this pull request Mar 6, 2025
In PR sonic-net#16935 a typo was introduced which introduces this error:

```
16:33:51 __init__.evaluate_condition              L0554 ERROR  | Failed to evaluate condition, raw_condition=topo_name not in ['t0', 't0-64', 't0-116', 't0-118', '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-28-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'], condition_str=topo_name not in ['t0', 't0-64', 't0-116', 't0-118', '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-28-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']
Traceback (most recent call last):
  File "/data/sonic-mgmt/tests/common/plugins/conditional_mark/__init__.py", line 549, in evaluate_condition
    condition_result = bool(eval(condition_str, basic_facts))
  File "<string>", line 1
    topo_name not in ['t0', 't0-64', 't0-116', 't0-118', '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-28-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']
                                                                                                                                                                                                                                                            ^
SyntaxError: invalid syntax
```

This fixes that typo.

Signed-off-by: Brad House (@bradh352)
@mssonicbld
Copy link
Copy Markdown
Collaborator

@prabhataravind PR conflicts with 202411 branch

nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
* Add t1-28-lag to the list of topologies supported for certain qos/vxlan tests

Signed-off-by: Prabhat Aravind <[email protected]>

* Fix skip conditions for test_bfd_basic.py and test_bfd_scale.py

Signed-off-by: Prabhat Aravind <[email protected]>

---------

Signed-off-by: Prabhat Aravind <[email protected]>
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
* Add t1-28-lag to the list of topologies supported for certain qos/vxlan tests

Signed-off-by: Prabhat Aravind <[email protected]>

* Fix skip conditions for test_bfd_basic.py and test_bfd_scale.py

Signed-off-by: Prabhat Aravind <[email protected]>

---------

Signed-off-by: Prabhat Aravind <[email protected]>
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.

5 participants