Skip to content

Commit 656b6f3

Browse files
committed
[CI] Updates ES_YAML_TESTS_BRANCH to 9.0
1 parent 505c4f1 commit 656b6f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.buildkite/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ steps:
2929
env:
3030
RUBY_VERSION: "{{ matrix.ruby }}"
3131
STACK_VERSION: 9.0.0-SNAPSHOT
32-
ES_YAML_TESTS_BRANCH: main
32+
ES_YAML_TESTS_BRANCH: '9.0'
3333
TRANSPORT_VERSION: "{{ matrix.transport }}"
3434
RUBY_SOURCE: "{{ matrix.ruby_source }}"
3535
TEST_SUITE: "platinum"
@@ -62,7 +62,7 @@ steps:
6262
RUBY_VERSION: "3.4"
6363
RUBY_SOURCE: "ruby"
6464
TEST_SUITE: serverless
65-
ES_YAML_TESTS_BRANCH: main
65+
ES_YAML_TESTS_BRANCH: '9.0'
6666
QUIET: false
6767
command: ./.buildkite/run-yaml-tests.sh
6868
artifact_paths: "elasticsearch-api/tmp/*"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def serverless?
8181

8282
# If we're running in a release branch, download the corresponding branch for tests
8383
current_branch = `git rev-parse --abbrev-ref HEAD`.strip
84-
branch = current_branch.match(/[0-9]\.[0-9]+/)&.[](0) || ENV['ES_YAML_TESTS_BRANCH'] || nil
84+
branch = ENV['ES_YAML_TESTS_BRANCH'] || current_branch.match(/[0-9]\.[0-9]+/)&.[](0) || nil
8585
Elasticsearch::Tests::Downloader::run(tests_path, branch)
8686

8787
runner = Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger)

0 commit comments

Comments
 (0)