Skip to content

updated testcase under dualtor/, dualtor_io/ and dualtor_mgmt/.#18895

Merged
StormLiangMS merged 6 commits intosonic-net:masterfrom
shanmukhakambala:skipdualtorptf
Jun 15, 2025
Merged

updated testcase under dualtor/, dualtor_io/ and dualtor_mgmt/.#18895
StormLiangMS merged 6 commits intosonic-net:masterfrom
shanmukhakambala:skipdualtorptf

Conversation

@shanmukhakambala
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
This PR refines test case behavior by removing redundant PTF fixture imports and implementing a more efficient skip logic for test files. It ensures that only test cases using PTF files import the fixture, reducing unnecessary overhead and improving pipeline clarity.

Fixes # (issue)
N/A

Type of change

  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?

  • Audited test cases to identify those importing the PTF fixture without using it.
  • Removed the fixture from those test cases.
  • Added logic to skip tests gracefully when PTF is not applicable.

How did you verify/test it?

  • Verified that only relevant tests import the PTF fixture and others are skipped cleanly.

Any platform specific information?

No platform-specific changes.

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

N/A

Documentation

N/A – This is a test case improvement and does not require documentation updates.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

StormLiangMS
StormLiangMS previously approved these changes Jun 11, 2025
Copy link
Copy Markdown
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
Copy link
Copy Markdown
Collaborator

hi @shanmukhakambala could you address the conflict?

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS StormLiangMS merged commit 748369e into sonic-net:master Jun 15, 2025
12 checks passed
@mssonicbld
Copy link
Copy Markdown
Collaborator

@shanmukhakambala PR conflicts with 202505 branch

yejianquan pushed a commit that referenced this pull request Jun 26, 2025
Description of PR
Summary:
This PR refines test case behavior by removing redundant PTF fixture imports and implementing a more efficient skip logic for test files. It ensures that only test cases using PTF files import the fixture, reducing unnecessary overhead and improving pipeline clarity.

Cherry-pick of PR #18895
This is a backport of PR #18895 to the 202505 branch.

Type of change
 Test case improvement

Approach
What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.

co-authorized by: jianquanye@microsoft.com
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.

Signed-off-by: Yael Tzur <ytzur@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
…c-net#18895)

What is the motivation for this PR?
To reduce pipeline noise and prevent PR checker failures caused by unnecessary PTF fixture imports in test cases that do not use PTF files.

How did you do it?
Audited test cases to identify those importing the PTF fixture without using it.
Removed the fixture from those test cases.
Added logic to skip tests gracefully when PTF is not applicable.
How did you verify/test it?
Verified that only relevant tests import the PTF fixture and others are skipped cleanly.
Any platform specific information?
No platform-specific changes.
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