Skip to content

Revert "Fix UnicodeDecodeError in xcvr API for corrupted EEPROM (#633)"#661

Merged
prgeor merged 3 commits into
sonic-net:masterfrom
nexthop-ai:revert_allow_unicode_decode
Jul 13, 2026
Merged

Revert "Fix UnicodeDecodeError in xcvr API for corrupted EEPROM (#633)"#661
prgeor merged 3 commits into
sonic-net:masterfrom
nexthop-ai:revert_allow_unicode_decode

Conversation

@arpit-nexthop

Copy link
Copy Markdown
Contributor

Description

Do not ignore errors for corrupted EEPROM

Motivation and Context

If we have a corrupt EEPROM, SI settings notification may fail since we rely on these for parsing SI. Reverting the original commit that allowed this.

How Has This Been Tested?

Additional Information (Optional)

…c-net#633)"

This reverts commit 2fbd4f8.

Signed-off-by: arpit-nexthop <arpit@nexthop.ai>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

prgeor
prgeor previously approved these changes May 6, 2026
…ode_decode

# Conflicts:
#	sonic_platform_base/sonic_xcvr/xcvr_api_factory.py
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

The revert of sonic-net#633 restores strict .decode() in get_vendor_name(), so
undecodable EEPROM bytes correctly raise UnicodeDecodeError again. Remove
the test that asserted the old error-tolerant behavior.

Signed-off-by: arpit-nexthop <arpit@nexthop.ai>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@prgeor
prgeor merged commit 4c9d6b6 into sonic-net:master Jul 13, 2026
6 checks passed
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