Fix platform mapping generation test installation in GitHub Actions #872
+3
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
The platform_mapping_gen_unit_test and platform_mapping_gen_no_regression_test were failing in GitHub Actions CI with "no such file or directory" errors. The root cause was that the fboss_platform_mapping_gen CMake target was depending on the .GEN_PY_EXE internal target suffix rather than the actual target names. This prevented the add_fb_python_executable targets from being properly built and installed to the bin/ directory during the build process. Fixed by removing the .GEN_PY_EXE suffix and using the correct target names directly, which ensures the Python executables are properly installed and available for the test runner.
Differential Revision: D91799530