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

[BFN] Refactoring and adding some functions of Thermal class (set and get thresholds and etc.) #10205

Merged
merged 29 commits into from
Apr 5, 2022

Conversation

VadymYashchenko
Copy link
Contributor

@VadymYashchenko VadymYashchenko commented Mar 10, 2022

Why I did it

I revise functions for correct working

How I did it

I added default_shresholds.json file and refactor and added functions for correct work with thresholds

How to verify it

I verified it with thermal tests on Newport device

Description for the changelog

Refactoring and adding some functions of Thermal class (set and get thresholds and etc.)

@VadymYashchenko VadymYashchenko changed the title Fix thermals test [BFN] Mar 10, 2022
@VadymYashchenko VadymYashchenko changed the title [BFN] [BFN] Refactoring and adding some functions of Thermal class (set and get thresholds and etc.) Mar 10, 2022
@lgtm-com
Copy link

lgtm-com bot commented Mar 14, 2022

This pull request introduces 1 alert when merging a55320c8bd7d55441809e8b1f510ad7130a75b15 into 2919b48 - view on LGTM.com

new alerts:

  • 1 for Except block handles 'BaseException'

@lgtm-com
Copy link

lgtm-com bot commented Mar 14, 2022

This pull request introduces 1 alert when merging 5253e46d019e7a96dd9b14946d6c5371083eb9d8 into 2919b48 - view on LGTM.com

new alerts:

  • 1 for Except block handles 'BaseException'

@lgtm-com
Copy link

lgtm-com bot commented Mar 15, 2022

This pull request introduces 1 alert when merging 5f8bdc5b8ed064026221fe773e9d008dd5243a57 into d08add5 - view on LGTM.com

new alerts:

  • 1 for Except block handles 'BaseException'

@lgtm-com
Copy link

lgtm-com bot commented Mar 16, 2022

This pull request introduces 1 alert when merging f3f1b5039d927adb7f881c5ad65f75bc49cc2934 into c5849c9 - view on LGTM.com

new alerts:

  • 1 for Except block handles 'BaseException'

@lgtm-com
Copy link

lgtm-com bot commented Mar 16, 2022

This pull request introduces 2 alerts when merging c597f1b6e39a65a3cd18c28b5eb5d81a5a8d6c32 into c5849c9 - view on LGTM.com

new alerts:

  • 1 for Unreachable 'except' block
  • 1 for Except block handles 'BaseException'

…al.py

Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
thermal.py

Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
…eshold

Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
@VadymYashchenko
Copy link
Contributor Author

@lguohan , @sujinmkang , @prgeor and @vdahiya12 could you make review of this merge request?

akokhan
akokhan previously approved these changes Mar 24, 2022
@VadymYashchenko
Copy link
Contributor Author

@lguohan , @sujinmkang , @prgeor and @vdahiya12 could you make review of this merge request?

@akokhan
Copy link
Contributor

akokhan commented Mar 25, 2022

@prgeor , could you please take a look? Thanks

Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
@VadymYashchenko
Copy link
Contributor Author

@lguohan , @sujinmkang , @prgeor and @vdahiya12 could you make review of this merge request?

x86_64-acton_as9516_32d-r0

Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
@VadymYashchenko
Copy link
Contributor Author

@lguohan , @sujinmkang , @prgeor and @vdahiya12 could you make review of this merge request?

{
"psu_driver-i2c-7-59:psu2-temp3" : [60.0, 50.0, 11.0, 1.0]
},
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@VadymYashchenko
Copy link
Contributor Author

@lguohan , @sujinmkang , @prgeor and @vdahiya12 could you make review of this merge request?

@akokhan
Copy link
Contributor

akokhan commented Apr 5, 2022

@prgeor , please approve and merge

@prgeor prgeor merged commit 8e616c1 into sonic-net:master Apr 5, 2022
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.

3 participants