-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SAI-PTF]Include sai expermential for generate the rpc headers #1660
[SAI-PTF]Include sai expermential for generate the rpc headers #1660
Conversation
When generate the sai_adapter it depends on the files in sai expermental https://github.com/opencomputeproject/SAI/blob/master/meta/Makefile#L72 ``` CFLAGS += -I../inc -I../experimental $(WARNINGS) ``` In gensairpc https://github.com/opencomputeproject/SAI/blob/master/meta/gensairpc.pl#L132 ``` our $EXPERIMENTAL_DIR = catdir( $sai_dir, 'experimental' ); ``` But when generate the py headers for RPC service, it doesn't include that. In order to make them matched, then add that dependences. Test done: Local compile and checked the headers Signed-off-by: richardyu <richardyu@contoso.com>
…omputeproject#1660) When generate the sai_adapter it depends on the files in sai expermental https://github.com/opencomputeproject/SAI/blob/master/meta/Makefile#L72 ``` CFLAGS += -I../inc -I../experimental $(WARNINGS) ``` In gensairpc https://github.com/opencomputeproject/SAI/blob/master/meta/gensairpc.pl#L132 ``` our $EXPERIMENTAL_DIR = catdir( $sai_dir, 'experimental' ); ``` But when generate the py headers for RPC service, it doesn't include that. In order to make them matched, then add that dependences. Test done: Local compile and checked the headers Signed-off-by: richardyu <richardyu@contoso.com> Signed-off-by: richardyu <richardyu@contoso.com> Co-authored-by: richardyu <richardyu@contoso.com>
…omputeproject#1660) When generate the sai_adapter it depends on the files in sai expermental https://github.com/opencomputeproject/SAI/blob/master/meta/Makefile#L72 ``` CFLAGS += -I../inc -I../experimental $(WARNINGS) ``` In gensairpc https://github.com/opencomputeproject/SAI/blob/master/meta/gensairpc.pl#L132 ``` our $EXPERIMENTAL_DIR = catdir( $sai_dir, 'experimental' ); ``` But when generate the py headers for RPC service, it doesn't include that. In order to make them matched, then add that dependences. Test done: Local compile and checked the headers Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
#1661) When generate the sai_adapter it depends on the files in sai expermental https://github.com/opencomputeproject/SAI/blob/master/meta/Makefile#L72 ``` CFLAGS += -I../inc -I../experimental $(WARNINGS) ``` In gensairpc https://github.com/opencomputeproject/SAI/blob/master/meta/gensairpc.pl#L132 ``` our $EXPERIMENTAL_DIR = catdir( $sai_dir, 'experimental' ); ``` But when generate the py headers for RPC service, it doesn't include that. In order to make them matched, then add that dependences. Test done: Local compile and checked the headers Signed-off-by: richardyu-ms <richard.yu@microsoft.com> Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
cherry-pick from sonic-net#1155 Advance SAI head pointer [SAI-PTF]add conditional import for unit test opencomputeproject/SAI#1656 [SAI-PTF] add invocation logger opencomputeproject/SAI#1651 [SAI-PTF]Include sai expermential for generate the rpc headers opencomputeproject/SAI#1660 Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
cherry-pick from #1155 Advance SAI head pointer [SAI-PTF]add conditional import for unit test opencomputeproject/SAI#1656 [SAI-PTF] add invocation logger opencomputeproject/SAI#1651 [SAI-PTF]Include sai expermential for generate the rpc headers opencomputeproject/SAI#1660 Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
…omputeproject#1660) When generate the sai_adapter it depends on the files in sai expermental https://github.com/opencomputeproject/SAI/blob/master/meta/Makefile#L72 ``` CFLAGS += -I../inc -I../experimental $(WARNINGS) ``` In gensairpc https://github.com/opencomputeproject/SAI/blob/master/meta/gensairpc.pl#L132 ``` our $EXPERIMENTAL_DIR = catdir( $sai_dir, 'experimental' ); ``` But when generate the py headers for RPC service, it doesn't include that. In order to make them matched, then add that dependences. Test done: Local compile and checked the headers Signed-off-by: richardyu <richardyu@contoso.com> Signed-off-by: richardyu <richardyu@contoso.com> Co-authored-by: richardyu <richardyu@contoso.com>
@richardyu-ms what errors this causing ? since i test this locally and with experimental include or not i still get the same gen-py/sai/sai_headers.py generated can you share exact steps how you reproduce that the experimental are missing? |
@kcudnik I cannot recall the actual vendor OS version which caused this issue, but i remember the RC was the local SAI headers(from SAI repo) did not match the vendor SAI headers within their SDK |
yes, differences between vendor and actual SAI headers can lead to weird errors, and it could be even hard to track, since they can pop up while runtime at some point |
When generate the sai_adapter it depends on the files in sai expermental https://github.com/opencomputeproject/SAI/blob/master/meta/Makefile#L72
In gensairpc
https://github.com/opencomputeproject/SAI/blob/master/meta/gensairpc.pl#L132
But when generate the py headers for RPC service, it doesn't include that. In order to make them matched, then add that dependences.
Test done:
Local compile and checked the headers