Skip to content

wasm: include environment_variables in vm_key to trigger VM recreation on change - #44563

Merged
kyessenov merged 5 commits into
envoyproxy:mainfrom
derekargueta:dargueta-wasm-env-var-vm-key
May 13, 2026
Merged

kyessenov merged 5 commits into
envoyproxy:mainfrom
derekargueta:dargueta-wasm-env-var-vm-key

Conversation

@derekargueta

@derekargueta derekargueta commented Apr 21, 2026 •

Copy link
Copy Markdown
Member

When only the environment variables in vm_config changed, Envoy was silently reusing the existing Wasm VM rather than creating a new one. proxy_wasm::makeVmKey takes (vm_id, configuration, code) — none of which captured environment_variables — so the key was identical before and after an env var update. The VM was only recreated on code changes.

  • Serialize vm_config.environment_variables() and append it to the code string before computing the vm_key. Since makeVmKey is in the upstream proxy_wasm_cpp_host library and its signature can't be changed, appending to code is the cleanest available lever.
  • Add a unit test (VmCacheEnvVarChange) verifying that two createWasm calls differing only in env vars produce distinct VM handles rather than a cache hit.

Fixes #40881

Risk Level: low
Testing: unit test added
Docs Changes: N/A
Release Notes: done
Platform Specific Features: no

@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #44563 was opened by derekargueta.

see: more, trace.

@derekargueta
derekargueta marked this pull request as ready for review April 21, 2026 21:17
@derekargueta
derekargueta requested a review from kyessenov as a code owner April 21, 2026 21:17
…n on change

When only the environment variables in vm_config changed, Envoy was
silently reusing the existing VM rather than creating a new one. The
proxy_wasm::makeVmKey function takes (vm_id, configuration, code), and
none of those three captured environment_variables, so the key was
identical before and after an env var update.

Fix by serializing vm_config.environment_variables() and appending it
to the code string before computing the key. Since we can't change the
upstream makeVmKey signature, this is the cleanest lever available.

Fixes envoyproxy#40881

