From dcfd73b9c251718bfae4b99aac4a64de421a9eda Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Thu, 20 Nov 2025 12:48:46 +0000 Subject: [PATCH] Ignore buildkite branch when not in a PR (#3180) (cherry picked from commit 96be7a23516472aa067a113f35ec073b14aafa3a) --- test_elasticsearch/test_server/test_rest_api_spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_elasticsearch/test_server/test_rest_api_spec.py b/test_elasticsearch/test_server/test_rest_api_spec.py index 3618864e9..1fd52e926 100644 --- a/test_elasticsearch/test_server/test_rest_api_spec.py +++ b/test_elasticsearch/test_server/test_rest_api_spec.py @@ -500,7 +500,7 @@ def remove_implicit_resolver(cls, tag_to_remove): http = urllib3.PoolManager(retries=urllib3.Retry(total=10)) branch_candidates = [] - if "ES_YAML_TESTS_BRANCH" in os.environ: + 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: