From bd778674e01c8e2b3294964678b050250ef07bfa Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 7 Nov 2024 14:45:25 +0000 Subject: [PATCH] [CI] Log test results to a file in Buildkite --- .buildkite/pipeline.yml | 1 + elasticsearch-api/spec/yaml-test-runner/run.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index ce785fff2..f127e1370 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -49,6 +49,7 @@ steps: TRANSPORT_VERSION: "{{ matrix.transport }}" RUBY_SOURCE: "{{ matrix.ruby_source }}" TEST_SUITE: "platinum" + DEBUG: true command: ./.buildkite/run-yaml-tests.sh - wait: ~ continue_on_failure: true diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index c25c3a71c..6faf1b1c3 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -57,7 +57,7 @@ tests_path = File.expand_path('./tmp', __dir__) -logger = Logger.new($stdout) +logger = Logger.new("#{tests_path}/transport-#{ENV['TRANSPORT_VERSION']}-#{ENV['RUBY_VERSION']}.log") logger.level = Logger::WARN unless ENV['DEBUG'] # If we're running in a release branch, download the corresponding branch for tests