Skip to content

[dualtor] Fix test_stress_arp.py#20780

Merged
yxieca merged 1 commit intosonic-net:masterfrom
lolyu:fix_arp_stress
Sep 24, 2025
Merged

[dualtor] Fix test_stress_arp.py#20780
yxieca merged 1 commit intosonic-net:masterfrom
lolyu:fix_arp_stress

Conversation

@lolyu
Copy link
Copy Markdown
Collaborator

@lolyu lolyu commented Sep 23, 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

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Fix test_stress_arp (https://github.com/aristanetworks/sonic-qual.msft/issues/652):

  1. use enum_rand_one_per_hwsku_frontend_hostname on test functions
    test_stress_arp uses duthost as target DUT, but its fixture config_facts uses enum_rand_one_per_hwsku_frontend_hostname as the target DUT.
    Let's enforce the same DUT selection behavior.

  2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu lolv@microsoft.com

How did you do it?

As the motivation.

How did you verify/test it?

Run on active-standby dualtor.

arp/test_stress_arp.py::test_ipv4_arp[str2-7050cx3-32c-f-acs-08-None] PASSED                                     [ 33%]
arp/test_stress_arp.py::test_ipv6_nd[str2-7050cx3-32c-f-acs-08-None] PASSED                                      [ 66%]
arp/test_stress_arp.py::test_ipv6_nd_incomplete[str2-7050cx3-32c-f-acs-08-None] PASSED                           [100%]

Any platform specific information?

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

Documentation

1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@lolyu lolyu requested review from bingwang-ms and yxieca September 24, 2025 01:11
@yxieca yxieca merged commit f8020e4 into sonic-net:master Sep 24, 2025
15 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Sep 30, 2025
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #20867

mssonicbld pushed a commit that referenced this pull request Sep 30, 2025
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@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
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@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
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
yifan-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Jan 14, 2026
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: YiFan Wang <yifan@nexthop.ai>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
lakshmi-nexthop pushed a commit to lakshmi-nexthop/sonic-mgmt that referenced this pull request Jan 28, 2026
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Lakshmi Yarramaneni <lakshmi@nexthop.ai>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Yael Tzur <ytzur@nvidia.com>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Feb 6, 2026
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
1. use `enum_rand_one_per_hwsku_frontend_hostname` on test functions
`test_stress_arp` uses `duthost` as target DUT, but its fixture
`config_facts` uses `enum_rand_one_per_hwsku_frontend_hostname` as the
target DUT.
Let's enforce the same DUT selection behavior.

2. add the missing toggle on active-standby dualtor.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
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.

4 participants