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

tools: add coverage reporting & enforcement to router check #7727

Merged
merged 13 commits into from
Aug 1, 2019

Conversation

dschaller
Copy link
Member

@dschaller dschaller commented Jul 26, 2019

Description: add coverage reporting & enforcement for routes in router check tool
Risk Level: Low
Testing: Manually tested
Docs Changes: Included
Release Notes: Included
Fixes #7567
Signed-off-by: Derek Schaller [email protected]

dio
dio previously requested changes Jul 26, 2019
Copy link
Member

@dio dio left a comment

Choose a reason for hiding this comment

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

Looks good. This seems super useful. WDYT of following tiny nit:

test/tools/router_check/coverage.cc Outdated Show resolved Hide resolved
@dio dio self-assigned this Jul 26, 2019
@dschaller
Copy link
Member Author

@dio thanks for the review! Updated based on your feedback

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

This is a really awesome feature. A potential TODO/follow-up would be to have an option to print all of the routes that aren't covered?

@dschaller
Copy link
Member Author

@mattklein123 thanks! Definitely agree about the follow up. I wanted to get basic coverage reporting and enforcement but I’d like to expand this to produce reports and include more comprehensive coverage of the fields for each route entry

@mattklein123
Copy link
Member

@mattklein123 thanks! Definitely agree about the follow up. I wanted to get basic coverage reporting and enforcement but I’d like to expand this to produce reports and include more comprehensive coverage of the fields for each route entry

Awesome!

Signed-off-by: Derek Schaller <[email protected]>
Signed-off-by: Derek Schaller <[email protected]>
Signed-off-by: Derek Schaller <[email protected]>
@dschaller
Copy link
Member Author

@dio @rgs1 @mattklein123 updated this based on feedback. Can I get another look over this? :)

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks looks good with some small nits. Also, can you add a test that fails/passes some coverage results? It should be pretty easy if based on the other tests. Thank you!

/wait

test/tools/router_check/coverage.cc Outdated Show resolved Hide resolved
test/tools/router_check/coverage.cc Outdated Show resolved Hide resolved
test/tools/router_check/coverage.h Outdated Show resolved Hide resolved
test/tools/router_check/coverage.h Outdated Show resolved Hide resolved
test/tools/router_check/router.cc Outdated Show resolved Hide resolved
@jyotimahapatra
Copy link
Contributor

#7567

@jyotimahapatra
Copy link
Contributor

We possibly can add a small check in route_tests.sh

Signed-off-by: Derek Schaller <[email protected]>
Signed-off-by: Derek Schaller <[email protected]>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

/wait

test/tools/router_check/coverage.cc Show resolved Hide resolved
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Awesome, tiny nit and then ready to ship.

/wait

test/tools/router_check/router_check.cc Outdated Show resolved Hide resolved
Signed-off-by: Derek Schaller <[email protected]>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123
Copy link
Member

@dio any additional comments?

@mattklein123 mattklein123 dismissed dio’s stale review August 1, 2019 14:23

comments addressed

@mattklein123 mattklein123 merged commit 43bb295 into envoyproxy:master Aug 1, 2019
@dschaller dschaller deleted the routercheckcoverage branch August 1, 2019 21:06
@jyotimahapatra
Copy link
Contributor

#730

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.

Support code coverage in router check tool
5 participants