Skip to content

Commit 0630fd1

Browse files
committed
[CI] Log test results to a file in Buildkite
1 parent 73ad06b commit 0630fd1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.buildkite/pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ steps:
3333
TRANSPORT_VERSION: "{{ matrix.transport }}"
3434
RUBY_SOURCE: "{{ matrix.ruby_source }}"
3535
TEST_SUITE: "platinum"
36+
DEBUG: true
3637
command: ./.buildkite/run-yaml-tests.sh
38+
artifact_paths: "elasticsearch-api/tmp/*"
3739
- wait: ~
3840
continue_on_failure: true
3941
- label: "Log Results"

elasticsearch-api/spec/yaml-test-runner/run.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
end
5757

5858
tests_path = File.expand_path('./tmp', __dir__)
59-
60-
logger = Logger.new($stdout)
61-
logger.level = Logger::WARN unless ENV['DEBUG']
59+
logfile = File.expand_path "../../tmp/tests-#{Elasticsearch::VERSION}-transport-#{ENV['TRANSPORT_VERSION']}-ruby-#{ENV['RUBY_VERSION']}.log", __dir__
60+
logger = Logger.new(File.open(logfile, 'w'))
61+
logger.level = ENV['DEBUG'] ? Logger::DEBUG : Logger::WARN
6262

6363
# If we're running in a release branch, download the corresponding branch for tests
6464
current_branch = `git rev-parse --abbrev-ref HEAD`.strip

0 commit comments

Comments
 (0)