Skip to content

improve running time of test_sfp::test_reset#20096

Merged
roy-sror merged 3 commits intosonic-net:202505from
ytzur1:202505
Aug 18, 2025
Merged

improve running time of test_sfp::test_reset#20096
roy-sror merged 3 commits intosonic-net:202505from
ytzur1:202505

Conversation

@ytzur1
Copy link
Copy Markdown
Contributor

@ytzur1 ytzur1 commented Aug 6, 2025

Description of PR

For test_sfp.py::test_reset - preformed shutdown and startup to all interfaces in bulk, instead of running the commands one by one on each port to improve running time

Runtime Stats:
before improvement: 00:20:45 avg
after improvement: 00:01:35 avg
includes the fix for multi-asic shutdown and startup #20120
Summary:
Fixes # (issue)

Type of change

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

Back port request

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

Approach

What is the motivation for this PR?

Runtime Optimization

How did you do it?

Reduced calls from test to switch to save on overhead time.

How did you verify/test it?

Internal Nightly Reg.

Any platform specific information?

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

not a new test

Documentation

@ytzur1 ytzur1 requested a review from prgeor as a code owner August 6, 2025 10:42
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@ytzur1 ytzur1 closed this Aug 6, 2025
@ytzur1 ytzur1 reopened this Aug 6, 2025
@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).

@yejianquan
Copy link
Copy Markdown
Collaborator

yejianquan commented Aug 8, 2025

Hi @ytzur1 , can you comment the PR to the master?
Every 202505 PR should be merged to master firstly, and only manually create PR if there's conflict

@ytzur1
Copy link
Copy Markdown
Contributor Author

ytzur1 commented Aug 10, 2025

Hi @yejianquan
its already merged to master
#18772

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

roy-sror
roy-sror previously approved these changes Aug 11, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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
Copy link
Copy Markdown
Collaborator

Hi @yejianquan its already merged to master #18772

Thanks @ytzur1 , approved, can you fill in the 'How did you verify/test it?' in PR description so that I can merge it?

@ytzur1
Copy link
Copy Markdown
Contributor Author

ytzur1 commented Aug 18, 2025

Hi @yejianquan, I filled all fields.
Sorry I didn't noticed when CP it from master.

@roy-sror roy-sror merged commit 2bc0f3b into sonic-net:202505 Aug 18, 2025
13 checks passed
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.

4 participants