Skip to content

Refactor pfcwd_helpers.py from folder tests/pfcwd to tests/common/helpers#14580

Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom
yutongzhang-microsoft:yutongzhang/refactor_pfcwd_helpers
Sep 14, 2024
Merged

Refactor pfcwd_helpers.py from folder tests/pfcwd to tests/common/helpers#14580
StormLiangMS merged 2 commits intosonic-net:masterfrom
yutongzhang-microsoft:yutongzhang/refactor_pfcwd_helpers

Conversation

@yutongzhang-microsoft
Copy link
Contributor

Description of PR

Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.

How did you do it?

Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.

How did you verify/test it?

Any platform specific information?

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

Documentation

Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit 129a699 into sonic-net:master Sep 14, 2024
@yutongzhang-microsoft yutongzhang-microsoft deleted the yutongzhang/refactor_pfcwd_helpers branch September 14, 2024 08:18
Copy link
Contributor

@Janetxxx Janetxxx left a comment

Choose a reason for hiding this comment

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

LGTM

hdwhdw pushed a commit to hdwhdw/sonic-mgmt that referenced this pull request Sep 20, 2024
…n/helpers` (sonic-net#14580)

What is the motivation for this PR?
Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.

How did you do it?
Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
…n/helpers` (sonic-net#14580)

What is the motivation for this PR?
Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.

How did you do it?
Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
…n/helpers` (sonic-net#14580)

What is the motivation for this PR?
Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.

How did you do it?
Some scripts use the shared functions in pfcwd_helpers.py. To minimize cross-module dependencies, we move this helper script from feature specific folder tests/pfcwd to common folder tests/common/helpers.
auspham added a commit to auspham/sonic-mgmt that referenced this pull request Dec 9, 2024
Signed-off-by: Austin Pham <austinpham@microsoft.com>
@lipxu
Copy link
Contributor

lipxu commented Dec 9, 2024

Hi, @yutongzhang-microsoft , do we need to pick this PR to 202405, thanks

yejianquan pushed a commit that referenced this pull request Dec 9, 2024
* add test case for cli show pfcwd stat (#14711)

What is the motivation for this PR?
#11169

How did you do it?
Add a new test case to cover "pfcwd show stats" cmd

Trigger PFC storm with action drop or forward
send_tx_egress and send_rx_ingress
execute CMD 'show pfcwd stat' and ensure the output is expected
How did you verify/test it?
https://elastictest.org/scheduler/testplan/66f268ae4216a91fd43d97b6
https://elastictest.org/scheduler/testplan/66f268880369ccd340b3ea60

* chore: fix conflict with #14580

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

---------

Signed-off-by: Austin Pham <austinpham@microsoft.com>
Co-authored-by: Liping Xu <108326363+lipxu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants