-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Make test output honor output.elasticsearch.proxy_url #36715
Make test output honor output.elasticsearch.proxy_url #36715
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
if proxyURL := conn.Transport.Proxy.URL; proxyURL == nil || conn.Transport.Proxy.Disable { | ||
dialer = transport.TestNetDialer(d, conn.Transport.Timeout) | ||
} else { | ||
dialer = transport.NetDialer(conn.Transport.Timeout) |
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'm trying to understand the logic here. Why is the choice between the TestNetDialer
and NetDialer
is based on the proxy URL/proxy being enabled?
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.
@belimawr That's because the TCP connectivity has already been examined by TestNetDialer
if the peer is the proxy server. Thanks to your comment, I realize there's much room to improve readability in the Test function. I hope the new one is self-explanatory enough.
Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Tiago Queiroz <[email protected]>
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request is now in conflicts. Could you fix it? 🙏
|
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
|
This pull request is now in conflicts. Could you fix it? 🙏
|
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsExpand to view the GitHub comments
To re-run your PR in the CI, just comment with:
|
This pull request is now in conflicts. Could you fix it? 🙏
|
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsExpand to view the GitHub comments
To re-run your PR in the CI, just comment with:
|
I'm closing this PR to clean up my PR list. Please feel free to reopen PR and/or ping me anytime. |
This PR will fix the part of #24751 related to Elasticsearch. The code here depends on elastic/elastic-agent-libs#154.
Proposed commit message
See title
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.hidden because this section is no longer valid
## Author's ChecklistHow to test this PR locally
Related issues
filebeat test output
does not honor proxy_url setting for output.logstash or output.elasticsearch #24751Use cases
I frequently rely on
test output
command for troubleshooting, so its reliability is key.