Skip to content

Adds regression test for b701b03 & 1d37220 - #44279

Merged
mathetake merged 8 commits into
envoyproxy:mainfrom
mathetake:integrationtestregression
May 5, 2026
Merged

mathetake merged 8 commits into
envoyproxy:mainfrom
mathetake:integrationtestregression

Conversation

@mathetake

@mathetake mathetake commented Apr 3, 2026 •

Copy link
Copy Markdown
Member

Commit Message: Adds regression test for b701b03 & 1d37220
Additional Description:

This add a regression test for b701b03 & 1d37220 that simulates the bug that we encountered before in production. b701b03 or 1d37220 fixes the underlying issue but didn't come with a test that exercises the code path that makes Wasm VM crash.

We verified that this test fails without b701b03 and 1d37220

Risk Level: none
Testing: only test
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake
mathetake marked this pull request as ready for review April 3, 2026 22:08
@mathetake
mathetake requested a review from kyessenov as a code owner April 3, 2026 22:08
@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: #44279 was opened by mathetake.

see: more, trace.

@mathetake
mathetake requested a review from KBaichoo April 3, 2026 22:10
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake
mathetake force-pushed the integrationtestregression branch from 2461bea to 962e81c Compare April 3, 2026 23:02

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

/wait

Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake
mathetake requested a review from KBaichoo April 8, 2026 22:12
@KBaichoo

Copy link
Copy Markdown
Contributor

/wait

@mathetake mathetake changed the title Adds regression test for b701b03 Adds regression test for b701b03 & 1d372209b May 5, 2026
@mathetake mathetake changed the title Adds regression test for b701b03 & 1d372209b Adds regression test for b701b03 & 1d3722 May 5, 2026
@mathetake mathetake changed the title Adds regression test for b701b03 & 1d3722 Adds regression test for b701b03 & 1d37220 May 5, 2026
@mathetake
mathetake force-pushed the integrationtestregression branch from 33ae871 to e133483 Compare May 5, 2026 00:03
@mathetake

mathetake commented May 5, 2026 •

Copy link
Copy Markdown
Member Author

The interesting thing I found was that 1d37220 also fixed the bug here - reverting both b701b03 AND 1d37220 will actually make the added test here fail

@mathetake
mathetake force-pushed the integrationtestregression branch from e133483 to 8c827af Compare May 5, 2026 00:20
@mathetake

Copy link
Copy Markdown
Member Author

sorry fixed the DCO

codec_client_->close();

constexpr absl::string_view stat_prefix = "wasm.deferred_data_regression.";
EXPECT_EQ(0, test_server_->counter(absl::StrCat(stat_prefix, "vm_reload_success"))->value());

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.

these will be 1 without these fixing commits

KBaichoo
KBaichoo previously approved these changes May 5, 2026

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

Thanks!

Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake

Copy link
Copy Markdown
Member Author

sorry had to fix a typo..

@mathetake
mathetake enabled auto-merge (squash) May 5, 2026 03:38
@mathetake
mathetake merged commit 46718cb into envoyproxy:main May 5, 2026
29 checks passed
@mathetake
mathetake deleted the integrationtestregression branch May 5, 2026 21:44
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.

3 participants