-
Notifications
You must be signed in to change notification settings - Fork 278
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 <[email protected]> * Update pipeline file Signed-off-by: Saikrishna Arcot <[email protected]> * Fix argument for profile Signed-off-by: Saikrishna Arcot <[email protected]> * Exclude libsai package from the list of dependencies Signed-off-by: Saikrishna Arcot <[email protected]> * Allow multiple syslog artifacts during tests Signed-off-by: Saikrishna Arcot <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
@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 <[email protected]>
@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 <[email protected]>
This PR contains a fix of CodeQL bug introduced by: #1194 Signed-off-by: Nazarii Hnydyn <[email protected]>
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 <[email protected]>
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 <[email protected]> Co-authored-by: xumia <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 [email protected]
Signed-off-by: Saikrishna Arcot [email protected]
Signed-off-by: Saikrishna Arcot [email protected]
Signed-off-by: Saikrishna Arcot [email protected]
Signed-off-by: Saikrishna Arcot [email protected]
Microsoft ADO: 24405994