Skip to content

Commit

Permalink
Merge pull request #191 from buildkite/pie-1648/rescue-standard-error
Browse files Browse the repository at this point in the history
Rescue standard error
  • Loading branch information
blaknite authored May 17, 2023
2 parents 197b4de + 9b660c9 commit ff83cd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/buildkite/test_collector/uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def self.traces
Net::OpenTimeout,
OpenSSL::SSL::SSLError,
OpenSSL::SSL::SSLErrorWaitReadable,
EOFError
EOFError,
Errno::ETIMEDOUT
]

def self.tracer
Expand All @@ -44,6 +45,8 @@ def self.upload(data)
if (upload_attempts += 1) < MAX_UPLOAD_ATTEMPTS
retry
end
rescue StandardError => e
$stderr.puts "#{Buildkite::TestCollector::NAME} #{Buildkite::TestCollector::VERSION} experienced an error when sending your data, you may be missing some executions for this run."
end
end
end
Expand Down

0 comments on commit ff83cd1

Please sign in to comment.