Skip to content

Factory plugin implementation#566

Merged
mum4k merged 208 commits intoenvoyproxy:masterfrom
wjuan-AFK:FactoryPluginImplementation
Nov 11, 2020
Merged

Factory plugin implementation#566
mum4k merged 208 commits intoenvoyproxy:masterfrom
wjuan-AFK:FactoryPluginImplementation

Conversation

@wjuan-AFK
Copy link
Copy Markdown
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 <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
a global request generator.
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Adding comments.
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
…TestForRequestSourceFactory

Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
request source.
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
…format and check format.

Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
@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
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

🔨 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 mum4k and oschaaf November 9, 2020 19:21
@wjuan-AFK
Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

🔨 rebuilding ci/circleci: clang_tidy (failed build)

🐱

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

see: more, trace.

@wjuan-AFK
Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

🔨 rebuilding ci/circleci: clang_tidy (failed build)

🐱

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

see: more, trace.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

mum4k commented Nov 11, 2020

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

Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
@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
Copy Markdown
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