Skip to content

[9.4] [ML] Automate patch version bump in CI pipeline (#3030)#3061

Open
edsavage wants to merge 1 commit into
elastic:9.4from
edsavage:backport/9.4/pr-3030
Open

[9.4] [ML] Automate patch version bump in CI pipeline (#3030)#3061
edsavage wants to merge 1 commit into
elastic:9.4from
edsavage:backport/9.4/pr-3030

Conversation

@edsavage

@edsavage edsavage commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #3030 to the 9.4 branch.

Automates patch elasticsearchVersion bumps for ml-cpp via the ml-cpp-version-bump Buildkite pipeline: validate parameters, optionally run the bump (topic branch + GitHub PR + merge), notify Slack, then wait for DRA artifacts.

Test plan

  • CI passes on 9.4 branch
  • dev-tools pytest checks pass

Made with Cursor

Replace the ml-cpp-version-bump stub with a two-phase Buildkite flow.

Phase 1 (job-version-bump.json.py): validate_version_bump_params.sh on Wolfi
(patch-only rules; optional git fetch re-check when enabled), then
version_bump_upload_phase2.sh uploads phase 2 only when work remains (step
conditionals cannot rely on build meta-data).

Phase 2 (job-version-bump-phase2.json.py): bump_version.sh bumps
elasticsearchVersion on a ci/ml-cpp-version-bump-* topic branch, pushes,
opens a PR via GitHub CLI (ensure_github_cli.sh, create_github_pull_request.sh),
defaults to gh pr merge --auto --squash, optional immediate merge and
VERSION_BUMP_MERGE_ADMIN; records meta-data for no-op and PR URL. Slack step
(send_slack_version_bump_notification.sh) uses Wolfi and step notify. DRA wait
(wait_version_bump_dra.py) skips on DRY_RUN or when validation/bump report no
change.

Adds dev-tools/unittest for validation and pipeline JSON. Does not modify
.backportrc.json (reserved for future release automation). Minor version bumps
stay a follow-up change.

Co-authored-by: Cursor <cursoragent@cursor.com>
@edsavage edsavage added >build >non-issue :ml backport auto-backport Automatically merge backport PRs when CI passes v9.4.1 labels Jul 1, 2026
@prodsecmachine

prodsecmachine commented Jul 1, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@edsavage edsavage enabled auto-merge (squash) July 1, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically merge backport PRs when CI passes backport >build :ml >non-issue v9.4.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants