Skip to content

Add tgen_port_info to dynamically adjust multidut_port_info fixture#16729

Closed
auspham wants to merge 1 commit intosonic-net:masterfrom
auspham:austinpham/test-multidut-fixture-dynamic
Closed

Add tgen_port_info to dynamically adjust multidut_port_info fixture#16729
auspham wants to merge 1 commit intosonic-net:masterfrom
auspham:austinpham/test-multidut-fixture-dynamic

Conversation

@auspham
Copy link
Copy Markdown
Contributor

@auspham auspham commented Jan 30, 2025

Description of PR

Summary:
Fixes # (issue)

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).

@auspham
Copy link
Copy Markdown
Contributor Author

auspham commented Jan 30, 2025

@sdszhang verified on T2 that we can create fixture

On T0 i have skipped for unknown port, could be my local environment not working

To make this work we need to remove all import multidut_port_info as well since we will remove this fixture.

The default value for T0 could be an arbitrary testbed since if we leave it empty it will skip the test.

@sdszhang
Copy link
Copy Markdown
Contributor

sdszhang commented Jan 30, 2025

@amitpawar12 @vmittal-msft @rraghav-cisco @kamalsahu0001 @selldinesh this could a solution to retrieve ports based on the selected testbed, and remove the dependencies on the constant MULTIDUT_TESTBED.

@abdosi for viz.

@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from 68550e8 to ee23110 Compare February 14, 2025 04:55
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@auspham auspham changed the title chore: test variables.py Add dynamic_port_info to dynamically adjust multidut_port_info Feb 16, 2025
@auspham auspham changed the title Add dynamic_port_info to dynamically adjust multidut_port_info Add dynamic_port_info to dynamically adjust multidut_port_info fixture Feb 16, 2025
@auspham auspham marked this pull request as ready for review February 16, 2025 22:15
Comment thread tests/conftest.py Outdated
Comment thread tests/conftest.py Outdated
@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from ee23110 to 1d4551d Compare February 17, 2025 00:03
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@auspham auspham changed the title Add dynamic_port_info to dynamically adjust multidut_port_info fixture Add tgen_port_info to dynamically adjust multidut_port_info fixture Feb 17, 2025
@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from 1d4551d to 97757d1 Compare February 17, 2025 00:35
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from 97757d1 to 9392db3 Compare February 17, 2025 03:40
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Comment thread tests/snappi_tests/tgen_port_config.yml Outdated
@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from 9392db3 to 2bb8558 Compare February 17, 2025 04:40
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Comment thread tests/snappi_tests/tgen_port_config.yml Outdated
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Comment thread tests/snappi_tests/tgen_port_config.json Outdated
@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from 21b615b to 57baa92 Compare February 20, 2025 00:42
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from 57baa92 to 7425219 Compare March 19, 2025 04:41
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Austin Pham <austinpham@microsoft.com>

chore: update tgen port info

Signed-off-by: Austin Pham <austinpham@microsoft.com>
@auspham auspham force-pushed the austinpham/test-multidut-fixture-dynamic branch from 7425219 to 5d4ac09 Compare March 19, 2025 22:55
@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 to In Progress in SONiC Snappi Mar 26, 2025
@auspham
Copy link
Copy Markdown
Contributor Author

auspham commented May 6, 2025

closes in favor of #18067

@auspham auspham closed this May 6, 2025
@github-project-automation github-project-automation Bot moved this from In Progress to Done in SONiC Snappi May 6, 2025
yejianquan pushed a commit that referenced this pull request Jun 5, 2025
Description of PR
Summary:
Fixes # (issue)

Type of change
After #16729 and #15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 5, 2025
Description of PR
Summary:
Fixes # (issue)

Type of change
After sonic-net#16729 and sonic-net#15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------
mssonicbld pushed a commit that referenced this pull request Jun 5, 2025
Description of PR
Summary:
Fixes # (issue)

Type of change
After #16729 and #15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Description of PR
Summary:
Fixes # (issue)

Type of change
After sonic-net#16729 and sonic-net#15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
Description of PR
Summary:
Fixes # (issue)

Type of change
After sonic-net#16729 and sonic-net#15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------

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
Description of PR
Summary:
Fixes # (issue)

Type of change
After sonic-net#16729 and sonic-net#15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Description of PR
Summary:
Fixes # (issue)

Type of change
After sonic-net#16729 and sonic-net#15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
Description of PR
Summary:
Fixes # (issue)

Type of change
After sonic-net#16729 and sonic-net#15069, existing test cases need to be updated to support dynamic port selection.

 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement
Back port request
 202205
 202305
 202311
 202405
 202411
 202505
Approach
What is the motivation for this PR?
Update test case to adopt the new feature

How did you do it?
How did you verify/test it?
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info0]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|3-tgen_port_info1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info0] PASSED [ 75%]
snappi_tests/pfc/test_pfc_pause_lossless_with_snappi.py::test_pfc_pause_single_lossless_prio[str3-8800-lc4-1|4-tgen_port_info1] PASSED [100%]
------------------------------ live log teardown -------------------------------

Signed-off-by: Yael Tzur <ytzur@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants