-
Notifications
You must be signed in to change notification settings - Fork 273
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
[gcov-vs]support vs coverate rate #972
base: master
Are you sure you want to change the base?
[gcov-vs]support vs coverate rate #972
Conversation
vslib/Makefile.am
Outdated
@@ -122,4 +122,8 @@ tests_SOURCES = tests.cpp | |||
tests_CXXFLAGS = $(DBGFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS_COMMON) | |||
tests_LDADD = -lhiredis -lswsscommon -lpthread libsaivs.la -L$(top_srcdir)/meta/.libs -lsaimetadata -lsaimeta -lzmq | |||
|
|||
if GCOV_ENABLED | |||
tests_LDADD += -lgcovpreload |
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.
tests probably should not have gcov enabled on them ?
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.
yea, will optimize them soon.
@kcudnik https://dev.azure.com/mssonic/build/_build/results?buildId=54671&view=codecoverage-tab the result seems fine, 80%, please check if we need to remove some folders, thanks! |
wow, this looks impressive, and we are over the 80% target ! this is great !
and i see that this is already covered, and i see that you also covered tests/ and unittests/ which are also fine ! and there are alscovered saiasiccmp/ and saiplayer/ which is also good thank you @pettershao-ragilenetworks, this is really great work, and we can use this method to report coverage over local unittests which cover currently 60%, and using this will meet MS requirement and we will be done for a while :D |
@kcudnik it already include unittest coverage rate, I have merged unittest coverage rate and vs docker coverage together(by generate .info for unittest and .info for vs docker, and merge them together), you can see that 'test' and 'unittest' folders are come from unittest(i just fix the path prefix for merging and showing), and other folders are come from vs docker. |
@kcudnik help forward this, thanks! |
what do you need from me here? |
I think we can merge this, right? happy new year! |
@lguohan @qiluo-msft hi, help merge this, thanks! |
lgtm is failing and 2 pipelines for arm64 and armhf are stuck, not sure if they are required |
@theasianpianist @prsunny can you help check why vstest fail so much? |
Hi, we were wondering- when is this PR expected to be merged? |
@pettershao-ragilenetworks would you please help to handle conflicts and retrigger checkers? |
OK. will handle soon. |
lgtm exit abnormal, any one please help check this: |
seems like sudo don't work on LGTM, and it requires password, probably is not supported, at all, so that copy should not be used there |
any idea to fix this? It seems fine last time, can we just skip lgtm since we have not change any code.
|
if we skip this time, error will still persist on changes where code is changed, so it make sense to fix it here and not in next PR |
yea, i understand, but if not skip this, then seems no other solution:
|
hmm, seems like there is no good way for LGTM ice sudo will not work, besides maybe to skip installing that so just for LGTM build, since that only check code quality and not running anything else. hmm, that sudo should work in LGTM, since it's in container, not sure why it started to require password :/ |
if you look here: you would need to modify gcovpreload/Makefile, "all" to use prefix, and change change prefix from /usr in lgtm.yml, to something that includes LGTM_WORKSPACE, since you have hardcoded for example if you look at generated Makefile:
and prefix is obtained from --prefix in ./configure, you could also use that, ps why you create your own Makefile and mock all targets, instead using Makefile generated by ./configure which would take care of everything for you? you just need to create very simple Makefile.am that will have one source file for preload lib and that's it ? |
OK, I will raise a PR to create gcovpreloader repo soon and add build dependance for sairedis(swss will also depend it), after the pr raised, I will summarize reasons and send a mail for forwarding this. |
|
Signed-off-by: pettershao-ragilenetworks <[email protected]>
Signed-off-by: pettershao-ragilenetworks <[email protected]>
Signed-off-by: pettershao-ragilenetworks <[email protected]>
b90b46b
to
d41fd6f
Compare
Should this PR be merged? @kcudnik @liat-grozovik |
/easycla |
2 similar comments
/easycla |
/easycla |
efa894f
to
79c9dea
Compare
Add Makefile.am to make gcov_preload
fix err : "gcov_unittest_artifact_name" must be provided
fix err cannot find library libgcovpreload.so.0 needed by xxx
add pipline to get Makefile
fix err of whitespace check
del publish Makefile
79c9dea
to
d4e7be2
Compare
increase the timeout of vs test
d4e7be2
to
18495a1
Compare
I have create a Makefile.am to replace the Makefile , it works fine and passed the lgtm check. |
triger rebuild
fix run vstest twice
change timeout of running vstest to default
update gcov_preload.c
This pull request introduces 1 alert when merging 9199a36 into 4e24c77 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
Signed-off-by: pettershao-ragilenetworks [email protected]