Skip to content

Add integrated_transceiver_mapping.py to OSS platform mapping gen sources#1360

Closed
KevinYakar wants to merge 1 commit into
facebook:mainfrom
KevinYakar:export-D110524523
Closed

Add integrated_transceiver_mapping.py to OSS platform mapping gen sources#1360
KevinYakar wants to merge 1 commit into
facebook:mainfrom
KevinYakar:export-D110524523

Conversation

@KevinYakar

Copy link
Copy Markdown
Contributor

Summary:
The OSS build enumerates the platform_mapping_v2 Python sources by hand in cmake (unlike the internal Buck build, which globs srcs). D107602208 added fboss/lib/platform_mapping_v2/integrated_transceiver_mapping.py and imported it from platform_mapping_v2.py, but did not add it to these lists. As a result the OSS-packaged platform_mapping_gen_unit_test, platform_mapping_gen_no_regression_test, and the fboss-platform-mapping-gen binary were missing the module and failed at import with ModuleNotFoundError: No module named 'fboss.lib.platform_mapping_v2.integrated_transceiver_mapping'. Internal CI stayed green because Buck globs the sources.

Add the module to all three PLATFORM_MAPPING_PY_SRCS lists.

Differential Revision: D110524523

…rces

Summary:
The OSS build enumerates the `platform_mapping_v2` Python sources by hand in cmake (unlike the internal Buck build, which globs `srcs`). D107602208 added `fboss/lib/platform_mapping_v2/integrated_transceiver_mapping.py` and imported it from `platform_mapping_v2.py`, but did not add it to these lists. As a result the OSS-packaged `platform_mapping_gen_unit_test`, `platform_mapping_gen_no_regression_test`, and the `fboss-platform-mapping-gen` binary were missing the module and failed at import with `ModuleNotFoundError: No module named 'fboss.lib.platform_mapping_v2.integrated_transceiver_mapping'`. Internal CI stayed green because Buck globs the sources.

Add the module to all three `PLATFORM_MAPPING_PY_SRCS` lists.

Differential Revision: D110524523
@KevinYakar KevinYakar requested a review from a team as a code owner July 2, 2026 21:39
@meta-cla meta-cla Bot added the CLA Signed label Jul 2, 2026
@meta-codesync

meta-codesync Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@KevinYakar has exported this pull request. If you are a Meta employee, you can view the originating Diff in D110524523.

@meta-codesync

meta-codesync Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in c8ec7e4.

@meta-codesync meta-codesync Bot added the Merged label Jul 2, 2026
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.

1 participant