router: add a route name field in route.Route list#6776
router: add a route name field in route.Route list#6776mattklein123 merged 10 commits intoenvoyproxy:masterfrom drao9:latest_route_name
Conversation
zuercher
left a comment
There was a problem hiding this comment.
Thanks for taking this on. I took a quick pass and made some comments, but let's get the compile error fixed before we go further.
/wait
zuercher
left a comment
There was a problem hiding this comment.
Generally looks good. I have one comment related to this change.
Do you plan a follow-up change to allow access to the route name in (for example) access logs or use it in Envoy debug logging?
|
@zuercher I do plan to follow-up with the access log changes in a separate PR |
|
/retest |
|
🔨 rebuilding |
zuercher
left a comment
There was a problem hiding this comment.
I apologize for not being specific enough about the API comments, but I think they need a little more work. Other than it looks good.
|
@zuercher Thank you so much for your help! I just fixed all the comments. |
|
@zuercher The ci/circleci: mac has been failing and it does not seem to be related to these changes. Are you waiting on me to look into this before merging? |
|
@drao9 please merge master to pick up CI flake fixes. /wait |
|
@mattklein123 @zuercher Done with rebasing on master and looks like everything is green! Can this be merged? |
mattklein123
left a comment
There was a problem hiding this comment.
Thank you for adding this. A few comments.
/wait
test/common/router/router_test.cc
Outdated
There was a problem hiding this comment.
I don't see any tests in here for actually setting stream info. Can you add them?
There was a problem hiding this comment.
@mattklein123 I have added a couple of checks for this. I also made a separate commit to with changes in access logs - this will cover the tests for route name in stream info. Let me know if this works - thanks!
mattklein123
left a comment
There was a problem hiding this comment.
LGTM with 1 comment. Thank you!
/wait
There was a problem hiding this comment.
Please add this change to the public docs as well as version history. Also, please make a parallel change to add this to the gRPC access logs.
|
Looks a legit clang-tidy error. @drao9 friendly request to please don't force push. It makes it much harder to review your changes. /wait |
|
Sorry about that - I will be more careful next time. Will take a look at the clang-tidy error. |
|
@drao9 I think you have a messed up merge and also DCO. /wait |
|
@mattklein123 I sanitized my branch and rebased it against the latest master so the git history looks clean now - however, this means I will have to force push again to my branch. Please let me know if that works or whether you prefer a new PR. |
|
Sometimes you gotta force push... |
Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com> Signed-off-by: Divyani Rao <dirao@ebay.com>
Signed-off-by: Divyani Rao <dirao@ebay.com>
mattklein123
left a comment
There was a problem hiding this comment.
Thanks, LGTM. Can you merge master to fix coverage? Thank you!
/wait
Signed-off-by: Divyani Rao <dirao@ebay.com>
* master: test: Add coverage for IsolatedStoreImpl::find* (envoyproxy#7043) server: add ProcessContext (envoyproxy#7018) config: Implement both versions of onConfigUpdate() everywhere (envoyproxy#6879) gzip: add test for various compression strategy and level (envoyproxy#7055) Fix typo in comment for rds.RouteConfiguration.validate_clusters (envoyproxy#7056) mysql_filter: add handling for partial messages (envoyproxy#6885) migrate from v2alpha to v2 (envoyproxy#7044) tests: fix tsan test flake (envoyproxy#7052) upstream: fix HostUtility::healthFlagsToString (envoyproxy#7051) tech debt: eliminate absl::make_unique (envoyproxy#7034) router: add a route name field in route.Route list (envoyproxy#6776) ext_authz: configurable HTTP status code for network errors. (envoyproxy#6669) stats: remove const-cast for symbol-table in edcs_filter_test.cc (envoyproxy#7045) build: bump libevent to 3b1864b. (envoyproxy#7012) stats: improve test-coverage for a few stats-related functions. (envoyproxy#7038) docs: fix csrf filter source origin note (envoyproxy#7041) Fix common typo: grcp -> grpc (envoyproxy#7040) snapshot (envoyproxy#7036) Signed-off-by: Michael Puncel <mpuncel@squareup.com>
Signed-off-by: Divyani Rao dirao@ebay.com
Description: Add a route name field to each route in route.Route list (HTTP route)
Risk Level: Low
Testing: added a test to //test/common/router/config_impl_test.cc and modified some tests in //test/common/router/router_test.cc
Docs Changes: n/a
Release Notes: added a line to version_history.rst
[Optional Fixes #Issue] #6364