forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker integration tests stability improvements (elastic#13014)
* Docker integration tests stability improvements This commit contains numerous fixes to improve the stability of the docker integration tests * Patch Excon::UnixSocket Socket.new running on arm64 on Ubuntu 18.04, causes an immediate SIGSEGV error and crash on that OS, and, as far as I can tell, only that OS. `TCPSocket.new`,`UDPSocket.new` and `UNIXSocket.new` do not. This commit patches the UnixSocket of the Excon library to do the absolute simplest thing possible to avoid this error. * Ensure that container is deleted even if #kill fails * Add extra waits to handle the incremental way the payload returned by the monitoring API increases as logstash starts up and pipelines load. * Use pyenv to ensure the same version of python is used across different jenkins workers * Add container logs to help diagnose failed test. * Update the pipeline definition on multi-pipeline integration test This was causing a pipeline to halt after startup causing intermittent test failures. * Remove `;` to ensure failures are propagated appropriately Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
111 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
input { | ||
beats { | ||
id => 'multi_pipeline2' | ||
port => 5044 | ||
} | ||
stdin { | ||
id => 'multi_pipeline2' | ||
} | ||
} | ||
output { stdout {} } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
module Excon | ||
class UnixSocket < Excon::Socket | ||
private | ||
def connect | ||
@socket = ::UNIXSocket.new(@data[:socket]) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters