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

[Mellanox] Fix select timeout in sfp event #9795

Merged
merged 2 commits into from
Jan 27, 2022

Conversation

Junchao-Mellanox
Copy link
Collaborator

Why I did it

Python select.select accept a optional timeout value in seconds, however, the value passes to it is a value in millisecond.

How I did it

Transfer the value to millisecond.

How to verify it

Manual test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

keboliu
keboliu previously approved these changes Jan 19, 2022
@lgtm-com
Copy link

lgtm-com bot commented Jan 19, 2022

This pull request introduces 1 alert when merging b85af1e into d5b0261 - view on LGTM.com

new alerts:

  • 1 for Result of integer division may be truncated

liat-grozovik
liat-grozovik previously approved these changes Jan 19, 2022
Copy link
Collaborator

@liat-grozovik liat-grozovik left a comment

Choose a reason for hiding this comment

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

please fix LGTM

@liat-grozovik
Copy link
Collaborator

@Junchao-Mellanox could you please clarify if this is required for 202111?

@Junchao-Mellanox Junchao-Mellanox added the Request for 202111 Branch For PRs being requested for 202111 branch label Jan 20, 2022
keboliu
keboliu previously approved these changes Jan 20, 2022
@Junchao-Mellanox
Copy link
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Collaborator Author

This change shall not affect sonic-xcvrd unit test at all. So I did a rebase to see if it could fix the unit test issue for sonic-xcvrd.

@Junchao-Mellanox
Copy link
Collaborator Author

Hi @sujinmkang , could you please help review?

@liat-grozovik liat-grozovik merged commit 8e590da into sonic-net:master Jan 27, 2022
judyjoseph pushed a commit that referenced this pull request Jan 31, 2022
- Why I did it
Python select.select accept a optional timeout value in seconds, however, the value passes to it is a value in millisecond.

- How I did it
Transfer the value to millisecond.

- How to verify it
Manual test
@Junchao-Mellanox Junchao-Mellanox deleted the fix-select-timeout branch January 12, 2023 05:47
liat-grozovik pushed a commit that referenced this pull request Jan 19, 2023
- Why I did it
Backport #9795
Python select.select accept a optional timeout value in seconds, however, the value passes to it is a value in millisecond.

- How I did it
Transfer the value to millisecond.

- How to verify it
Manual test
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.

6 participants