Skip to content

[ML] Skip Java ES integration tests for version-bump PRs (9.4)#3087

Merged
edsavage merged 1 commit into
elastic:9.4from
edsavage:backport/skip-es-tests-9.4
Jul 22, 2026
Merged

[ML] Skip Java ES integration tests for version-bump PRs (9.4)#3087
edsavage merged 1 commit into
elastic:9.4from
edsavage:backport/skip-es-tests-9.4

Conversation

@edsavage

Copy link
Copy Markdown
Contributor

Summary

Backports the ci:skip-es-tests / version-bump topic-branch detection from the minor-version-bump automation (#3064) to the 9.4 release branch.

Automated patch version-bump PRs on release branches currently run the Java ES integration test pipelines, which fail spuriously: after the bump the ES branch still references the previous ml-cpp SNAPSHOT, so the build cannot resolve the dependency (e.g. Could not find org.elasticsearch.ml:ml-cpp:9.4.4-SNAPSHOT in ml-cpp-pr-builds #2825). The PR pipeline is generated from the checked-out branch, so the skip logic must exist on each release branch that receives version bumps — it is present on main/9.5 but was missing here.

Changes (CI-only, self-contained):

  • .buildkite/ml_pipeline/config.py: add skip_version_bump_pr_ci (set by the ci:skip-es-tests label or a ci/ml-cpp-version-bump-* / ci/ml-cpp-minor-freeze-main-* topic branch).
  • .buildkite/pipeline.json.py: gate the ES-test upload steps on not config.skip_version_bump_pr_ci.

Test plan

  • pipeline.json.py generator: normal PR build keeps all ES-test steps; a version-bump branch (or the ci:skip-es-tests label) produces zero ES-test steps.
  • Confirm on a real version-bump PR against 9.4 that the Java ES IT steps no longer appear.

Made with Cursor

Backport the ci:skip-es-tests / version-bump topic-branch detection from the
minor-version-bump automation (elastic#3064) so automated patch version-bump PRs on
this release branch skip the Java ES integration test pipelines. These tests
cannot resolve the ml-cpp SNAPSHOT dependency after a version bump (the ES
branch still references the previous patch), so they fail spuriously on what
are metadata-only changes.

The PR pipeline is generated from the checked-out branch, so this gating must
exist on each release branch that receives automated version bumps.

Co-authored-by: Cursor <cursoragent@cursor.com>
@edsavage
edsavage merged commit 79b5298 into elastic:9.4 Jul 22, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants