mysql_filter: fix integration test flakes#6272
mysql_filter: fix integration test flakes#6272mattklein123 merged 3 commits intoenvoyproxy:masterfrom
Conversation
|
After patching this PR, I got that I think is the same failure: qq: is there a requirement that we have mysql installed locally as a service to run Envoy tests? |
|
No, |
|
@jmarantz what's OS are you running these tests on? |
This fixes flakes in the MySQL integration tests by introducing an exact match for server responses. Signed-off-by: Venil Noronha <veniln@vmware.com>
|
@jmarantz I believe the flakes are fixed now. |
|
Still fails for me; patching latest commit. Will poke around in the debugger for a few minutes. |
|
I didn't get anywhere debugging yet, and I'm not going to be able to get back to it tonight. My OS is 4.19.20-1rodete1-amd64 #1 SMP Debian 4.19.20-1rodete1 (2019-02-12 > 2018) x86_64 GNU/Linux |
|
It's worth noting that it failed for me in fastbuild, debug (g++), under tsan, and opt. The opt build was compiled without ASSERT of course, so the message was different: |
This fixes the flakes in the MySQL integration test when running with IPv6 by switching IPv4 addresses with addresses determined at runtime. Signed-off-by: Venil Noronha <veniln@vmware.com>
|
The latest patch works for me! The question that brings to mind is who was able to get these tests to pass without this? But that's a question for another day. Thanks for the fix! |
test/extensions/filters/network/mysql_proxy/mysql_integration_test.cc
Outdated
Show resolved
Hide resolved
test/extensions/filters/network/mysql_proxy/mysql_integration_test.cc
Outdated
Show resolved
Hide resolved
Signed-off-by: Venil Noronha <veniln@vmware.com>
| @@ -2,7 +2,7 @@ admin: | |||
| access_log_path: /dev/null | |||
There was a problem hiding this comment.
Question: Why are we using this config vs. just using the default config and config modifiers? Would that have made it easier to prevent this issue?
There was a problem hiding this comment.
I think we could have done it either way. However, @gvalentinivmw might know more. We could have still run into this issue as the config modifiers don't constrain IP addresses AFAIK.
There was a problem hiding this comment.
OK that's fine. It's not a big deal either way, though I think in general it's better to use the stock config in case that changes in the future.
There was a problem hiding this comment.
For the record, I think the problem here is related to a bug I reported a while back: #5556
it'd be nice to make tests that do not care about ports not have to specify anything about them, or care about ipv6 vs ipv4.
There was a problem hiding this comment.
Yea, that'd definitely be helpful.
* master: (59 commits) http fault: add response rate limit injection (envoyproxy#6267) xds: introduce initial_fetch_timeout option to limit initialization time (envoyproxy#6048) test: fix cpuset-threads tests (envoyproxy#6278) server: add an API for registering for notifications for server instance life… (envoyproxy#6254) remove remains of TestBase (envoyproxy#6286) dubbo_proxy: Implement the routing of Dubbo requests (envoyproxy#5973) Revert "stats: add new BoolIndicator stat type (envoyproxy#5813)" (envoyproxy#6280) runtime: codifying runtime guarded features (envoyproxy#6134) mysql_filter: fix integration test flakes (envoyproxy#6272) tls: update BoringSSL to debed9a4 (3683). (envoyproxy#6273) rewrite buffer implementation to eliminate evbuffer dependency (envoyproxy#5441) Remove the dependency from TimeSystem to libevent by using the Event::Scheduler abstraction as a delegate. (envoyproxy#6240) fuzz: fix use of literal in default initialization. (envoyproxy#6268) http: add HCM functionality required for rate limiting (envoyproxy#6242) Disable mysql_integration_test until it is deflaked. (envoyproxy#6250) test: use ipv6_only IPv6 addresses in custom cluster integration tests. (envoyproxy#6260) tracing: If parent span is propagated with empty string, it causes th… (envoyproxy#6263) upstream: fix oss-fuzz issue envoyproxy#11095. (envoyproxy#6220) Wire up panic mode subset to receive updates (envoyproxy#6221) docs: clarify xds docs with warming information (envoyproxy#6236) ...
Description: This fixes flakes in the MySQL integration tests by introducing an exact
match for server responses. A separate issue was found when running under IPv6 due to the presence of IPv4 addresses in the test configuration. This fixes that issue as well.
Risk Level: Low
Testing: Ran
mysql_integration_testx5000Docs Changes: N/A
Release Notes: N/A
Fixes #6162
Fixes #6131