Skip to content

chore: disable default dynamic var snappi fallback#18793

Merged
yejianquan merged 1 commit intosonic-net:masterfrom
auspham:austinpham/33123296-disable-default-dynamic-fallback
Jun 5, 2025
Merged

chore: disable default dynamic var snappi fallback#18793
yejianquan merged 1 commit intosonic-net:masterfrom
auspham:austinpham/33123296-disable-default-dynamic-fallback

Conversation

@auspham
Copy link
Copy Markdown
Contributor

@auspham auspham commented Jun 4, 2025

Description of PR

Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change

  • 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?

Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

@sdszhang @kamalsahu0001 @amitpawar12 for viz

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

Signed-off-by: Austin Pham <austinpham@microsoft.com>
@sdszhang sdszhang moved this to To be Merged in SONiC Snappi Jun 4, 2025
Copy link
Copy Markdown
Contributor

@sdszhang sdszhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yejianquan
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yejianquan yejianquan merged commit 7883b68 into sonic-net:master Jun 5, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from To be Merged to Done in SONiC Snappi Jun 5, 2025
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 5, 2025
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #18813

mssonicbld pushed a commit that referenced this pull request Jun 6, 2025
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.com>
@sdszhang
Copy link
Copy Markdown
Contributor

@amitpawar12 for viz.

@vkjammala-arista
Copy link
Copy Markdown
Contributor

Hi @auspham, these changes doesn't look right to me and is causing regression for T0 (tgen-t0-3).

if the testbed data is not there in snappi_tests/variables.override.yml, we want dynamic port selection to happen as per HLD but the code changes are doing opposite. Can you explain why we made this change (sounds like this is temporary fix for T1 but we shouldn't left T0 broken)?

@auspham
Copy link
Copy Markdown
Contributor Author

auspham commented Jul 8, 2025

Hi @vkjammala-arista, we haven't officially support dynamic port selection for t0/t1 yet so we temporary disable it. Does variables.override.yml not working for your end?

@vkjammala-arista
Copy link
Copy Markdown
Contributor

vkjammala-arista commented Jul 8, 2025

we haven't officially support dynamic port selection for t0/t1 yet so we temporary disable it.

I'm not aware that dynamic port selection isn't supported for t0/t1 (thus , as I saw tgen_port_info fixtures being used I expected it to work. Any known issues here?

I had run tests with this PR changes reverted, i don't see any obvious issues with dynamic port selection though.

Does variables.override.yml not working for your end?

I got to know about this file very recently, and thought this is not needed with dynamic port selection enabled.

@auspham
Copy link
Copy Markdown
Contributor Author

auspham commented Jul 8, 2025

I'm not aware that dynamic port selection isn't supported for t0/t1 (thus , as I saw tgen_port_info fixtures being used I expected it to work. Any known issues here?

It supposed to support t0/t1 as well, however when we saw some issue that blocking us to run the test so we toggle it off for t0/t1 and marking this as a todo come back and investigate using this PR.

I got to know about this file very recently, and thought this is not needed with dynamic port selection enabled.

Yes it is supposed to behave this way.

If we revert this PR here does it work from your end?

@vkjammala-arista
Copy link
Copy Markdown
Contributor

If we revert this PR here does it work from your end?

Yeah, atleast port selection seems fine (snappi_ports are populated correctly as per test requirements).

It supposed to support t0/t1 as well, however when we saw some issue that blocking us to run the test so we toggle it off for t0/t1

What type of issues you were seeing, do you have some logs/written documents somewhere that I can check. Thanks!

@auspham
Copy link
Copy Markdown
Contributor Author

auspham commented Jul 8, 2025

We saw something like this on T0 T1

image

@vkjammala-arista
Copy link
Copy Markdown
Contributor

vkjammala-arista commented Jul 8, 2025

We have seen this failure and looking more into this, but atleast as per my understanding this failure doesn't have anything to do with dynamic port selection (as the code path setup_dut_ports is common for both dynamic port selection and static port selection)

Did you confirmed that the failure is related to dynamic port selection? and you're not seeing this failure after switching to static port selection?

@kamalsahu0001
Copy link
Copy Markdown
Contributor

kamalsahu0001 commented Jul 8, 2025

Error mentioned by @auspham is different and is not related to dynamic ports selection. That error comes when all three sections are enabled under snappi_fixtures.py code. In general, it should check for either of them. But if we enable, all three it will complain about vlan interfaces not configured, if the DUT has routed ports instead of vlans. If there are no vlans, then we can comment that section in snappi_fixtures.py. Attaching the snapshot for reference.
snappi_fixtures_screenshot

@sdszhang
Copy link
Copy Markdown
Contributor

sdszhang commented Jul 8, 2025

@vkjammala-arista is the snappi test cases passing for you without dynamic-port-selection?

opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.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
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.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
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.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
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.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
Description of PR
Summary: Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Fixes # (issue) 33123296

Type of change
 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?
Disable the default dynamic variable snappi fallback since T1-tgen testbed does not support this feature yet and currently generating alert. Disabling this now to suspress the alert.

Signed-off-by: Austin Pham <austinpham@microsoft.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