Skip to content

[ML] Manual test: skip ES ITs by branch name#3065

Closed
edsavage wants to merge 13 commits into
elastic:mainfrom
edsavage:ci/ml-cpp-version-bump-manual-test-9.5.0
Closed

[ML] Manual test: skip ES ITs by branch name#3065
edsavage wants to merge 13 commits into
elastic:mainfrom
edsavage:ci/ml-cpp-version-bump-manual-test-9.5.0

Conversation

@edsavage

@edsavage edsavage commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Temporary PR to verify ci:skip-es-tests branch detection. Do not merge.

edsavage and others added 11 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>
@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.

edsavage and others added 2 commits July 3, 2026 13:29
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>
@edsavage

edsavage commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Manual verification complete — closing as planned.

Buildkite #2728 confirmed topic-branch detection skips Java ES ITs (0 ES upload / Java steps) while native CI still runs on all platforms. Fixes are in #3064.

@edsavage edsavage closed this Jul 3, 2026
@edsavage edsavage deleted the ci/ml-cpp-version-bump-manual-test-9.5.0 branch July 3, 2026 02:45
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