Fix for sonic-config-engine build failure - test_buffers_dell6100_render_template #18566
Fix for sonic-config-engine build failure - test_buffers_dell6100_render_template #18566krismarvell wants to merge 1 commit intosonic-net:masterfrom
Conversation
|
@saiarcot895 Can you pls help with review and comment |
|
I don't think it will work. |
Yes I agree with you on the official build comment. current builds doesnt have this option, but still this fix will be a foolproof for two reasons.
Also, when you refer as this wont work, do you refer to any builds/platforms/options where you think it may not work? Pls help me understand if i have missed any specific UT/BUild types, i can give a try with this fix. |
|
|
||
| # unset PLATFORM Flag for python wheel generation | ||
| PLATFORM= | ||
| export PLATFORM |
There was a problem hiding this comment.
Is it possible to have this be applied early in slave.mk, so that it applies for all builds, not just Python wheels?
There was a problem hiding this comment.
It looks like anywhere else unsetting this outside specific targets, have the effect of globally changing the flag even for "make configure" as well. Hence have added only in the specific python wheel targets where this is hitting into the error.
I forgot it is for PR18143. sonic-py-common used env: PLATFORM. It makes sense to reset that variable when building image. |
|
I had the same issue when using I hope this PR gets merged. |
Why I did it
To fix sonic-config-engine build error at src/sonic-config-engine/tests/test_j2files.py unit test case while using "make PLATFORM=$PLATFORM target/sonic-$PLATFORM.bin" commands. This will fix the issue #18358
Usage of PLATFORM=$PLATFORM is expected to work, and will be needed where the azure pipeline builds are executing make commands with PLATFORM parameter.
Work item tracking
How I did it
By unsetting the PLATFORM make flag in python-wheel generator targets in slave.mk
How to verify it
run the minimal build command make PLATFORM=marvell target/python-wheels/buster/sonic_config_engine-1.0-py2-none-any.whl --> To just build config-engine wheel package for buster as an example.
Verify the errors in below test cases of src/sonic-config-engine/tests/test_j2files.py is NOT seen.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
master