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 13, 2024
1 parent bf9d59a commit 14798ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ steps:
TRANSPORT_VERSION: "{{ matrix.transport }}"
RUBY_SOURCE: "{{ matrix.ruby_source }}"
TEST_SUITE: "platinum"
DEBUG: true
command: ./.buildkite/run-yaml-tests.sh
artifact_paths: "elasticsearch-api/tmp/*"
- wait: ~
continue_on_failure: true
- label: "Log Results"
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 = File.expand_path "../../tmp/tests-for-transport-#{ENV['TRANSPORT_VERSION']}-ruby-#{ENV['RUBY_VERSION']}.log", __dir__
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 14798ec

Please sign in to comment.