Skip to content

[action] [PR:18539] Skipped IPv6 Everflow tests on virtual switch to speed up PR test execution#18546

Merged
yejianquan merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/18539
May 22, 2025
Merged

[action] [PR:18539] Skipped IPv6 Everflow tests on virtual switch to speed up PR test execution#18546
yejianquan merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/18539

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
This PR skips the IPv6 Everflow tests on KVM testbeds to improve PR test execution time.

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?

Everflow tests take a lot of time to execute. After adding IPv6 test cases (#16836), the execution time has roughly doubled. Now it takes more than 2 hours to run all tests in everflow/test_everflow_testbed.py. Since these tests are part of PR tests, if they take too long to run, the PR test will be cancelled. This PR skips the IPv6 Everflow tests on KVM testbeds (which are used for PR tests) to address this issue.
Note: The IPv6 Everflow tests will still run during nightly tests.

How did you do it?

Added a new pytest fixture that will skip the tests when erspan_ip_ver == 6 and the DUT is a virtual switch.

How did you verify/test it?

Ran the tests to ensure that the tests will be skipped when erspan_ip_ver == 6.

Any platform specific information?

Only applies to KVM testbeds ("vs" ASIC).

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

N/A

Documentation

N/A

What is the motivation for this PR?
Everflow tests take a lot of time to execute. After adding IPv6 test cases (sonic-net#16836), the execution time has roughly doubled. Now it takes more than 2 hours to run all tests in everflow/test_everflow_testbed.py. Since these tests are part of PR tests, if they take too long to run, the PR test will be cancelled. This PR skips the IPv6 Everflow tests on KVM testbeds (which are used for PR tests) to address this issue.
Note: The IPv6 Everflow tests will still run during nightly tests.

How did you do it?
Added a new pytest fixture that will skip the tests when erspan_ip_ver == 6 and the DUT is a virtual switch.

How did you verify/test it?
Ran the tests to ensure that the tests will be skipped when erspan_ip_ver == 6.

Any platform specific information?
Only applies to KVM testbeds ("vs" ASIC).

Signed-off-by: Mahdi Ramezani <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #18539

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Copy link
Copy Markdown
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

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

LGTM

@yejianquan yejianquan merged commit 448f66d into sonic-net:202505 May 22, 2025
4 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.

3 participants