Skip to content

router: add a route name field in route.Route list#6776

Merged
mattklein123 merged 10 commits intoenvoyproxy:masterfrom
drao9:latest_route_name
May 23, 2019
Merged

router: add a route name field in route.Route list#6776
mattklein123 merged 10 commits intoenvoyproxy:masterfrom
drao9:latest_route_name

Conversation

@drao9
Copy link
Contributor

@drao9 drao9 commented May 2, 2019

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

Copy link
Member

@zuercher zuercher 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 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 zuercher self-assigned this May 2, 2019
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

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?

@drao9
Copy link
Contributor Author

drao9 commented May 3, 2019

@zuercher I do plan to follow-up with the access log changes in a separate PR

@drao9
Copy link
Contributor Author

drao9 commented May 6, 2019

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: mac (failed build)
🔨 rebuilding ci/circleci: release (failed build)

🐱

Caused by: a #6776 (comment) was created by @drao9.

see: more, trace.

Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

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.

@drao9
Copy link
Contributor Author

drao9 commented May 7, 2019

@zuercher Thank you so much for your help! I just fixed all the comments.

zuercher
zuercher previously approved these changes May 8, 2019
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

Thanks!

@drao9
Copy link
Contributor Author

drao9 commented May 8, 2019

@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?

@mattklein123
Copy link
Member

@drao9 please merge master to pick up CI flake fixes.

/wait

zuercher
zuercher previously approved these changes May 9, 2019
@drao9
Copy link
Contributor Author

drao9 commented May 9, 2019

@mattklein123 @zuercher Done with rebasing on master and looks like everything is green! Can this be merged?

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.

Thank you for adding this. A few comments.

/wait

Copy link
Member

Choose a reason for hiding this comment

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

I don't see any tests in here for actually setting stream info. Can you add them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@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!

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.

LGTM with 1 comment. Thank you!

/wait

Copy link
Member

Choose a reason for hiding this comment

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

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.

Copy link
Member

Choose a reason for hiding this comment

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

nit: add blank line above

Copy link
Member

Choose a reason for hiding this comment

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

nit: put the newline back

@mattklein123
Copy link
Member

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

@drao9
Copy link
Contributor Author

drao9 commented May 20, 2019

Sorry about that - I will be more careful next time. Will take a look at the clang-tidy error.

@drao9 drao9 requested a review from alyssawilk as a code owner May 21, 2019 18:13
@mattklein123
Copy link
Member

@drao9 I think you have a messed up merge and also DCO.

/wait

@drao9
Copy link
Contributor Author

drao9 commented May 21, 2019

@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.

@mattklein123
Copy link
Member

Sometimes you gotta force push...

Divyani Rao added 9 commits May 21, 2019 19:50
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>
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, LGTM. Can you merge master to fix coverage? Thank you!

/wait

Signed-off-by: Divyani Rao <dirao@ebay.com>
@mattklein123 mattklein123 merged commit 46012ce into envoyproxy:master May 23, 2019
mpuncel added a commit to mpuncel/envoy that referenced this pull request May 23, 2019
* 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>
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.

3 participants