Skip to content

[action] [PR:17411] Fix flakiness in pfcwd/test_pfcwd_cli.py#17619

Merged
yxieca merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/17411
Jul 1, 2025
Merged

[action] [PR:17411] Fix flakiness in pfcwd/test_pfcwd_cli.py#17619
yxieca merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/17411

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary: Fix flakiness in pfcwd/test_pfcwd_cli.py
Fixes #383

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?

Sometimes the test ends up picking an egress interface which happens to be a member of a LAG. If the LAG has multiple members and only one of them is stormed the drop/forwards expectations don't take into account lag hashing.

Some of the traffic is hashed to another LAG member which is not being stormed and no drops will occur.

How did you do it?

The proposed fix is to shutdown the remaining LAG members.

How did you verify/test it?

Tested on Arista-7260CX3 with dualtor-120 topology and 202411 image.

Any platform specific information?

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

Documentation

What is the motivation for this PR?
Sometimes the test ends up picking an egress interface which happens to be a member of a LAG. If the LAG has multiple members and only one of them is stormed the drop/forwards expectations don't take into account lag hashing.

Some of the traffic is hashed to another LAG member which is not being stormed and no drops will occur.

How did you do it?
The proposed fix is to shutdown the remaining LAG members.

How did you verify/test it?
Tested on Arista-7260CX3 with dualtor-120 topology and 202411 image.
@mssonicbld
Copy link
Collaborator Author

Original PR: #17411

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca yxieca merged commit 14dda64 into sonic-net:202411 Jul 1, 2025
12 of 14 checks passed
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Jul 1, 2025
…#17619)

What is the motivation for this PR?
Sometimes the test ends up picking an egress interface which happens to be a member of a LAG. If the LAG has multiple members and only one of them is stormed the drop/forwards expectations don't take into account lag hashing.

Some of the traffic is hashed to another LAG member which is not being stormed and no drops will occur.

How did you do it?
The proposed fix is to shutdown the remaining LAG members.

How did you verify/test it?
Tested on Arista-7260CX3 with dualtor-120 topology and 202411 image.

Co-authored-by: Vivek Verma <[email protected]>
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Aug 2, 2025
Code sync sonic-net/sonic-mgmt:202411 => 202412

```
*   a1064ff (HEAD -> code-sync-202412, origin/code-sync-202412) r12f 250702:1620 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * f98c8b2 (base/202411) jingwenxie 250513:1319 - Update logger to non user config table (sonic-net#18250)
| * 7958657 Chun'ang Li 250702:1223 - manual cherry pick PR https://github.com/sonic-net/sonic-mgmt/pull/19116/files (sonic-net#19322)
| * 14dda64 mssonicbld 250702:0533 - Fix flakiness in pfcwd/test_pfcwd_cli.py (sonic-net#17411) (sonic-net#17619)
```
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.

3 participants