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

Factory plugin implementation #566

Merged
merged 208 commits into from
Nov 11, 2020

Conversation

wjuan-AFK
Copy link
Contributor

Adding implementation in the factory_impl class for loading request source plugins. This also introduces python tests for the previous PR and undoes the temporary hack to reduce test_integration_coverage threshold in issue #564.

wjuan-AFK added 30 commits July 15, 2020 20:04
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
…TestForRequestSourceFactory

Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
Signed-off-by: William Juan <[email protected]>
@wjuan-AFK wjuan-AFK added waiting-for-review A PR waiting for a review. and removed waiting-for-changes A PR waiting for comments to be resolved and changes to be applied. labels Nov 9, 2020
@wjuan-AFK
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: clang_tidy (failed build)
🔨 rebuilding ci/circleci: test_gcc (failed build)

🐱

Caused by: a #566 (comment) was created by @wjuan-AFK.

see: more, trace.

@wjuan-AFK wjuan-AFK requested review from oschaaf and mum4k November 9, 2020 19:21
@wjuan-AFK
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: clang_tidy (failed build)

🐱

Caused by: a #566 (comment) was created by @wjuan-AFK.

see: more, trace.

@wjuan-AFK
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: clang_tidy (failed build)

🐱

Caused by: a #566 (comment) was created by @wjuan-AFK.

see: more, trace.

Copy link
Member

@oschaaf oschaaf left a comment

Choose a reason for hiding this comment

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

One last nit about removing // GCOVR_EXCL_START and // GCOVR_EXCL_END. It seems some of the changes outdated that comment, and these annotations no longer have value. Sorry about the back and forth on that. Other then that, this looks great to me.

} else if (options_.requestSourcePluginConfig().has_value()) {
absl::StatusOr<RequestSourcePtr> plugin_or = LoadRequestSourcePlugin(
options_.requestSourcePluginConfig().value(), api_, std::move(header));
// GCOVR_EXCL_START
Copy link
Member

Choose a reason for hiding this comment

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

I didn't expect the GCOVR exclusion here, but rather at/around the RELEASE_ASSERT line above -- so, sorry could you remove it here? Looking at the coverage report everything is fine now, including the RELEASE_ASSERT line, so it seems we don't need it there either now (probably because there's no conditional argument being passed).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good.

mum4k
mum4k previously approved these changes Nov 11, 2020
Copy link
Collaborator

@mum4k mum4k left a comment

Choose a reason for hiding this comment

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

Ready for merging, blocked on the clang_tidy flake which we are planning to remove temporarily in the near future (#570).

@mum4k
Copy link
Collaborator

mum4k commented Nov 11, 2020

@oschaaf, this is still marked as "change requested" from your last review, can you please indicate if there is anything outstanding or approve if otherwise?

@oschaaf
Copy link
Member

oschaaf commented Nov 11, 2020

@mum4k Sorry, I forgot to update the waiting-for-... label. There's one last (small) change I requested.

@oschaaf oschaaf added waiting-for-changes A PR waiting for comments to be resolved and changes to be applied. and removed waiting-for-review A PR waiting for a review. labels Nov 11, 2020
@mum4k
Copy link
Collaborator

mum4k commented Nov 11, 2020

Please merge from master to remove the hard block on clang_tidy.

@wjuan-AFK wjuan-AFK added waiting-for-review A PR waiting for a review. and removed waiting-for-changes A PR waiting for comments to be resolved and changes to be applied. labels Nov 11, 2020
Copy link
Member

@oschaaf oschaaf left a comment

Choose a reason for hiding this comment

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

Looks great, thanks

@mum4k mum4k merged commit d63ade7 into envoyproxy:master Nov 11, 2020
@wjuan-AFK wjuan-AFK deleted the FactoryPluginImplementation branch November 11, 2020 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-review A PR waiting for a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants