-
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
The Go SDK v1.31+ break for some reason #36380
Comments
cc @doujiang24 |
cc @spacewander |
The break is because the unit test executes In fact, import
It's lucky if you don't mean any problem caused by this before Envoy 1.31. There are some ways to solve this problem. For example, in HTNN we move the As you are running unit test... Moving this part to a new package also improves the coverage as you can't really run into it in your unit test. |
which means it is intended to be exactly like that, yes @spacewander? |
- RunHttpFilter moved because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
- RunHttpFilter moved because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
- RunHttpFilter moved because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
- RunHttpFilter moved and renamed to RegisterHttpFilter because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
- RunHttpFilter moved and renamed to RegisterHttpFilter because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
- RunHttpFilter moved and renamed to RegisterHttpFilter because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
- RunHttpFilter moved and renamed to RegisterHttpFilter because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
- RunHttpFilter moved and renamed to RegisterHttpFilter because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com>
* feat: bump envoy-sdk version Signed-off-by: Ardika Bagus <me@ardikabs.com> * feat: bump go version Signed-off-by: Ardika Bagus <me@ardikabs.com> * fix: move RunHttpFilter to dedicated package - RunHttpFilter moved and renamed to RegisterHttpFilter because the underlying package requires Envoy process to run, ref: envoyproxy/envoy#36380 - Bump Envoy version on test suite Signed-off-by: Ardika Bagus <me@ardikabs.com> --------- Signed-off-by: Ardika Bagus <me@ardikabs.com>
CC @doujiang24 |
Sorry for not replying in time. We are on holiday these days.
Not intended, but it is recommended to do this. Putting this part on the same package doesn't have enough benefits, and moving it to a separate package can improve the modularization. |
Title: The Go SDK v1.31+ breaks development by requiring the Envoy process to run
Description:
It appears that because of the newly added code in the Go SDK v1.31+ as shown in
envoy/contrib/golang/common/go/api_impl/capi_impl.go
Lines 64 to 85 in cc4a754
Repro steps:
Including the package
github.com/envoyproxy/envoy/contrib/golang/filters/http/source/go/pkg/http
in a filter that requires unit testing will immediately cause it to break and display the following error:It appears that the code required the envoy process to run, specifically on the following code L76:
envoy/contrib/golang/common/go/api_impl/capi_impl.go
Lines 75 to 77 in e3ed5a7
Admin and Stats Output:
Config:
Logs:
[optional Relevant Links:]
Slack thread: https://envoyproxy.slack.com/archives/C04QNSXC7U0/p1727604052263089
The text was updated successfully, but these errors were encountered: