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

[action] [PR:16613] snappi_tests:T2: Serialize the udp ports for all_to_all test #16740

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary:
The all_to_all test is still using the random udp ports, and runs into random failures. This PR serializes the udp ports for traffic streams.

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?

Random failure in all_to_all multidut snappi tests.

How did you do it?

Serialized the udp port numbers used by this script.

How did you verify/test it?

Ran it on my TB. I verified that I could recreate the issue first, and then after the modifications, it passed:

_____________________________________________________________________ test_multidut_pfcwd_all_to_all[multidut_port_info3-False] ______________________________________________________________________
--------------------------------------------------- generated xml file: /run_logs/ixia/20188-reruns/2025-01-21-09-42-25/tr_2025-01-21-09-42-25.xml ---------------------------------------------------
INFO:root:Can not get Allure report URL. Please check logs
====================================================================================== short test summary info =======================================================================================
PASSED snappi_tests/multidut/pfcwd/test_multidut_pfcwd_a2a_with_snappi.py::test_multidut_pfcwd_all_to_all[multidut_port_info3-False]
============================================================================= 1 passed, 4 warnings in 411.17s (0:06:51) ==============================================================================
sonic@snappi-sonic-mgmt-vanilla-202405-t2:/data/tests$ 

…et#16613)

Description of PR
Summary:
The all_to_all test is still using the random udp ports, and runs into random failures. This PR serializes the udp ports for traffic streams.

Approach
What is the motivation for this PR?
Random failure in all_to_all multidut snappi tests.

How did you do it?
Serialized the udp port numbers used by this script.

How did you verify/test it?
Ran it on my TB. I verified that I could recreate the issue first, and then after the modifications, it passed:

_____________________________________________________________________ test_multidut_pfcwd_all_to_all[multidut_port_info3-False] ______________________________________________________________________
--------------------------------------------------- generated xml file: /run_logs/ixia/20188-reruns/2025-01-21-09-42-25/tr_2025-01-21-09-42-25.xml ---------------------------------------------------
INFO:root:Can not get Allure report URL. Please check logs
====================================================================================== short test summary info =======================================================================================
PASSED snappi_tests/multidut/pfcwd/test_multidut_pfcwd_a2a_with_snappi.py::test_multidut_pfcwd_all_to_all[multidut_port_info3-False]
============================================================================= 1 passed, 4 warnings in 411.17s (0:06:51) ==============================================================================
sonic@snappi-sonic-mgmt-vanilla-202405-t2:/data/tests$ 

co-authorized by: [email protected]
@mssonicbld
Copy link
Collaborator Author

/azp run

@mssonicbld
Copy link
Collaborator Author

Original PR: #16613

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit cad42f8 into sonic-net:202411 Jan 31, 2025
16 checks passed
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.

2 participants