-
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
Use TestEnvironment::nullDevicePath instead of /dev/null/ #12172
Use TestEnvironment::nullDevicePath instead of /dev/null/ #12172
Conversation
Signed-off-by: davinci26 <sotirisnan@gmail.com>
Signed-off-by: davinci26 <sotirisnan@gmail.com>
@davinci26 seems like |
@dio I added why I didn't remove the tag in the pr description. The test list is still flaky. I assume my other pr will help. |
Signed-off-by: davinci26 <sotirisnan@gmail.com>
0355a7f
to
135bd76
Compare
Signed-off-by: davinci26 <sotirisnan@gmail.com>
@sunjayBhatia do you think we could write a format rule for this one as well? |
Signed-off-by: davinci26 <sotirisnan@gmail.com>
yeah I think that is a good idea, especially as test cases get copied and pasted, if there are any maybe something as simple as searching for envoy/tools/code_format/check_format.py Line 580 in 2a34c76
|
Signed-off-by: davinci26 <sotirisnan@gmail.com>
I will fix the CI (formatting) as I add the new clang-ci rule |
Ping? Looking forward to this merge after the format failures are fixed. |
Signed-off-by: davinci26 <sotirisnan@gmail.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -154,7 +155,8 @@ const std::string CONFIG_WITH_ROUTES_BASE = R"EOF( | |||
stat_prefix: redis_stats | |||
settings: | |||
op_timeout: 5s | |||
)EOF"; | |||
)EOF", | |||
TestEnvironment::nullDevicePath()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is too far?
Format check failed, try apply following patch to fix:
diff --git a/test/extensions/filters/network/redis_proxy/redis_proxy_integration_test.cc b/test/extensions/filters/network/redis_proxy/redis_proxy_integration_test.cc
index b67cab241..928758cd7 100644
--- a/test/extensions/filters/network/redis_proxy/redis_proxy_integration_test.cc
+++ b/test/extensions/filters/network/redis_proxy/redis_proxy_integration_test.cc
@@ -60,7 +60,7 @@ static_resources:
settings:
op_timeout: 5s
)EOF",
- TestEnvironment::nullDevicePath());
+ TestEnvironment::nullDevicePath());
// This is a configuration with command stats enabled.
const std::string CONFIG_WITH_COMMAND_STATS = CONFIG + R"EOF(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting really confused... I am pretty sure I had it like this in the previous commit. Look at the diff here 7cedce8
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
a68cbbe
to
25428a3
Compare
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
It took me more time that I am proud to admit but I finally got there. The CI is clean now. Let me know if you have any other comments 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
…yproxy#12172) Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
…yproxy#12172) Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com> Signed-off-by: chaoqinli <chaoqinli@google.com>
Signed-off-by: davinci26 sotirisnan@gmail.com
Changes the config file to use the cross-platform
TestEnvironment::nullDevicePath()
instead of /dev/null in:rtds_integration_test.cc
cluster_integration_test.cc
redis_cluster_integration_test.cc
mysql_integration_test.cc
postgres_integration_test.cc
rtds_integration_test.cc
Additional Description:
The test list is flaky on Windows. I think it is related to #11793 and it will be less flaky when this change gets merged.
Risk Level: N/A
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]