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
chore: experiment with only applying ASAN and LSAN to Magma C files #12113
chore: experiment with only applying ASAN and LSAN to Magma C files #12113
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
d15dd6b
to
07d8f5f
Compare
Signed-off-by: GitHub <noreply@github.com>
07d8f5f
to
a174289
Compare
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.
Tested locally - in pairing with @nstng and @jheidbrink. Python tests still do not work with linkopt
. There seems to be no feature to restrict linkopts
to certain files.
* 'master' of github.com:magma/magma: chore: Mark nas_converter_test as manual until flakiness is addressed (magma#12130) chore(mme): address GH11898 (magma#12129) fix(agw): Update DNS resolvers for ec2 instance (magma#12045) feat(feg_relay): move session proxy to NH implementation (magma#11080) chore: Use per_file_copt for MME unit test flag (magma#12112) chore(mme): Remove unused trace defines (magma#12055) chore: experiment with only applying ASAN and LSAN to Magma C files (magma#12113) Revert "test(mme): Add injection of state loaded in S1AP state manager (magma#11456)" (magma#12121) chore: bump ssri (magma#12032) feat(dp): Add grant attempt count (magma#12101) fix(mme): Fix typing_extensions version dependency on magma_test (magma#12110)
…12113) Signed-off-by: GitHub <noreply@github.com>
…agma#12113) Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub noreply@github.com
Summary
Just experimenting to see how the selective ASAN/LSAN enablement affects cache size
Master cache size after running
bazel test //orc8r/gateway/c/... //lte/gateway/c/... --config=asan
andbazel test //orc8r/gateway/c/... //lte/gateway/c/... --config=lsan
: 13GPR cache size after running
bazel test //orc8r/gateway/c/... //lte/gateway/c/... --config=asan
andbazel test //orc8r/gateway/c/... //lte/gateway/c/... --config=lsan
: 8.4G@nstng / @LKreutzer I think reducing ASAN/LSAN instrumentalization scope will help the cache size as well. (for CI, at least)
I've also found some repos in sourcegraph use per_file_copt to exclude dependencies from enabling it. https://sourcegraph.com/github.com/google/oss-fuzz/-/blob/projects/envoy/build.sh?L73:10
Test Plan
Additional Information