-
Notifications
You must be signed in to change notification settings - Fork 270
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
Reland 'Make changes to building and packaging sairedis (#1116)' #1194
Reland 'Make changes to building and packaging sairedis (#1116)' #1194
Conversation
…)' * Make changes to building and packaging sairedis This commit includes the following changes: 1. Use Debian build profiles instead of custom build targets to build different configurations of sairedis. Build profiles were designed for this purpose. This also makes the debian/rules file a bit cleaner. 2. Rely on the debug packages being automatically created, instead of us explicitly specifying it in debian/control. 3. Add actual support for excluding Python 2 binding during build. 4. Make sure the compile flags used for building Python 2 and Python 3 are actually correct. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> * Update pipeline file Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> * Fix argument for profile Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> * Exclude libsai package from the list of dependencies Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> * Allow multiple syslog artifacts during tests Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@qiluo-msft @kcudnik could you review this when you get a chance? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run Azure.sonic-sairedis |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@kcudnik Can you review this when you get a chance? |
|
||
AC_PATH_PROGS(SWIG, [swig3.0 swig]) | ||
|
||
CXXFLAGS_COMMON="" | ||
CXXFLAGS_COMMON+=" -ansi" | ||
CXXFLAGS_COMMON+=" -fPIC" | ||
CXXFLAGS_COMMON+=" -pipe" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is added? something wrong with temporary files ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I don't remember why I added this. At best, this might give a bit of performance/space benefit since intermediate files will all get transferred in memory rather than needing to be saved to a file first. Using temporary files shouldn't cause any issue, unless disk space on /tmp
is very low.
The build rules for sairedis have been simplified in sonic-net/sonic-sairedis#1194. As a result, build targets have changed. Update the build step here accordingly. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This PR contains a fix of CodeQL bug introduced by: #1194 Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
PR sonic-net#1194 removed the .ONESHELL flag (causing all commands for a target to be executed in a single shell environment). Because of that, multi-line shell code blocks aren't parsed correctly. Since the `syncd_init_common.sh` file should always exist anyways (it's unconditionally sourced by an init script and a start script), remove the if-check around it, and always run `sed` when building rpc packages. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
PR #1194 removed the .ONESHELL flag (causing all commands for a target to be executed in a single shell environment). Because of that, multi-line shell code blocks aren't parsed correctly. Since the `syncd_init_common.sh` file should always exist anyways (it's unconditionally sourced by an init script and a start script), remove the if-check around it, and always run `sed` when building rpc packages. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> Co-authored-by: xumia <59720581+xumia@users.noreply.github.com>
This fixes a breakage from sonic-net#1194 where code coverage and ASAN were not enabled, due to DEB_CONFIGURE_EXTRA_FLAGS no longer being used in dh_auto_configure. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This fixes a breakage from #1194 where code coverage and ASAN were not enabled, due to DEB_CONFIGURE_EXTRA_FLAGS no longer being used in dh_auto_configure. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This fixes a breakage from sonic-net#1194 where code coverage and ASAN were not enabled, due to DEB_CONFIGURE_EXTRA_FLAGS no longer being used in dh_auto_configure. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This fixes a breakage from #1194 where code coverage and ASAN were not enabled, due to DEB_CONFIGURE_EXTRA_FLAGS no longer being used in dh_auto_configure. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
The vstest issues causing random test failures have since been fixed, and were not related to the changes in this PR.
This commit includes the following changes:
Signed-off-by: Saikrishna Arcot sarcot@microsoft.com
Signed-off-by: Saikrishna Arcot sarcot@microsoft.com
Signed-off-by: Saikrishna Arcot sarcot@microsoft.com
Signed-off-by: Saikrishna Arcot sarcot@microsoft.com
Signed-off-by: Saikrishna Arcot sarcot@microsoft.com
Microsoft ADO: 24405994