Skip to content
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

mobile: Remove HTTP server code from TestJni #33169

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

fredyw
Copy link
Member

@fredyw fredyw commented Mar 28, 2024

This PR removes the HTTP server code from TestJni. The tests have been updated to use either HttpTestServer or HttpProxyTestServer.

This PR also moves test_server_interface.[h|cc] into its own build target.

Risk Level: low (tests only)
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: mobile

Copy link

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: #33169 was opened by fredyw.

see: more, trace.

@fredyw fredyw force-pushed the jni_http_proxy_test branch from 4b113d9 to 88680e6 Compare March 28, 2024 00:43
@fredyw
Copy link
Member Author

fredyw commented Mar 28, 2024

/retest

@fredyw fredyw changed the title mobile: Remove HTTP server code in TestJni mobile: Remove HTTP server code from TestJni Mar 28, 2024
@fredyw
Copy link
Member Author

fredyw commented Mar 28, 2024

/retest

@fredyw fredyw force-pushed the jni_http_proxy_test branch from 88680e6 to 2320b6e Compare March 28, 2024 13:51
@fredyw
Copy link
Member Author

fredyw commented Mar 28, 2024

/retest

@fredyw fredyw force-pushed the jni_http_proxy_test branch 4 times, most recently from 8328bf7 to 07b299e Compare March 28, 2024 17:55
@fredyw fredyw marked this pull request as ready for review March 28, 2024 18:03
@fredyw
Copy link
Member Author

fredyw commented Mar 28, 2024

/assign @abeyad

Signed-off-by: Fredy Wijaya <fredyw@google.com>
@fredyw fredyw force-pushed the jni_http_proxy_test branch from 07b299e to a591f42 Compare March 28, 2024 18:10
@@ -0,0 +1,38 @@
package io.envoyproxy.envoymobile.engine.testing;
Copy link
Contributor

Choose a reason for hiding this comment

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

wasn't this part of the previous PR? I think tip-of-tree needs to be sync'ed with this branch?

Copy link
Member Author

@fredyw fredyw Mar 28, 2024

Choose a reason for hiding this comment

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

This is for the proxy test server.

fredyw added 2 commits March 28, 2024 19:12
Signed-off-by: Fredy Wijaya <fredyw@google.com>
Signed-off-by: Fredy Wijaya <fredyw@google.com>
@fredyw fredyw merged commit 2b49300 into envoyproxy:main Mar 28, 2024
35 checks passed
@fredyw fredyw deleted the jni_http_proxy_test branch March 28, 2024 19:53
abeyad added a commit to abeyad/envoy that referenced this pull request Mar 30, 2024
The test failed when adding the native Assertion filter, with an error
from loadFromYaml: INVALID_ARGUMENT: could not find @type
'type.googleapis.com/envoymobile.extensions.filters.http.assertion.Assertion

After running git bisect, it turns out the bad commit came from
envoyproxy#33169. That PR introduces
HttpTestServer to the SendDataTest.kt, which causes the required proto
types to not get loaded.

In this commit, the test is fixed by using a TestRemoteResponse filter,
similar to the other Kotlin tests (e.g. SendTrailersTest). However, we
need to figure out why the config filter protos aren't loading when
creating the HttpTestServer.

Signed-off-by: Ali Beyad <abeyad@google.com>
abeyad added a commit that referenced this pull request Apr 1, 2024
The test failed when adding the native Assertion filter, with an error
from loadFromYaml: INVALID_ARGUMENT: could not find @type
'type.googleapis.com/envoymobile.extensions.filters.http.assertion.Assertion

After running git bisect, it turns out the bad commit came from
#33169. That PR introduces
HttpTestServer to the SendDataTest.kt, which causes the required proto
types to not get loaded.

In this commit, the test is fixed by using a TestRemoteResponse filter,
similar to the other Kotlin tests (e.g. SendTrailersTest). However, we
need to figure out why the config filter protos aren't loading when
creating the HttpTestServer.

Signed-off-by: Ali Beyad <abeyad@google.com>
alyssawilk pushed a commit to alyssawilk/envoy that referenced this pull request Apr 29, 2024
This PR removes the HTTP server code from TestJni. The tests have been updated to use either HttpTestServer or HttpProxyTestServer.

This PR also moves test_server_interface.[h|cc] into its own build target.

Risk Level: low (tests only)
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: mobile

Signed-off-by: Fredy Wijaya <fredyw@google.com>
alyssawilk pushed a commit to alyssawilk/envoy that referenced this pull request Apr 29, 2024
The test failed when adding the native Assertion filter, with an error
from loadFromYaml: INVALID_ARGUMENT: could not find @type
'type.googleapis.com/envoymobile.extensions.filters.http.assertion.Assertion

After running git bisect, it turns out the bad commit came from
envoyproxy#33169. That PR introduces
HttpTestServer to the SendDataTest.kt, which causes the required proto
types to not get loaded.

In this commit, the test is fixed by using a TestRemoteResponse filter,
similar to the other Kotlin tests (e.g. SendTrailersTest). However, we
need to figure out why the config filter protos aren't loading when
creating the HttpTestServer.

Signed-off-by: Ali Beyad <abeyad@google.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.

2 participants