Skip to content

[Snappi] - Test Changes to support Infra changes for dynamic port selection from the setup replacing variables.py file#18091

Merged
yejianquan merged 19 commits intosonic-net:masterfrom
YatishSVC:snappi_tests_fixes
Jun 9, 2025
Merged

[Snappi] - Test Changes to support Infra changes for dynamic port selection from the setup replacing variables.py file#18091
yejianquan merged 19 commits intosonic-net:masterfrom
YatishSVC:snappi_tests_fixes

Conversation

@YatishSVC
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Fixes # (issue)
#13769

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?

To support infra changes in snappi tests introduced by this Pull Request - #15069

How did you do it?

We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?

Ran in Microsoft Lab on T2 Arista Chassis.

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 will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@YatishSVC
Copy link
Copy Markdown
Contributor Author

@amitpawar12, @kamalsahu0001 For viz.

@YatishSVC YatishSVC requested a review from auspham April 23, 2025 05:20
@YatishSVC YatishSVC moved this to In Progress in SONiC Snappi Apr 23, 2025
@sdszhang
Copy link
Copy Markdown
Contributor

@YatishSVC can you share the test result on T0 testbed?

@sdszhang
Copy link
Copy Markdown
Contributor

@amitpawar12 can you review this?

@sdszhang
Copy link
Copy Markdown
Contributor

pending on #17920

@sdszhang
Copy link
Copy Markdown
Contributor

sdszhang commented May 5, 2025

pending on #18067

@sdszhang
Copy link
Copy Markdown
Contributor

sdszhang commented Jun 4, 2025

@YatishSVC can you resolve the conflicts and upload a test result as well. Thanks!

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang sdszhang moved this from In Progress to To be Merged in SONiC Snappi Jun 8, 2025
@yejianquan yejianquan merged commit 6621a0f into sonic-net:master Jun 9, 2025
11 checks passed
@github-project-automation github-project-automation bot moved this from To be Merged to Done in SONiC Snappi Jun 9, 2025
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 9, 2025
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #18858

mssonicbld pushed a commit that referenced this pull request Jun 9, 2025
…ection from the setup replacing variables.py file (#18091)

Description of PR
Summary:
Fixes # (issue)
#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - #15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
Signed-off-by: Yael Tzur <ytzur@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
…ection from the setup replacing variables.py file (sonic-net#18091)

Description of PR
Summary:
Fixes # (issue)
sonic-net#13769

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

Approach
What is the motivation for this PR?
To support infra changes in snappi tests introduced by this Pull Request - sonic-net#15069

How did you do it?
We don't need the setup_ports_and_dut now and we can simply call the snappi_testbed_config in the test itself and iterate through the available ports.

How did you verify/test it?
Ran in Microsoft Lab on T2 Arista Chassis.

Co-authored-by: yatishkoul <yatishkoul@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants