Skip to content
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

Feature/coverage azure pipelines #1704

Closed
wants to merge 6 commits into from
Closed

Feature/coverage azure pipelines #1704

wants to merge 6 commits into from

Conversation

Shylock-Hg
Copy link
Contributor

@dutor Need enable azure pipelines in github marketplace.

What changes were proposed in this pull request?

Add coverage collection and integrated with codecov.io
The azure pipeline not require token for codecov, so the PR from user without write permission work well too.

Why are the changes needed?

Testing coverage

Does this PR introduce any user-facing change?

NO

How was this patch tested?

@Shylock-Hg Shylock-Hg added the ready-for-testing PR: ready for the CI test label Jan 31, 2020
@Shylock-Hg
Copy link
Contributor Author

Replace #1596 #1410

@Shylock-Hg
Copy link
Contributor Author

It's a workaround, I will migrate to github action when it work well.

vmImage: $(vmImage)

# https://github.com/dutor/nebula-gears/issues/1
container: shylockhg/nebula-dev:centos7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the image vesoft/nebula-dev:centos7 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the previous image, the newer compiler can't work well for coverage, the detail See the issue in comment.

add_compile_options(-g)
add_compile_options(-O0)

set(COVERAGES --coverage)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this option valid for clang ? If not, please check the cmake compiler variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, valid for gcc/clang.

yixinglu
yixinglu previously approved these changes Feb 25, 2020
Copy link
Contributor

@yixinglu yixinglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -0,0 +1,40 @@
# https://aka.ms/yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move this file into .github/workflows/?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It don't belong to github action.I think better put in root directory as other open source project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I don't sure will this make error for github action.

set -e
cd _build
lcov --capture --gcov-tool $GCOV --directory . --output-file coverage.info
bash <(curl -s https://codecov.io/bash) -Z -f coverage.info
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove system/third library. for example:

lcov --remove coverage.info '*/usr/include/*' '*/usr/lib/*' '*/usr/lib64/*' '*/usr/local/include/*' '*/usr/local/lib/*' '*/usr/local/lib64/*' '/opt/*' coverage.info -o final.info

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@jude-zhu
Copy link
Contributor

close #968

yixinglu
yixinglu previously approved these changes Mar 2, 2020
@Shylock-Hg
Copy link
Contributor Author

@jude-zhu jude-zhu added this to the R201910_RC4 milestone Mar 2, 2020
@Shylock-Hg
Copy link
Contributor Author

Change azure project 'Nebula Graph' to 'NebulaGraph' make the codecov could get project information by azure API.

@Shylock-Hg Shylock-Hg removed the ready-for-testing PR: ready for the CI test label Mar 3, 2020
@Shylock-Hg
Copy link
Contributor Author

Duplicate with #1856

@Shylock-Hg Shylock-Hg closed this Mar 9, 2020
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants