Skip to content

tech debt: simplify access log code by adding a ALL_RESPONSE_STRING_FLAGS#15580

Merged
mattklein123 merged 15 commits intoenvoyproxy:mainfrom
lambdai:errorflagref
Apr 9, 2021
Merged

tech debt: simplify access log code by adding a ALL_RESPONSE_STRING_FLAGS#15580
mattklein123 merged 15 commits intoenvoyproxy:mainfrom
lambdai:errorflagref

Conversation

@lambdai
Copy link
Copy Markdown
Contributor

@lambdai lambdai commented Mar 19, 2021

Commit Message:
Remove a bunch of duplicated code in the access log. Adding new response flag will be easier.

Signed-off-by: Yuchen Dai silentdai@gmail.com

Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

lambdai added 2 commits March 19, 2021 01:07
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@lambdai
Copy link
Copy Markdown
Contributor Author

lambdai commented Mar 20, 2021

https://storage.googleapis.com/envoy-pr/88caf8e/coverage/source/common/stream_info/index.html

The coverage is lower because I rewrite the verbose code 😭

@jmarantz jmarantz self-assigned this Mar 21, 2021
@jmarantz
Copy link
Copy Markdown
Contributor

/wait

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz 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; just a few small comments. Thank you!

@jmarantz
Copy link
Copy Markdown
Contributor

/wait

lambdai added 2 commits April 2, 2021 15:42
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@jmarantz
Copy link
Copy Markdown
Contributor

jmarantz commented Apr 4, 2021

/wait

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
lambdai added 4 commits April 5, 2021 12:40
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

just a minor perf nit

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
jmarantz
jmarantz previously approved these changes Apr 8, 2021
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

Great, thanks!

Might need to merge main to try to pass CI?

@envoyproxy/senior-maintainers

@alyssawilk
Copy link
Copy Markdown
Contributor

CI is broken right now but
/assign @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers cannot be assigned to this issue.

🐱

Caused by: a #15580 (comment) was created by @alyssawilk.

see: more, trace.

@alyssawilk
Copy link
Copy Markdown
Contributor

alyssawilk commented Apr 8, 2021

boo. @htuch @itayd did I do the assign incorrectly or is it opt-in per group?

edit: right, assign-from not assign. though that doesn't seem to work either. Thoughts?

@alyssawilk
Copy link
Copy Markdown
Contributor

/assign-from @envoyproxy/senior-maintainers

@alyssawilk
Copy link
Copy Markdown
Contributor

hm, I think I have the right command this time and it's still not working. #15594 is merged - do we need to update anything else to get it to work?

@htuch
Copy link
Copy Markdown
Member

htuch commented Apr 8, 2021

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @mattklein123

🐱

Caused by: a #15580 (comment) was created by @htuch.

see: more, trace.

@htuch
Copy link
Copy Markdown
Member

htuch commented Apr 8, 2021

@itayd any idea it didn't pick up when @alyssawilk tried? It looks like no errors on #repokitteh and no indication of RK observing the comment. @alyssawilk can you try out the command in some other PRs?

Copy link
Copy Markdown
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 nice cleanup! A few small comments.

/wait

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@itayd
Copy link
Copy Markdown
Contributor

itayd commented Apr 9, 2021

@htuch seems like a transient github error? from the trace it returned 404, but after that was ok.

github_call(
  method="GET",
  path="repos/envoyproxy/envoy/assignees/envoyproxy/senior-maintainers",
  body=null,
  success_codes=[204,404],
  accept=null,
) -> (
  {"body":"","json":null,"links":{},"status":"404 Not Found","status_code":404}, (
  null, 
)

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@lambdai
Copy link
Copy Markdown
Contributor Author

lambdai commented Apr 9, 2021

Do I need to merge main?

Copy link
Copy Markdown
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 with small comment.

/wait

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Copy link
Copy Markdown
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!

@mattklein123 mattklein123 merged commit 56d3f8a into envoyproxy:main Apr 9, 2021
@lambdai lambdai deleted the errorflagref branch April 9, 2021 23:46
Monkeyanator pushed a commit to Monkeyanator/envoy that referenced this pull request Apr 20, 2021
…LAGS (envoyproxy#15580)

Signed-off-by: Yuchen Dai <silentdai@gmail.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.

6 participants