-
Notifications
You must be signed in to change notification settings - Fork 744
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
Enhance Mellanox reboot cause test case #6916
Conversation
Add new reboot cause script for bios cpu and asic causes
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Add new reboot cause script for bios cpu and asic causes
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
This pull request introduces 1 alert and fixes 2 when merging 3638b32 into 82b074e - view on LGTM.com new alerts:
fixed alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
Update platform_tests/mellanox/mellanox_thermal_control_test_helper.py
This pull request fixes 2 alerts when merging 0552d88 into 4b26186 - view on LGTM.com fixed alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
/azpw run |
1 similar comment
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM see minor comments
@@ -138,7 +147,7 @@ def __init__(self, dut): | |||
:param dut: DUT object representing a SONiC switch under test. | |||
""" | |||
self.dut = dut | |||
#self.unlink_file_list = {} | |||
# self.unlink_file_list = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you clean this code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modification was the update of pre-commit check. My code update does not contain this part, but it failed at pre-commit process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the codes I need to update was in the first commit. And other code changes are all for passing through the pre-commit check. There are many old codes were not checked by pre-commit then, but when I modified some parts of the old code, pre-commit would check the old codes too, so I edit them in order to pass the check.
@@ -913,6 +923,12 @@ def mock_data(self): | |||
platform_data = get_platform_data(self.mock_helper.dut) | |||
thermal_dict = platform_data["thermals"] | |||
for category, content in thermal_dict.items(): | |||
# TODO: temp local solution, since the "sodimm" is only supported in master, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not checking on branch instead of todo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also the original code which I did not modified. It was removed for some reason when I am handling the updates according to pre-commit check result in the seconds commit. I readd it again.
This PR is dropped and reopens a new one: #6944 |
Add new reboot cause script for additional bios cpu and asic causes
Description of PR
Summary:
Add new script to cover following reboot cause scenarios:
BIOS - In case the BIOS upgrade process ended with failure and cause the switch to reset.
CPU - Reset is initiated by SW on the CPU. it could be that SW encountered some catastrophic situation like a memory leak, eventually, the kernel reset the whole switch.
Reset from ASIC - Reset which is caused by ASIC.
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Add test for sonic-net/sonic-platform-common#277
How did you do it?
How did you verify/test it?
Add test script for enhance reboot cause
Any platform specific information?
Mellanox platforms, except for SPC1 and SIMX
Supported testbed topology if it's a new test case?
Any topology
Documentation