Skip to content

Commit

Permalink
[CI] Log test results to a file in Buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Nov 7, 2024
1 parent 946acf7 commit cd1bdbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch-api/spec/yaml-test-runner/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
end

tests_path = File.expand_path('./tmp', __dir__)

logger = Logger.new($stdout)
logfile = "#{tests_path}/transport-#{ENV['TRANSPORT_VERSION']}-#{ENV['RUBY_VERSION']}.log"
logger = Logger.new(File.open(logfile, 'w'))
logger.level = Logger::WARN unless ENV['DEBUG']

# If we're running in a release branch, download the corresponding branch for tests
Expand Down

0 comments on commit cd1bdbe

Please sign in to comment.