Skip to content

fix for led color in test_system_health.py#22675

Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom
donlope-cisco:31509_code
Mar 4, 2026
Merged

fix for led color in test_system_health.py#22675
StormLiangMS merged 2 commits intosonic-net:masterfrom
donlope-cisco:31509_code

Conversation

@donlope-cisco
Copy link
Contributor

@donlope-cisco donlope-cisco commented Feb 28, 2026

Description of PR

Changed the code in check_system_health_led_info() to use the keys to led_color, rather then hard coded (and incorrect in default case) colors.

Type of change

  • [x ] 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
  • 202511

Approach

What is the motivation for this PR?

The assert in this function was triggering when run on simulators and HW devices

How did you do it?

How did you verify/test it?

Verified with SIM

Any platform specific information?

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

Documentation

Note that this bug has been seen in different topologies and may have duplicates.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 28, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamehra
Copy link
Contributor

anamehra commented Feb 28, 2026

Hi @donlope-cisco , please soign CLA and fix DCO error.

Copy link
Contributor

@anamehra anamehra left a comment

Choose a reason for hiding this comment

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

LGTM

@mssonicbld
Copy link
Collaborator

/azp run

@github-actions github-actions bot requested a review from anamehra March 2, 2026 18:25
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wsycqyz wsycqyz added the Request for 202511 branch Request to backport a change to 202511 branch label Mar 3, 2026
Copy link
Contributor

@wsycqyz wsycqyz left a comment

Choose a reason for hiding this comment

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

lğtm

Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit d2376e7 into sonic-net:master Mar 4, 2026
18 of 19 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 4, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
Signed-off-by: mssonicbld <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202511: #22730

vmittal-msft pushed a commit that referenced this pull request Mar 4, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
Signed-off-by: mssonicbld <[email protected]>
Co-authored-by: donlope-cisco <[email protected]>
ksravani-hcl pushed a commit to ksravani-hcl/sonic-mgmt that referenced this pull request Mar 10, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
aronovic pushed a commit to aronovic/sonic-mgmt that referenced this pull request Mar 10, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
Signed-off-by: Mihut Aronovici <[email protected]>
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Mar 16, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
Signed-off-by: selldinesh <[email protected]>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
Signed-off-by: Abhishek <[email protected]>
@liamkearney-msft
Copy link
Contributor

Hey @Junchao-Mellanox , it looks like this test fix has led to failures on mlnx sn2700 platforms.
Ive opened a bug, can you please have a look and see if there are any platform changes required from mlnx end? #23055

Thanks

vrajeshe pushed a commit to vrajeshe/sonic-mgmt that referenced this pull request Mar 23, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
Signed-off-by: Venkata Gouri Rajesh Etla <[email protected]>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 27, 2026
What is the motivation for this PR?
The assert in this function was triggering when run on simulators and HW devices

How did you do it?
How did you verify/test it?
Verified with SIM

Signed-off-by: Don Lopez <[email protected]>
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.

7 participants