Skip to content

dym: make EnvoyBuffer easier to use in test#44130

Merged
mathetake merged 3 commits into
envoyproxy:mainfrom
mathetake:envoysdkenvoybufferlifetime
Mar 26, 2026
Merged

dym: make EnvoyBuffer easier to use in test#44130
mathetake merged 3 commits into
envoyproxy:mainfrom
mathetake:envoysdkenvoybufferlifetime

Conversation

@mathetake
Copy link
Copy Markdown
Member

@mathetake mathetake commented Mar 26, 2026

Commit Message: dym: make EnvoyBuffer easier to use in test
Additional Description:
Risk Level: none (only impacts unit tests with mocks)
Testing: done
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

@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: #44130 was opened by mathetake.

see: more, trace.

@mathetake mathetake requested a review from akonradi March 26, 2026 18:57
@mathetake mathetake marked this pull request as ready for review March 26, 2026 18:57
Comment thread source/extensions/dynamic_modules/sdk/rust/src/buffer.rs Outdated
@akonradi
Copy link
Copy Markdown
Contributor

I'm trying to understand how this is working. It looks like the lifetime parameters are always the same?

The problem I thought we were seeing was that MockEnvoyHttpFilter's expectations always required a EnvoyBuffer<'static>, and that's a problem for testing. Does this make that better?

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
@mathetake mathetake force-pushed the envoysdkenvoybufferlifetime branch from 8760a56 to 1bee921 Compare March 26, 2026 21:07
@mathetake
Copy link
Copy Markdown
Member Author

@akonradi PTAL - reworked the PR

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
@mathetake mathetake enabled auto-merge (squash) March 26, 2026 21:21
Comment thread source/extensions/dynamic_modules/sdk/rust/src/buffer.rs Outdated
Copy link
Copy Markdown
Contributor

@akonradi akonradi left a comment

Choose a reason for hiding this comment

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

Just the one request, otherwise looks great!

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
@mathetake mathetake merged commit 96b6b2d into envoyproxy:main Mar 26, 2026
28 checks passed
@mathetake mathetake deleted the envoysdkenvoybufferlifetime branch March 26, 2026 21:58
TAOXUY pushed a commit to TAOXUY/envoy that referenced this pull request Apr 1, 2026
Commit Message: dym: make EnvoyBuffer easier to use in test
Additional Description:
Risk Level: none (only impacts unit tests with mocks)
Testing: done
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

---------

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Signed-off-by: Xuyang Tao <taoxuy@google.com>
citrus7 pushed a commit to citrus7/envoy that referenced this pull request Apr 1, 2026
Commit Message: dym: make EnvoyBuffer easier to use in test
Additional Description:
Risk Level: none (only impacts unit tests with mocks)
Testing: done
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

---------

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Signed-off-by: Jonathan Wu <jtwu@google.com>
nshipilov pushed a commit to nshipilov/envoy that referenced this pull request Apr 13, 2026
Commit Message: dym: make EnvoyBuffer easier to use in test
Additional Description:
Risk Level: none (only impacts unit tests with mocks)
Testing: done
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

---------

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Signed-off-by: Nick Shipilov <nick.shipilov.n@gmail.com>
krinkinmu pushed a commit to grnmeira/envoy that referenced this pull request Apr 20, 2026
Commit Message: dym: make EnvoyBuffer easier to use in test
Additional Description:
Risk Level: none (only impacts unit tests with mocks)
Testing: done
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

---------

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.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.

3 participants