-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upstreaming of proxy-wasm Part 1. #10262
Closed
Closed
Changes from 10 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
972166c
Upstreaming of proxy-wasm Part 1.
jplevyak 8b5efdc
Format.
jplevyak 65bd8ae
Address comments.
jplevyak b21914e
Address comments.
jplevyak 3204e82
Address comments.
jplevyak 3a25b41
Address comments.
jplevyak 7548daf
Format.
jplevyak 3518e10
Format.
jplevyak c9bfb2e
Format.
jplevyak b6f1ce6
Fix formatting.
jplevyak 7832462
Remove local repo reference.
jplevyak 489f8f8
Remove WasmState which is not needed in this PR.
jplevyak b21857a
Address comments.
jplevyak bbc7922
Format.
jplevyak 6f29c2a
Move pointer using statement to core.
jplevyak b3a3072
Merge remote-tracking branch 'envoyproxy/master' into wasm-upstream-base
jplevyak e85d273
Add Random as required by RemoteAsyncDataProvider.
jplevyak 167c344
Attempt to fix the @envoy dependency problem.
jplevyak 06581c7
Sort alphabetically because that was sooooo important.
jplevyak 4119e6b
Address some coverage.
jplevyak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
test/extensions/common/wasm/test_data/test_cpp_null_plugin.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
// NOLINT(namespace-envoy) | ||
#include "include/proxy-wasm/null_plugin.h" | ||
|
||
namespace proxy_wasm { | ||
namespace null_plugin { | ||
namespace CommonWasmTestCpp { | ||
NullPluginRegistry *context_registry_; | ||
} // CommonWasmtestCpp | ||
NullPluginRegistry* context_registry_; | ||
} // namespace CommonWasmTestCpp | ||
|
||
RegisterNullVmPluginFactory register_common_wasm_test_cpp_plugin("CommonWasmTestCpp", | ||
[]() { return std::make_unique<NullPlugin>(CommonWasmTestCpp::context_registry_); }); | ||
RegisterNullVmPluginFactory register_common_wasm_test_cpp_plugin("CommonWasmTestCpp", []() { | ||
return std::make_unique<NullPlugin>(CommonWasmTestCpp::context_registry_); | ||
}); | ||
|
||
} // namespace null_plugin; | ||
} // namespace null_plugin | ||
} // namespace proxy_wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -533,6 +533,7 @@ dynamodb | |
emplace | ||
emplaced | ||
emscripten | ||
emsdk | ||
enablement | ||
encodings | ||
endian | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect this is not a great pattern for using StatNameSet; I'm inclined not to institutionalize it by centralizing a shortcut for it.
But it's worth exploring what your data model is. Is the StatNameSet shared across all threads, all VMs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The VMs are running the same code and there are many of them (e.g 60 on a large system), so the replication would be large without sharing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
envoyproxy/envoy-wasm#452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed on envoyproxy/envoy-wasm#452 we have a new solution and are testing this now. I will upstream that change assuming it works out. Let's not let that hold up this review.