Skip to content

[ML] Manual test: skip version bump PR CI extras#3066

Draft
edsavage wants to merge 14 commits into
elastic:mainfrom
edsavage:ci/ml-cpp-version-bump-manual-test-9.5.1
Draft

[ML] Manual test: skip version bump PR CI extras#3066
edsavage wants to merge 14 commits into
elastic:mainfrom
edsavage:ci/ml-cpp-version-bump-manual-test-9.5.1

Conversation

@edsavage

@edsavage edsavage commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Temporary draft PR to verify version-bump topic branch detection skips extra PR CI on Buildkite:

  • Java ES integration tests (x86_64 + aarch64 + inference)
  • Linux x86_64 RelWithDebInfo (debug) build and test

No ci:skip-es-tests label — branch name alone should trigger the skip.

Do not merge. Close after Buildkite confirms expected steps are omitted.

Related: #3064

Made with Cursor

edsavage and others added 14 commits July 2, 2026 12:52
Extend the ml-cpp-version-bump pipeline for WORKFLOW=minor (feature freeze):
create the release branch from main via direct ref push, bump main to the
derived next minor via PR (gradle.properties + .backportrc.json), then wait
for DRA artifacts on main and the new release branch.

Co-authored-by: Cursor <cursoragent@cursor.com>
Ignore GITHUB_TOKEN so a stale shell export does not override an interactive
gh login session during local version bump testing. CI continues to use
VAULT_GITHUB_TOKEN when gh is not pre-authenticated.

Co-authored-by: Cursor <cursoragent@cursor.com>
Allow BRANCH=testing-MAJOR.MINOR for manual Buildkite runs: version rules
strip the prefix while git ops use the full ref, and main bump plus DRA wait
are skipped so sandbox testing does not touch production branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace exec-in-pipeline with if/else so WORKFLOW=minor only uploads the
minor follow-up steps once, avoiding duplicate Buildkite step keys.

Co-authored-by: Cursor <cursoragent@cursor.com>
Define version_bump_set_main_bump_changed before the testing-* early exit
so WORKFLOW=minor sandbox runs exit 0 instead of command-not-found.

Co-authored-by: Cursor <cursoragent@cursor.com>
Emit branch and PR lines as separate indented heredoc lines so the
uploaded notify pipeline parses when main bump is skipped on sandbox runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Buildkite executes each command array element as a separate shell line;
splitting python3 and the script path started an interactive REPL and
blocked the fetch-dra-artifacts step until timeout.

Co-authored-by: Cursor <cursoragent@cursor.com>
Nothing uploads this script since elastic#3030 moved version-bump Slack notify to
send_slack_version_bump_notification.sh in phase 2.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove duplicated helpers from bump_version.sh and validate_version_bump_params.sh so all shared functions live in one place.

Co-authored-by: Cursor <cursoragent@cursor.com>
Tag bump PRs with ci:skip-es-tests and omit Java integration test pipeline
uploads when that label or version-bump topic branch names are detected.

Co-authored-by: Cursor <cursoragent@cursor.com>
Buildkite uses author+branch/with/slashes for fork PRs; only split on the
first '+' when '/' is present. Also consult GITHUB_PR_BRANCH from the PR bot.

Co-authored-by: Cursor <cursoragent@cursor.com>
Subprocess tests must not inherit GITHUB_PR_BRANCH/BUILDKITE_BRANCH from
the agent when asserting default ES IT scheduling behaviour.

Co-authored-by: Cursor <cursoragent@cursor.com>
Reuse ci:skip-es-tests / version-bump branch detection to omit the extra
Linux debug build and test steps on metadata-only bump PRs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@prodsecmachine

prodsecmachine commented Jul 3, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants