Skip to content

[platform_tests]: Fix SFP shutdown timeout scaling - #28018

Open
az-pz wants to merge 1 commit into
sonic-net:masterfrom
az-pz:ariz/fix-sfp-shutdown-timeout
Open

az-pz wants to merge 1 commit into
sonic-net:masterfrom
az-pz:ariz/fix-sfp-shutdown-timeout

Conversation

@az-pz

@az-pz az-pz commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Increase the SFP reset interface shutdown wait scaling from 1% to 10% per interface. This gives larger interface batches enough time to complete shutdown before they are brought back up.

Fixes # (issue): N/A

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605

Tracking issue/work item for backport/cherry-pick request (GitHub issue or Microsoft ADO): N/A
Failure type: N/A

Tested branch

  • master
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605
  • N/A

Test result

  • master: Static validation passed with git diff --check and python3 -m py_compile tests/platform_tests/api/test_sfp.py.

Approach

What is the motivation for this PR?

The existing 1% per-interface scale factor can leave too little shutdown settling time when an SFP reset requires many interfaces to be flapped.

How did you do it?

Changed the per-interface shutdown wait scale factor from 0.01 to 0.1, while retaining the existing minimum scale factor of 1.

How did you verify/test it?

Verified whitespace and patch formatting with git diff --check, and compiled the updated test module with python3 -m py_compile.

Any platform specific information?

N/A

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

N/A; this is not a new test case.

Documentation

N/A; no user-facing behavior or documentation changed.

Signed-off-by: Ariz Zubair <arizzubair@microsoft.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

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.

2 participants