Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

implement expression context in Wasm#343

Merged
PiotrSikora merged 2 commits intoenvoyproxy:masterfrom
kyessenov:expr_api
Dec 12, 2019
Merged

implement expression context in Wasm#343
PiotrSikora merged 2 commits intoenvoyproxy:masterfrom
kyessenov:expr_api

Conversation

@kyessenov
Copy link
Copy Markdown
Contributor

@kyessenov kyessenov commented Dec 9, 2019

Signed-off-by: Kuat Yessenov kuat@google.com
Implement CEL context in Wasm context.
Harden the getters to handle empty stream info.
Drop request_protocol since it's in upstream now.
Fixes getProperty returning Ok for missing properties.

/assign @jplevyak

Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: Kuat Yessenov <kuat@google.com>
Signed-off-by: Kuat Yessenov <kuat@google.com>

// CEL evaluation
virtual std::vector<const google::api::expr::runtime::CelFunction*>
FindFunctionOverloads(absl::string_view) const override {
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.

Functions start with a lower case letter.

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.

This is an override for a google-style declaration.

@kyessenov
Copy link
Copy Markdown
Contributor Author

@bianpengyuan Can you try to update to this and let me know if this fixes istio/proxy#2548 ASAN failure? Note there might be a gap with request.protocol since it may not have been picked up from upstream yet.

@bianpengyuan
Copy link
Copy Markdown
Contributor

Sure, will post back.

@kyessenov
Copy link
Copy Markdown
Contributor Author

Peter's problem seems to be caused by a different issue (uninitialized struct).
Can we merge this? I don't want bad SHAs before this one and after refactor to make it to istio/proxy. It's painful to debug.

@kyessenov
Copy link
Copy Markdown
Contributor Author

@PiotrSikora merge this one, too?

@PiotrSikora PiotrSikora merged commit 097b7f2 into envoyproxy:master Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants