11# This file is auto-generated. See .buildkite/pipelines/periodic.template.yml
2+ # Smart Retries Configuration
3+ # SMART_RETRIES=true enables intelligent test filtering on retry attempts.
4+ # The pre-command hook fetches failed test history from Develocity API and
5+ # the InternalTestRerunPlugin filters test execution to only run previously failed tests.
6+ #
7+ # Retry Strategy:
8+ # - exit_status "-1": Agent/infrastructure failures (3 retries)
9+ # - signal_reason agent_stop: Agent stops (3 retries)
10+ # - exit_status "1": Test/build failures (1 retry with smart filtering)
11+ #
12+ # Note: exit_status "1" retries all failures including configuration errors.
13+ # Future improvement: Implement distinct exit codes for different failure types.
214env :
315 SMART_RETRIES : " true"
416steps :
@@ -508,6 +520,27 @@ steps:
508520 - exit_status : " 1"
509521 limit : 1
510522
523+ - label : 9.4.0 / bwc
524+ command : .ci/scripts/run-gradle.sh --continue -Dbwc.checkout.align=true v9.4.0#bwcTest
525+ timeout_in_minutes : 300
526+ agents :
527+ provider : gcp
528+ image : family/elasticsearch-ubuntu-2404
529+ machineType : n1-standard-32
530+ buildDirectory : /dev/shm/bk
531+ preemptible : true
532+ env :
533+ BWC_VERSION : 9.4.0
534+ retry :
535+ automatic :
536+ - exit_status : " -1"
537+ limit : 3
538+ signal_reason : none
539+ - signal_reason : agent_stop
540+ limit : 3
541+ - exit_status : " 1"
542+ limit : 1
543+
511544 - label : concurrent-search-tests
512545 command : .ci/scripts/run-gradle.sh --continue -Dbwc.checkout.align=true -Dtests.jvm.argline=-Des.concurrent_search=true -Des.concurrent_search=true functionalTests
513546 timeout_in_minutes : 420
@@ -581,6 +614,10 @@ steps:
581614 limit : 3
582615 - exit_status : " 1"
583616 limit : 1
617+ manual :
618+ allowed : true
619+ permit_on_passed : false
620+ reason : " Retry with smart test selection if desired"
584621 - label : " {{matrix.ES_RUNTIME_JAVA}} / {{matrix.BWC_VERSION}} / java-fips-matrix-bwc"
585622 command : .ci/scripts/run-gradle.sh --continue -Dbwc.checkout.align=true -Dtests.fips.enabled=true v$$BWC_VERSION#bwcTest
586623 timeout_in_minutes : 300
@@ -597,7 +634,19 @@ steps:
597634 env :
598635 ES_RUNTIME_JAVA : " {{matrix.ES_RUNTIME_JAVA}}"
599636 BWC_VERSION : " {{matrix.BWC_VERSION}}"
600-
637+ retry :
638+ automatic :
639+ - exit_status : " -1"
640+ limit : 3
641+ signal_reason : none
642+ - signal_reason : agent_stop
643+ limit : 3
644+ - exit_status : " 1"
645+ limit : 1
646+ manual :
647+ allowed : true
648+ permit_on_passed : false
649+ reason : " Retry with smart test selection if desired"
601650 - group : java-matrix
602651 steps :
603652 - label : " {{matrix.ES_RUNTIME_JAVA}} / {{matrix.GRADLE_TASK}} / java-matrix"
@@ -624,15 +673,7 @@ steps:
624673 env :
625674 ES_RUNTIME_JAVA : " {{matrix.ES_RUNTIME_JAVA}}"
626675 GRADLE_TASK : " {{matrix.GRADLE_TASK}}"
627- retry :
628- automatic :
629- - exit_status : " -1"
630- limit : 3
631- signal_reason : none
632- - signal_reason : agent_stop
633- limit : 3
634- - exit_status : " 1"
635- limit : 1
676+
636677 - label : " {{matrix.ES_RUNTIME_JAVA}} / {{matrix.BWC_VERSION}} / java-matrix-bwc"
637678 command : .ci/scripts/run-gradle.sh --continue -Dbwc.checkout.align=true v$$BWC_VERSION#bwcTest
638679 timeout_in_minutes : 300
@@ -650,15 +691,7 @@ steps:
650691 env :
651692 ES_RUNTIME_JAVA : " {{matrix.ES_RUNTIME_JAVA}}"
652693 BWC_VERSION : " {{matrix.BWC_VERSION}}"
653- retry :
654- automatic :
655- - exit_status : " -1"
656- limit : 3
657- signal_reason : none
658- - signal_reason : agent_stop
659- limit : 3
660- - exit_status : " 1"
661- limit : 1
694+
662695 - label : release-tests
663696 command : .buildkite/scripts/release-tests.sh
664697 timeout_in_minutes : 360
@@ -791,15 +824,7 @@ steps:
791824 env :
792825 ES_VERSION : " {{matrix.ES_VERSION}}"
793826 ES_COMMIT : " {{matrix.ES_COMMIT}}"
794- retry :
795- automatic :
796- - exit_status : " -1"
797- limit : 3
798- signal_reason : none
799- - signal_reason : agent_stop
800- limit : 3
801- - exit_status : " 1"
802- limit : 1
827+
803828 - label : Upload Snyk Dependency Graph
804829 command : .ci/scripts/run-gradle.sh uploadSnykDependencyGraph -PsnykTargetReference=$BUILDKITE_BRANCH
805830 env :
0 commit comments