Skip to content

matcher: add support for new any matcher mechanism#19143

Merged
snowp merged 7 commits intoenvoyproxy:mainfrom
snowp:any-matcher
Feb 3, 2022
Merged

matcher: add support for new any matcher mechanism#19143
snowp merged 7 commits intoenvoyproxy:mainfrom
snowp:any-matcher

Conversation

@snowp
Copy link
Copy Markdown
Contributor

@snowp snowp commented Nov 30, 2021

Signed-off-by: Snow Pettersen snowp@lyft.com

Risk Level: Medium
Testing: New UT
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Snow Pettersen <snowp@lyft.com>
@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label Nov 30, 2021
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @mattklein123

🐱

Caused by: #19143 was opened by snowp.

see: more, trace.

Snow Pettersen added 2 commits December 21, 2021 17:37
Signed-off-by: Snow Pettersen <snowp@lyft.com>
Signed-off-by: Snow Pettersen <snowp@lyft.com>
@jmarantz
Copy link
Copy Markdown
Contributor

jmarantz commented Jan 5, 2022

Matt is on this, but as he's not available currently I'll assign another first-pass reviewer to push this along.

/assign-from @envoyproxy/first-pass-reviewers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/first-pass-reviewers assignee is @adisuissa

🐱

Caused by: a #19143 (comment) was created by @jmarantz.

see: more, trace.

Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!
Left a couple of minor comments.
/wait

template <class DataType> using OnMatchFactoryCb = std::function<OnMatch<DataType>()>;
template <class DataType> using DataInputFactoryCb = std::function<DataInputPtr<DataType>()>;

template <class DataType> class AnyMatcher : public MatchTree<DataType> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add some comments.

: on_no_match_(std::move(on_no_match)) {}

typename MatchTree<DataType>::MatchResult match(const DataType&) override {
return {MatchState::MatchComplete, on_no_match_};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not an expert here, but should the 2nd param (on_no_match_ object) be returned by ref?

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.

I think in other use cases this always does a copy, since the Action object is generally small (lambda + pointer). We could probably change this around but would be a bigger refactor I think

Signed-off-by: Snow Pettersen <snowp@lyft.com>
Snow Pettersen added 2 commits January 19, 2022 19:18
Signed-off-by: Snow Pettersen <snowp@lyft.com>
Signed-off-by: Snow Pettersen <snowp@lyft.com>
Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

Minor comment on the release notes, but otherwise LGTM.
/assign-from @envoyproxy/senior-maintainers

New Features
------------
* http3: downstream HTTP/3 support is now GA! Upstream HTTP/3 also GA for specific deployments. See :ref:`here <arch_overview_http3>` for details.
* xds: re-introduced unified delta and sotw xDS multiplexers that share most of the implementation. Added a new runtime config ``envoy.reloadable_features.unified_mux`` (disabled by default) that when enabled, switches xDS to use unified multiplexers.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like the wrong description

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @mattklein123

🐱

Caused by: a #19143 (review) was submitted by @adisuissa.

see: more, trace.

Signed-off-by: Snow Pettersen <snowp@lyft.com>
@snowp snowp merged commit 920e11a into envoyproxy:main Feb 3, 2022
joshperry pushed a commit to joshperry/envoy that referenced this pull request Feb 13, 2022
Signed-off-by: Snow Pettersen <snowp@lyft.com>
Signed-off-by: Josh Perry <josh.perry@mx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps Approval required for changes to Envoy's external dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants