Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .buildkite/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export TEST_SUITE="${TEST_SUITE:=platinum}"
export PYTHON_VERSION="${PYTHON_VERSION:=3.14}"
export PYTHON_CONNECTION_CLASS="${PYTHON_CONNECTION_CLASS:=urllib3}"
export ES_YAML_TESTS_BRANCH="${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
if [[ ! -n "$ES_YAML_TESTS_BRANCH" ]]; then
export ES_YAML_TESTS_BRANCH="${BUILDKITE_BRANCH}"
fi

script_path=$(dirname $(realpath $0))
source $script_path/functions/imports.sh
Expand Down
4 changes: 2 additions & 2 deletions test_elasticsearch/test_server/test_rest_api_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,10 @@ def remove_implicit_resolver(cls, tag_to_remove):
if "ES_YAML_TESTS_BRANCH" in os.environ and os.environ["ES_YAML_TESTS_BRANCH"]:
branch_candidates.append(os.environ["ES_YAML_TESTS_BRANCH"])
git_branch = subprocess.getoutput("git branch --show-current")
if git_branch not in branch_candidates:
if git_branch and git_branch not in branch_candidates:
branch_candidates.append(git_branch)
package_version = __versionstr__.rsplit(".", 1)[0]
if package_version not in branch_candidates:
if package_version and package_version not in branch_candidates:
branch_candidates.append(package_version)
if "main" not in branch_candidates:
branch_candidates.append("main")
Expand Down