Signed-off-by: Derek Argueta <[email protected]>
@derekargueta
derekargueta force-pushed the dargueta-wasm-env-var-vm-key branch from 77ec51a to 0e17b8c Compare April 21, 2026 21:56
Comment thread source/extensions/common/wasm/wasm.cc Outdated
// since proxy_wasm::makeVmKey only accepts three parameters.
const std::size_t env_vars_hash = MessageUtil::hash(vm_config.environment_variables());
auto vm_key = proxy_wasm::makeVmKey(
vm_config.vm_id(),

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.

nit: I think appending to vm_id is cheaper, since code is O(MB), you are causing a large allocation to append. I would also add a separator character in the append.

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.

/wait

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated!

@kyessenov kyessenov left a comment

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.

LGTM, but I think it could be slightly improved.

Appending the env vars hash to the code string caused a large allocation
proportional to the Wasm binary size (O(MB)). Append to vm_id instead,
which is a small string. Add a '|' separator to prevent key collisions
between vm_id/hash boundary combinations.

Signed-off-by: Derek Argueta <[email protected]>
@kyessenov
kyessenov merged commit 8569caf into envoyproxy:main May 13, 2026
29 checks passed
jiaweiw02 pushed a commit to jiaweiw02/envoy that referenced this pull request May 15, 2026
…n on change (envoyproxy#44563)

When only the environment variables in `vm_config` changed, Envoy was
silently reusing the existing Wasm VM rather than creating a new one.
`proxy_wasm::makeVmKey` takes `(vm_id, configuration, code)` — none of
which captured `environment_variables` — so the key was identical before
and after an env var update. The VM was only recreated on code changes.

- Serialize `vm_config.environment_variables()` and append it to the
`code` string before computing the vm_key. Since `makeVmKey` is in the
upstream `proxy_wasm_cpp_host` library and its signature can't be
changed, appending to `code` is the cleanest available lever.
- Add a unit test (`VmCacheEnvVarChange`) verifying that two
`createWasm` calls differing only in env vars produce distinct VM
handles rather than a cache hit.

Fixes envoyproxy#40881

Risk Level: low
Testing: unit test added
Docs Changes: N/A
Release Notes: done
Platform Specific Features: no

---------

Signed-off-by: Derek Argueta <[email protected]>
Signed-off-by: Jiawei Wu <[email protected]>
alrzazz pushed a commit to alrzazz/envoy that referenced this pull request May 20, 2026
…n on change (envoyproxy#44563)

When only the environment variables in `vm_config` changed, Envoy was
silently reusing the existing Wasm VM rather than creating a new one.
`proxy_wasm::makeVmKey` takes `(vm_id, configuration, code)` — none of
which captured `environment_variables` — so the key was identical before
and after an env var update. The VM was only recreated on code changes.

- Serialize `vm_config.environment_variables()` and append it to the
`code` string before computing the vm_key. Since `makeVmKey` is in the
upstream `proxy_wasm_cpp_host` library and its signature can't be
changed, appending to `code` is the cleanest available lever.
- Add a unit test (`VmCacheEnvVarChange`) verifying that two
`createWasm` calls differing only in env vars produce distinct VM
handles rather than a cache hit.

Fixes envoyproxy#40881

Risk Level: low
Testing: unit test added
Docs Changes: N/A
Release Notes: done
Platform Specific Features: no

---------

Signed-off-by: Derek Argueta <[email protected]>
Signed-off-by: Alireza <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` argument, `envoy_wasm_cc_binary` keeps its `@envoy//`
string labels, the proxy-wasm repositories keep this branch's names, and
the tests for envoyproxy#46893 are left out. Also left out here are the tests for
changes not on this branch: the deferred data integration test and its
Rust module (envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the
`localWasmConfig()` config test helper (envoyproxy#45242). The filter tests keep
this branch's `absl::optional` and `absl::nullopt`, and `wee8_compile`
keeps its summary output.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
envoyproxy#46893 are left out. Also left out here are the tests for changes not on
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The filter tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
envoyproxy#46893 are left out. Also left out here are the tests for changes not on
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The filter tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
envoyproxy#46893 are left out. Also left out here are the tests for changes not on
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
The gRPC call and stream test modules link `envoy_proxy_wasm_api_lib`, as
this branch's combined test module did: with this branch's proxy-wasm C++
SDK their protobuf code imports `HaveOffsetConverter`, which that library
defines (`GrpcCall` failed with "missing import: env.HaveOffsetConverter").

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
envoyproxy#46893 are left out. Also left out here are the tests for changes not on
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
The gRPC call and stream test modules link `envoy_proxy_wasm_api_lib`, as
this branch's combined test module did: with this branch's proxy-wasm C++
SDK their protobuf code imports `HaveOffsetConverter`, which that library
defines (`GrpcCall` failed with "missing import: env.HaveOffsetConverter").

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 17, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
#46893 are left out. Also left out here are the tests for changes not on
this branch: the deferred data integration test and its Rust module
(#44279), `VmCacheEnvVarChange` (#44563) and the `localWasmConfig()`
config test helper (#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit b50daf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
- reduce sharding and resource pools for wasm host tests
- split wasm filter test and test modules by concern
- only test first available engine in host tests (all engines still
tested in compile-time-options)
- additional tests to ensure coverage of runtime compilation

---------

Backport note: as on release/v1.39, `getSha256Digest()` keeps this
branch's `Buffer::Instance` signature, `Plugin` keeps its
`TrafficDirection` and (here) listener metadata arguments,
`envoy_wasm_cc_binary` keeps its `@envoy//` string labels, the
proxy-wasm repositories keep this branch's names, and the tests for
this branch: the deferred data integration test and its Rust module
(envoyproxy#44279), `VmCacheEnvVarChange` (envoyproxy#44563) and the `localWasmConfig()`
config test helper (envoyproxy#45242). The tests keep this branch's
`absl::optional` and `absl::nullopt`, and `wee8_compile` keeps its
summary output.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): as on release/v1.38, with this branch's
`@com_google_absl` label, its `ParseFromArray` in the C++ test module, its
`EXPECT_CALL` stream info mocks, and without the server context config test,
which is not on this branch. The split tests are the 66 of this branch's
`wasm_filter_test.cc`.

(cherry picked from commit b50daf5)
The gRPC call and stream test modules link `envoy_proxy_wasm_api_lib`, as
this branch's combined test module did: with this branch's proxy-wasm C++
SDK their protobuf code imports `HaveOffsetConverter`, which that library
defines (`GrpcCall` failed with "missing import: env.HaveOffsetConverter").

Signed-off-by: Ryan Northey <[email protected]>
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.

Envoy doesn't reload wasm VM on changing wasm environment variables

2 participants