Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cisco-8000 test pfcwd function background traffic revision #15772

Merged

Conversation

rbpittman
Copy link
Contributor

@rbpittman rbpittman commented Nov 27, 2024

Description of PR

Summary:

  • Revise Cisco-8000's current method of sending background traffic from an extra "verify_tx_egress" call to use the pre-existing background traffic support. The verify tx egress operation could fail if some packets leakout due to slow pfc_gen.py frames from fanout.
  • Remove the test failure catcher, as it simply rethrows an exception that is more difficult to debug. Using a simple "try-finally" pattern allows the "finally" clause to always execute even with an exception, but also continues to throw the exception without catching it, resulting in the required test failure in that case.

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Related PRs

#14711 is not in 202405, but is requested for the branch. Without that PR in 202405, the double commit of this PR will have a either have a merge conflict or possibly fail if it happens to not conflict. Possible to get that PR in 202405?

Approach

What is the motivation for this PR?

Fix flaky test on Cisco-8000.
Clarify exceptions that do occur for all vendors.

How did you do it?

How did you verify/test it?

Verified pass 10 times on Cisco-8122 T0 on 202405 branch. But master/202405 aren't in sync yet due to missing 14711 PR.

Any platform specific information?

The verify_tx_egress change is cisco-only.
The exception catcher removal should improve exception readability for all vendors.

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

Documentation

Copy link
Contributor

@alpeshspatel alpeshspatel left a comment

Choose a reason for hiding this comment

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

Pinged Kevin/Storm to back port the pr 14711 to 202405

Copy link
Collaborator

@kevinskwang kevinskwang left a comment

Choose a reason for hiding this comment

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

LGTM

@kevinskwang kevinskwang merged commit d299786 into sonic-net:master Dec 3, 2024
16 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Dec 3, 2024
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #15841

@rbpittman rbpittman deleted the pfcwd_function_changes_master branch December 3, 2024 14:09
@auspham
Copy link
Contributor

auspham commented Dec 9, 2024

Hi @rraghav-cisco, this could be the potential issue for pfc_function that failed in having pfcwd storm detection step and still send out packet in verify_tx_egress. Could you have a look please.

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.

5 participants