Skip to content

[platform_tests] Skip unavailable SFP thermal thresholds#25485

Open
xwjiang-ms wants to merge 1 commit into
sonic-net:masterfrom
xwjiang-ms:ai-fix-sfp-thresholds-38502254
Open

[platform_tests] Skip unavailable SFP thermal thresholds#25485
xwjiang-ms wants to merge 1 commit into
sonic-net:masterfrom
xwjiang-ms:ai-fix-sfp-thresholds-38502254

Conversation

@xwjiang-ms

Copy link
Copy Markdown
Contributor

Why I did it

The SFP thermal threshold test treats N/A values in TRANSCEIVER_DOM_THRESHOLD as available threshold data. On platforms where xcvrd publishes threshold keys but all threshold fields are N/A, the test compares zero numeric rows and fails with Only 0/0 SFP rows had thresholds matching TRANSCEIVER_DOM_THRESHOLD.

How I did it

Normalize N/A threshold field values to missing data in _get_dom_threshold_data, allowing the existing No TRANSCEIVER_DOM_THRESHOLD data available skip path when no numeric thresholds exist.

How to verify it

  • python -m py_compile tests/platform_tests/test_sfp_thermal_state_db.py

Back port request

  • 202605

Signed-off-by: xwjiang-ms <xiaweijiang@microsoft.com>
@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

This PR has backport request for branch(es): 202605.
Added label(s) for branch(es) 202605.

---Powered by SONiC BuildBot

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.

2 participants