Skip to content

[9.4] (backport #15433) ci(ff): support feature freeze automation - #17303

Merged
fr4nc1sc0-r4m0n merged 13 commits into
9.4from
mergify/bp/9.4/pr-15433
Oct 29, 2026
Merged

fr4nc1sc0-r4m0n merged 13 commits into
9.4from
mergify/bp/9.4/pr-15433

Conversation

@mergify

@mergify mergify Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Migrates Elastic Agent release automation from Makefile/vault-bot scripts to mage under dev-tools/mage/release/, aligned with elastic/beats#51831 and former elastic-agent.mak outputs.

Release tooling lives in a nested Go module so go-git / go-github stay out of the root go.mod / NOTICE.txt. Root mage targets invoke go run -C dev-tools/mage/release ./cmd/agent-release ….

  • mage release:runMajorMinor: push the release branch and open 3 merge-ordered PRs
  • mage release:runPatch: open 2 merge-ordered PRs on the release branch (docs before build; next-patch version + Helm/K8s manifests after release — no Beats-style test-env)
  • mage release:ensureIssueTracker: create/update [RELEASE <CURRENT_RELEASE>] Instructions & Checklist (best-effort / non-blocking when run from the workflows)
  • CURRENT_RELEASE must already match version/version.go on BASE_BRANCH (FF) or the release branch (patch); fail fast on mismatch
  • Each PR gets merge-timing labels (merge:1-ff-day, merge:2-after-branch, merge:4-after-release for FF; merge:1-before-build / merge:4-after-release for patch); missing merge:* labels are created automatically
  • Idempotent re-runs (reuse branches, skip empty commits, reuse open/related PRs, re-apply labels)

Feature freeze — runMajorMinor (3 grouped PRs)

Example: CURRENT_RELEASE=9.5.0 must already be in version/version.go on BASE_BRANCH → branch 9.5, next minor 9.6.0, next patch 9.5.1.

Step Target Branch Merge label Former outputs What changes
0 — 9.5 — branch push Direct push from main
PR-A main ff-prep-main-9.5.0 merge:1-ff-day bump-version + add-backport + update-dev-docs (make check-ci) .mergify.yml + version.go + docs/manifests → next minor
PR-B 9.5 ff-release-9.5.0 merge:2-after-branch release-branch content version + docs + mage update
PR-D 9.5 ff-prep-next-patch-9.5.1 merge:4-after-release update-version-next version.go + Helm/K8s manifests → next patch + mage update

Next-minor docs/manifests live in PR-A (agent historical vault-bot / make check-ci behavior). Beats keeps a separate after-images docs PR; agent does not.

RM merge order: push branch → PR-A on main → PR-B on release branch → PR-D on release branch (after release day).

Patch release — runPatch (2 grouped PRs)

Example: releasing 9.5.1 → CURRENT_RELEASE=9.5.1 on branch 9.5 where version.go is already 9.5.1. Next patch is 9.5.2.

Step Target Branch Merge label Former outputs What changes
PR-A 9.5 patch-release-9.5.1 merge:1-before-build docs / update-docs-version docs + manifests + :stack-version: only; no version.go bump
PR-B 9.5 ff-prep-next-patch-9.5.2 merge:4-after-release update-version-next version.go + Helm/K8s manifests → next patch + mage update

RM merge order: merge PR-A before the final release build → merge PR-B after release day.

Why is it important?

Supports feature-freeze automation as part of the broader release workflow effort. Nested-module packaging, grouped PRs, merge-timing labels, version guards, and the release checklist issue tracker match the Beats migration so RMs can see merge order at a glance without pulling tooling deps into the main module.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

None for end users. Release/CI automation for maintainers.

How to test this PR locally

CURRENT_RELEASE must be plain major.minor.patch (e.g. 9.5.0). No prerelease suffixes.

Feature freeze

export PROJECT_OWNER="your-user"
export GITHUB_TOKEN=$(gh auth token)
export DRY_RUN=true
export CURRENT_RELEASE="9.5.0"

# BASE_BRANCH version/version.go must already equal CURRENT_RELEASE
mage release:runMajorMinor

# Expect local branches:
# 9.5, ff-prep-main-9.5.0, ff-release-9.5.0,
# ff-prep-next-patch-9.5.1

Patch

export PROJECT_OWNER="your-user"
export GITHUB_TOKEN=$(gh auth token)
export DRY_RUN=true
export CURRENT_RELEASE="9.5.1"

git fetch origin 9.5:9.5
# Release branch version/version.go must already equal CURRENT_RELEASE
mage release:runPatch

# Expect local branches:
# patch-release-9.5.1, ff-prep-next-patch-9.5.2

Issue tracker only

export PROJECT_OWNER="elastic"
export PROJECT_REPO="elastic-agent"
export GITHUB_TOKEN=$(gh auth token)
export CURRENT_RELEASE="9.5.1"
mage release:ensureIssueTracker
cd dev-tools/mage/release && go test ./... -count=1

Discard workflow artifacts after review with git reset --hard HEAD / branch cleanup.

Decision needed: keep updating docs version files, or delete them?

Problem

Some documentation-related files were not updated as part of releases for a long time, so they drifted from reality. This automation now includes them in the feature-freeze / release version update flow (e.g. PR-B / patch docs updates fr4nc1sc0-r4m0n#18), which surfaces the drift — for example on a dry-run release PR, version/docs/version.asciidoc still had :stack-version: 8.8.1, and README.md still linked to main instead of the release branch.

If these files matter for docs or packaging, leaving them out of the release process will keep producing the same drift. If they are unused / obsolete, maintaining them on every release is wasted work and noise in release PRs.

Decision request

Please choose one:

  1. Update them — keep these files in the feature-freeze / release version update process so they stay aligned with each release (current behavior in this PR).
  2. Delete them — remove the unused/obsolete files (and drop them from release automation) so they stop appearing in release PRs.

Related issues

Related issue: https://github.com/elastic/observability-robots/issues/3404

Validations

Minor releases

Current (grouped) Former (elastic/elastic-agent) Role Status
fr4nc1sc0-r4m0n#17 #15424 + #15425 PR-A: next minor on main + backport rule + docs/manifests ✅
fr4nc1sc0-r4m0n#18 — (release branch content was not opened as a PR) PR-B: ff-release on release branch ✅
fr4nc1sc0-r4m0n#19 #15426 PR-D: next patch on release branch ✅

Patch releases

Aligned with former bot outputs for a patch being released (e.g. 9.4.4): docs before build; next-patch version after release.

Step Former Current Status
PR-A (docs/manifests) #15000 fr4nc1sc0-r4m0n#20 ✅
PR-D (next patch version) #14423 fr4nc1sc0-r4m0n#21 ✅

This is an automatic backport of pull request #15433 done by [Mergify](https://mergify.com).

* ci(ff): support feature freeze automation phase 1

* ci(ff): support feature freeze automation phase 2

* ci(ff): support feature freeze automation phase 3

* fix linting

* go mod tidy

* remove

* dry-run

* mergify: reorder

this should help with manipulating the YAML using the YAML golang library

* fix(release): satisfy gosec path traversal checks in release tooling

Validate and allowlist repository paths before writing release files,
and update tests to use supported relative manifest paths.

* Make release automation steps idempotent

Allow re-running release workflows without duplicate branches,
empty commits, duplicate PRs, or false version-update errors.

* fix(release): fix goimports formatting in github_test.go

* docs(release): use valid X.Y.Z version in local testing examples

Replace invalid 9.5.0-test examples with 9.6.0 and document the
required version format for local release workflow testing.

* Keep unstaged changes when creating release branch

Use go-git CheckoutOptions.Keep so major/minor release workflow can
prepare version files before checking out the release branch.

* Stage all worktree changes without recursing into submodules

Replace go-git AddWithOptions(All: true) with per-path staging from
worktree status so CommitAll includes every changed path (including
submodule gitlinks like beats) without reading submodule directories.

* Use GITHUB_TOKEN for authenticated git push in release automation

Match the Beats release automation by requiring GITHUB_TOKEN for push
operations and authenticating via HTTP basic auth with an explicit
branch refspec.

* Align release automation with beats package structure.

Split config, workflows, and mergify into separate files, create release
branches from main via EnsureBranchFrom, and match beats idempotent git
and GitHub PR handling.

* Update beats submodule

* Sync submodules when checking out release branches

go-git branch checkout does not reset submodule working trees, so a
locally advanced beats checkout blocks release branch creation. Run
git submodule update before and after checkout to keep the worktree
clean.

* fix(release): resolve lint failures in PR 15433

Use exec.CommandContext for noctx compliance and restore .mergify.yml
after removing unresolved merge conflict markers.

* Expand release doc updates to match upstream feature-freeze scope

Update Helm charts, kustomize overlays, rendered examples, and
integration testdata in addition to flat K8s manifests and mergify.

* Align release PR labels with upstream version-bump PRs

Use backport-skip and skip-changelog instead of release and Team:Automation.

* fix(release): apply goimports formatting to docs helpers

Fix goimports lint failures in docs.go and docs_test.go.

* fix(release): open PR for patch releases instead of pushing to release branch

Align runPatch with ingest-dev elastic-agent.mak: create
update-docs-version-<version> from the release branch and open a PR
into that branch rather than committing directly on it.

* fix(release): split patch workflow into version and docs PRs

Open update-version-next and update-docs-version PRs separately,
matching upstream elastic-agent patch releases. Add UpdatePatchDocs
for version/docs/version.asciidoc only.

* Align mage release automation with grouped PRs and merge labels.

Match Beats feature-freeze/patch flows for elastic-agent.mak outputs:
four FF PRs and three patch PRs with merge-timing labels.

* Collapse patch before-build PRs into a single merge-ordered PR.

Align runPatch with Beats grouping: one PR per merge step
(merge:1-before-build then merge:4-after-release).

* Port release automation to nested module (Beats #51831)

Isolate release tooling deps in a nested Go module and agent-release CLI.
Add issue tracker, FindRelatedPR summaries, merge-base git checks, version
guards, and docs-only patch PR-A aligned with Beats feature-freeze flow.

* Retry submodule sync on index.lock during release branch switches.

Rapid CheckoutBranch calls were racing on beats' index.lock; sync only after checkout (with Force) and retry transient lock errors.

* Keep FF prep-main PR-A to mergify and version only.

Match Beats: leave docs and deployment manifests for PR-C so the
feature-freeze main PRs no longer overlap.

* ci(ff): sync Helm/K8s manifests in prepare-next-release PR-D

Match former ingest-dev prepare-next-release + make check-ci by
updating deployment manifests when bumping to the next patch.

* Fold next-minor docs/manifests into FF PR-A.

Agent historically shipped these with the main bump PR; drop the separate
after-images docs PR to cut feature-freeze from four PRs to three.

* ci: wire version-bump pipeline to mage release targets

Replace the TODO placeholder with WORKFLOW-gated steps that run
mage release:runMajorMinor and release:runPatch.

* ci: install mage before version-bump release targets

* ci(ff): integrate release automation into root mage settings

Fold the nested release module into the root module and load release
config through Settings, with mage targets calling package functions.

* fix: satisfy staticcheck QF1012 in release issue body builders

* fix(release): address review feedback on token, labels, and dead code

Use ReleaseConfig.GitHubToken for git push, fail when PR labels cannot be
applied, and remove unused CreateReleaseBranch/CreateReleasePR helpers.

* fix(release): normalize Windows paths and refresh go.sum for check-ci

* refactor(release): use pkg/version instead of local semver helpers

Parse CURRENT_RELEASE once at load time and derive release fields from
ParsedSemVer. Keep on-disk ReadAgentVersion for post-checkout guards.

* chore: regenerate NOTICE.txt and NOTICE-fips.txt

* chore: regenerate NOTICE with $GOMODCACHE paths

Replace Cursor sandbox absolute module-cache paths so check-ci
check-no-changes passes after make notice.

---------

Co-authored-by: Victor Martinez <VictorMartinezRubio@gmail.com>
(cherry picked from commit 06f8782)

# Conflicts:
#	NOTICE-fips.txt
#	NOTICE.txt
#	go.mod
#	go.sum
@mergify
mergify Bot requested review from a team as code owners October 20, 2026 10:26
@mergify
mergify Bot removed the request for review from a team October 20, 2026 10:26
@mergify mergify Bot added backport conflicts There is a conflict in the backported pull request labels Oct 20, 2026
@mergify
mergify Bot requested a review from lorienhu October 20, 2026 10:26
@mergify mergify Bot added conflicts There is a conflict in the backported pull request backport labels Oct 20, 2026
@mergify

mergify Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 06f8782 has failed:

On branch mergify/bp/9.4/pr-15433
Your branch is up to date with 'origin/9.4'.

You are currently cherry-picking commit 06f8782.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   .buildkite/pipeline.version-bump.yml
	new file:   RELEASE.md
	new file:   dev-tools/mage/release/README.md
	new file:   dev-tools/mage/release/config.go
	new file:   dev-tools/mage/release/config_test.go
	new file:   dev-tools/mage/release/docs.go
	new file:   dev-tools/mage/release/docs_test.go
	new file:   dev-tools/mage/release/git.go
	new file:   dev-tools/mage/release/git_test.go
	new file:   dev-tools/mage/release/github.go
	new file:   dev-tools/mage/release/github_test.go
	new file:   dev-tools/mage/release/issue.go
	new file:   dev-tools/mage/release/issue_test.go
	new file:   dev-tools/mage/release/mergify.go
	new file:   dev-tools/mage/release/release.go
	new file:   dev-tools/mage/release/release_test.go
	new file:   dev-tools/mage/release/version.go
	new file:   dev-tools/mage/release/version_test.go
	new file:   dev-tools/mage/release/workflows.go
	new file:   dev-tools/mage/release/workflows_test.go
	new file:   dev-tools/mage/release_settings.go
	new file:   dev-tools/mage/release_settings_test.go
	modified:   dev-tools/mage/settings.go
	modified:   magefile.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   NOTICE-fips.txt
	both modified:   NOTICE.txt
	both modified:   go.mod
	both modified:   go.sum

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@mergify mergify Bot mentioned this pull request Oct 20, 2026
4 of 8 tasks
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR introduces new Go/build pipeline dependencies, but overall risk is high because go.mod/go.sum contain unresolved merge markers that currently break module parsing.

Go dependencies: multiple updates (notably github.com/go-git/go-git/v5 none → v5.17.0, github.com/google/go-github/v68 none → v68.0.0)

Ecosystem: Go

Check Result
Breaking changes ⚠️ Found (in google/go-github release notes), but not used by current code paths; see compatibility notes
Testable in PR ✅ Yes (Go tooling runs in PR context); currently fails because go.mod is invalid
Changelog highlights (old → new)
  • go-git v5.17.0: includes a security-related module update and file/storage/status improvements.
  • go-github v68.0.0: upstream notes list breaking API removals (Project (classic) support and Commit.Stats field).
  • No specific CVE IDs were listed in the fetched release notes.
Usage in this repository
  • github.com/go-git/go-git/v5 used in dev-tools/mage/release/git.go (repo open/checkout/commit/push helpers).
  • github.com/google/go-github/v68/github used in:
    • dev-tools/mage/release/github.go
    • dev-tools/mage/release/workflows.go
    • related tests under dev-tools/mage/release/*_test.go
  • Consumed APIs are PR/issue/search/repository APIs; I did not find usage of removed Project classic APIs or Commit.Stats.
  • Blocking finding: unresolved conflict markers are present in go.mod and go.sum (<<<<<<<, =======, >>>>>>>), and go list -m fails with parse errors.
Compatibility assessment
  • Functional compatibility of the newly introduced APIs looks acceptable for current usage.
  • However, repository compatibility is currently broken by unresolved merge conflicts in module files, which prevents normal Go module/tooling operations.
  • This is a higher-priority blocker than upstream dependency behavior changes.

Buildkite pipeline pins: elastic/vault-github-token none → v0.2.1, image pins using :latest

Ecosystem: CI / container / snapshot image pins

Check Result
Breaking changes ✅ None found in local usage
Testable in PR ⚠️ No — Buildkite pipeline behavior is not PR-self-testable in GitHub Actions context
Pin format ⚠️ Mutable tag (#v0.2.1) and mutable image tags (:latest)
Changelog highlights (old → new)
  • Upstream release/tag metadata for elastic/vault-github-token@v0.2.1 was unavailable from accessible GitHub release/tag endpoints in this environment.
  • Local diff confirms pin introduction only.
Usage in this repository
  • .buildkite/pipeline.version-bump.yml now uses plugin elastic/vault-github-token#v0.2.1 in version-bump steps.
  • Same file introduces IMAGE_BEATS_WITH_HOOKS_LATEST and uses ...:latest image tags.
Compatibility assessment
  • Pipeline changes are scoped to release automation CI.
  • Mutable tag/image pinning increases supply-chain drift risk versus SHA/digest pinning.

Labels Applied

No labels applied — oblt-aw/ai/merge-ready not applied due high overall risk (invalid Go module files with unresolved conflict markers).


What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Finish the Mergify cherry-pick of #15433 onto 9.4 by restoring a clean
module graph and adding go-git, go-github, and oauth2 for the release tooling.
@github-actions

Copy link
Copy Markdown
Contributor

Dependency review finished without posting an analysis comment.

If you expected a review, push a new commit to this pull request (or close and reopen it) to try again.

Workflow run: https://github.com/elastic/elastic-agent/actions/runs/39412440733

@fr4nc1sc0-r4m0n

Copy link
Copy Markdown
Contributor

/test

With replace => ./beats, go mod tidy does not keep remote beats sum
entries. Removing them so check-ci stays clean.
@github-actions

This comment has been minimized.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR introduces new Go dependencies for release automation (go-git, go-github, and direct x/oauth2 usage). Overall risk is low: changes are tooling/release-workflow scoped, and I found no break against repository usage.

Dependency 1: github.com/go-git/go-git/v5 (not present → v5.17.0)

Ecosystem: Go

Check Result
Breaking changes ✅ None found for current usage
Testable in PR ✅ Yes (tooling code + package tests in this PR; CI has pull_request workflows)
Changelog highlights (added → v5.17.0)

Upstream v5.17.0 notes include performance and correctness updates, plus stricter extension checks and a storage safety fix. It also references a security-related dependency update in upstream release maintenance. No CVE/GHSA was explicitly listed in the release body.

Usage in this repository

Used in dev-tools/mage/release/git.go for repository operations (PlainOpen, ref/worktree checkout, commit, branch handling, push/submodule sync). Related tests: dev-tools/mage/release/git_test.go.

Compatibility assessment

Current usage relies on core git APIs that remain present in v5.17.0. No major-version import-path change (still /v5). Low compatibility risk for this repo’s usage.

Dependency 2: github.com/google/go-github/v68 (not present → v68.0.0)

Ecosystem: Go

Check Result
Breaking changes ✅ None found for current usage
Testable in PR ✅ Yes (tooling code + package tests in this PR; CI has pull_request workflows)
Changelog highlights (added → v68.0.0)

Upstream release notes mention breaking API changes (removal of Project classic support and Commit.Stats field). Other changes are API additions/fixes. No explicit CVE/GHSA entry was identified in the release notes.

Usage in this repository

Used in release automation tooling: dev-tools/mage/release/github.go, issue.go, workflows.go and tests. Calls are focused on PR/issue/search/list operations and label management.

Compatibility assessment

The removed upstream surfaces (Project classic, Commit.Stats) are not used by this repo code paths. Current calls (PR/issue/search APIs) are compatible with v68.

Dependency 3: golang.org/x/oauth2 (v0.37.0 indirect → v0.37.0 direct)

Ecosystem: Go

Check Result
Breaking changes ✅ None found
Testable in PR ✅ Yes (compile-time + tests in touched package)
Changelog highlights (scope change)

No version bump occurred in this PR; dependency was promoted from indirect to direct due explicit imports in release tooling (dev-tools/mage/release/github.go) while existing usage also remains in internal/edot/.../gcp_verifier.go.

Usage in this repository

Used for token-backed HTTP client creation in GitHub automation (oauth2.StaticTokenSource, oauth2.NewClient) and existing GCP verifier flow.

Compatibility assessment

Because version is unchanged, this is mainly dependency graph bookkeeping with explicit direct usage. No new compatibility concern found.

Labels Applied

  • oblt-aw/ai/merge-ready — overall risk is low, no breaking changes for actual repo usage, and impact is release tooling/CI automation rather than runtime product behavior.

What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@github-actions

Copy link
Copy Markdown
Contributor

Automerge skipped

Automerge skipped this pull request because the changed files do not match any configured dependency collection.

If this update should be automerged, ask a maintainer to add or adjust a collection, or merge the pull request manually.

See Opt in or opt out for how to enable or disable Automerge collections on the Control Plane Dashboard.

Collections currently enabled for automerge: github-actions, pre-commit, update-beats, vm-images, package-version

Changed files considered:

  • .buildkite/pipeline.version-bump.yml

  • NOTICE-fips.txt

  • NOTICE.txt

  • RELEASE.md

  • dev-tools/mage/release/README.md

  • dev-tools/mage/release/config.go

  • dev-tools/mage/release/config_test.go

  • dev-tools/mage/release/docs.go

  • dev-tools/mage/release/docs_test.go

  • dev-tools/mage/release/git.go

  • dev-tools/mage/release/git_test.go

  • dev-tools/mage/release/github.go

  • dev-tools/mage/release/github_test.go

  • dev-tools/mage/release/issue.go

  • dev-tools/mage/release/issue_test.go

  • dev-tools/mage/release/mergify.go

  • dev-tools/mage/release/release.go

  • dev-tools/mage/release/release_test.go

  • dev-tools/mage/release/version.go

  • dev-tools/mage/release/version_test.go

  • …and 8 more

@fr4nc1sc0-r4m0n

Copy link
Copy Markdown
Contributor

/test

@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n enabled auto-merge (squash) October 20, 2026 11:56
Cherry-picked NOTICE files still contained merge conflict markers.
Regenerate with mage notice so check-ci stays clean.
* Fix version bump workflows with mirror-backed Git checkouts

* Support mirror-backed repositories in release Git helpers

* Follow Go style in release repository helpers

* Keep alternate-object regression test focused

* Use named subtests for alternate object storage

* Clarify alternate object regression subtests

* go mod tidy

---------

Co-authored-by: Francisco Ramon <francisco.ramon@elastic.co>
(cherry picked from commit d9d5c16)
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR introduces new Go release-tooling dependencies and Buildkite CI pins (no production runtime dependency bumps). Overall risk is low-to-moderate.

Dependency: github.com/go-git/go-git/v5 none → v5.17.0

Ecosystem: Go

Check Result
Breaking changes ✅ None found in this repo usage
Testable in PR ✅ Yes (release module has unit tests in this PR)
Changelog highlights (v5.16.5 → v5.17.0)
  • Upstream release includes a security-oriented dependency update and filesystem/storage fixes.
  • Performance/strictness changes in repository/worktree handling.
  • No changelog item indicates required API migration for the git.Repository APIs used here.
Usage in this repository
  • Imported in dev-tools/mage/release/git.go:17-23 and tests in dev-tools/mage/release/git_test.go.
  • Used for branch checkout/creation, commit, push, and merge-base checks for release automation.
Compatibility assessment
  • The code uses core repo/worktree operations, not deprecated/removed symbols.
  • Security-related upstream changes reduce risk for git-object handling rather than increasing attack surface in this usage.

Dependency: github.com/go-git/go-billy/v5 none → v5.8.0

Ecosystem: Go

Check Result
Breaking changes ✅ None found in this repo usage
Testable in PR ✅ Yes
Changelog highlights (v5.7.0 → v5.8.0)
  • Upstream notes include a security dependency refresh (x/net) and chmod behavior consistency improvements.
  • No incompatible API changes noted for osfs usage.
Usage in this repository
  • Imported in dev-tools/mage/release/git.go:16 (osfs.New) for alternate object storage access.
Compatibility assessment
  • Usage is narrow and internal to release tooling; no behavior mismatch detected from release notes.

Dependency: github.com/google/go-github/v68 none → v68.0.0

Ecosystem: Go

Check Result
Breaking changes ✅ None found in consumed interfaces
Testable in PR ✅ Yes
Changelog highlights (v68.0.0 release notes)
  • Upstream reports breaking changes for Project (classic) removal and Commit.Stats field removal.
  • Also includes API additions and maintenance updates.
  • No CVE/GHSA entry in these notes.
Usage in this repository
  • Imported in dev-tools/mage/release/github.go:15, issue.go, workflows.go, and related tests.
  • Calls PR/issue/label/repository APIs (PullRequests, Issues, Repositories, Search) in dev-tools/mage/release/github.go.
Compatibility assessment
  • This code does not use Project (classic) APIs or Commit.Stats.
  • Breaking items in v68 do not intersect current usage; compatibility risk remains low.

Dependency: golang.org/x/oauth2 v0.37.0 (indirect) → v0.37.0 (direct)

Ecosystem: Go

Check Result
Breaking changes ✅ None (no version change)
Testable in PR ✅ Yes
Changelog highlights
  • No version bump in this PR; this is a directness change only.
Usage in this repository
  • Imported in dev-tools/mage/release/github.go:16 for GitHub token HTTP client setup.
Compatibility assessment
  • Since version did not change, no new compatibility or CVE surface introduced by this line-item.

Dependency: elastic/vault-github-token Buildkite plugin none → v0.2.1

Ecosystem: other (Buildkite plugin SHA-or-tag pin)

Check Result
Breaking changes ✅ None found in current usage
Testable in PR ⚠️ No — Buildkite pipeline behavior is not a pull_request workflow trigger
Pin format ⚠️ Mutable tag (#v0.2.1)
Changelog highlights
  • Upstream release-note body was unavailable through GitHub MCP for this plugin repository/tag from this environment.
  • Local diff confirms only plugin introduction at v0.2.1 in .buildkite/pipeline.version-bump.yml:46,64.
Usage in this repository
  • Used in .buildkite/pipeline.version-bump.yml minor/patch steps to fetch GitHub token before running mage release:* commands.
Compatibility assessment
  • CI-only scope; no production runtime impact.
  • Mutable tag is a supply-chain stability risk relative to SHA pinning, but bounded to release automation pipeline execution.

Dependency: Buildkite image pins (none → :latest)

Ecosystem: CI / container / snapshot image pins

Check Result
Breaking changes ✅ None found in app/runtime scope
Testable in PR ⚠️ No — pipeline gating is manual/block-driven
Changelog highlights
  • Added IMAGE_BEATS_WITH_HOOKS_LATEST and wolfi-build-essential-release-eng:latest references in .buildkite/pipeline.version-bump.yml.
  • No image digest pin, so runtime contents can drift over time.
Usage in this repository
  • .buildkite/pipeline.version-bump.yml:22,39,56,85.
Compatibility assessment
  • CI/release automation only; no direct customer-facing runtime dependency change.
  • Main residual risk is reproducibility drift from latest tags, not immediate API breakage.

Labels Applied

  • oblt-aw/ai/merge-ready — applied (overall risk low-to-moderate; no breaking impact on consumed interfaces; changes are CI/release-tooling scoped).

What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@mergify

mergify Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b mergify/bp/9.4/pr-15433 upstream/mergify/bp/9.4/pr-15433
git merge upstream/9.4
git push upstream mergify/bp/9.4/pr-15433

Buildkite clones over SSH while Push uses http.BasicAuth with
GITHUB_TOKEN; go-git rejects that mix as invalid auth method.
Rewrite GitHub SSH remotes to HTTPS before pushing.
@fr4nc1sc0-r4m0n

Copy link
Copy Markdown
Contributor

Pushed the HTTPS remote push fix from #17385 onto this branch so version-bump automation here includes the Buildkite SSH/GITHUB_TOKEN auth fix. Closing the conflicting standalone backports of #17385 that targeted the release branch without this package.

@mergify

mergify Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

This pull request has not been merged yet. Could you please review and merge it @fr4nc1sc0-r4m0n? 🙏

RunMajorMinorRelease now only opens minor/FF PRs. Next-patch bumps stay
in RunPatchRelease so patch timing is independent of feature freeze.

(cherry picked from commit 865b05a)
@fr4nc1sc0-r4m0n

Copy link
Copy Markdown
Contributor

Folded in #17540: RunMajorMinorRelease no longer opens next-patch PRs; those stay in RunPatchRelease only.

The incomplete Mergify backports of #17540 for this branch were closed in favor of landing the fix here (where the release mage package already exists).

Validated locally: go test ./dev-tools/mage/release/ -count=1

Resolve go.mod/go.sum conflicts by taking the 9.4 module graph and
re-adding go-git/go-github for the release mage tooling, then tidy and
regenerate NOTICE.
@fr4nc1sc0-r4m0n

Copy link
Copy Markdown
Contributor

Resolved merge conflicts with the base branch (go.mod / go.sum): kept the base module graph, re-added go-git/go-github for the release mage tooling, ran go mod tidy, and regenerated NOTICE.

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n removed the conflicts There is a conflict in the backported pull request label Oct 28, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR introduces new release-automation dependencies (Go modules + Buildkite pins). Overall risk is low-to-moderate: changes are CI/release-tooling scoped with no runtime agent path impact.

Go dependencies (added): go-git/go-git v5.17.0, go-git/go-billy v5.8.0, google/go-github v68.0.0 (+ transitive deps)

Ecosystem: Go

Check Result
Breaking changes ✅ None found for repository usage
Testable in PR ✅ Yes (release tooling has corresponding unit tests in this PR)
Changelog highlights (new additions)
  • go-git v5.17.0: includes storage/worktree improvements and a noted security-related module update in release notes.
  • go-billy v5.8.0: includes security-related dependency update and filesystem behavior fixes.
  • go-github v68.0.0: upstream breaking changes are mainly Project classic removal and Commit.Stats field removal.

Security/CVE view: notes indicate hardening/maintenance updates, with no evidence of increased attack surface for this repo’s usage.

Usage in this repository
  • dev-tools/mage/release/git.go uses go-git APIs for branch/ref/worktree/submodule operations.
  • dev-tools/mage/release/github.go, issue.go, workflows.go use go-github PR/issue/search/labels APIs.
  • Scope is release automation code (dev-tools/mage/release/**), not runtime agent paths.
Compatibility assessment
  • go-github breaking items do not affect used APIs here (no classic Projects API usage; no Commit.Stats reliance).
  • go-git/go-billy changes align with the file/branch operations implemented in release tooling.
  • No import-path major-version migration needed (versions are already major-suffixed in module paths).

Buildkite plugin pin added: elastic/vault-github-token#v0.2.1

Ecosystem: other (Buildkite plugin pin)

Check Result
Breaking changes ✅ None found for repository usage
Testable in PR ⚠️ No — pipeline is branch/workflow-gated in Buildkite config
Pin format ⚠️ Mutable tag
Changelog highlights (added pin)

Upstream release/tag notes were unavailable via MCP for this plugin repository/tag in this environment. Analysis is based on local diff usage only.

Usage in this repository
  • Used in .buildkite/pipeline.version-bump.yml for both minor and patch version-bump steps to obtain GitHub token.
Compatibility assessment
  • Existing repo usage already includes the same plugin/version in another Buildkite pipeline file, lowering integration risk.
  • Mutable tag is less strict than SHA pinning; acceptable here given CI-only scope, but still a supply-chain hygiene caveat.

CI/container image pins added: docker.elastic.co/...buildkite-agent-beats-ci-with-hooks:latest, docker.elastic.co/release-eng/wolfi-build-essential-release-eng:latest

Ecosystem: CI / container / snapshot image pins

Check Result
Breaking changes ✅ None found for repository usage
Testable in PR ⚠️ No — Buildkite branch/workflow-gated pipeline
Changelog highlights (added pins)

No image release-note metadata is available in this PR context. Pins are newly introduced in pipeline config and are CI-only.

Usage in this repository
  • .buildkite/pipeline.version-bump.yml uses these images for version-bump jobs and a placeholder blocked-step follow-up.
Compatibility assessment
  • Impact is constrained to release automation execution environment.
  • Use of :latest is mutable and can change behavior over time; this is the main residual risk driver.

Labels Applied

  • oblt-aw/ai/merge-ready — overall risk assessed as low-to-moderate, no breaking changes to consumed interfaces, dependency scope is CI/release tooling (non-runtime).

What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@fr4nc1sc0-r4m0n

Copy link
Copy Markdown
Contributor

/test

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR introduces release-tooling dependencies (Go + Buildkite plugin pin) with low-to-moderate overall risk; changes are CI/automation scoped and compatible with current usage.

Go release-tooling deps: (none) → github.com/go-git/go-billy/v5@v5.8.0, github.com/go-git/go-git/v5@v5.17.0, github.com/google/go-github/v68@v68.0.0

Ecosystem: Go

Check Result
Breaking changes ✅ None found for consumed APIs in this repo
Testable in PR ⚠️ Limited — used by release automation paths, not production runtime
Changelog highlights ((none) → new versions)
  • go-git v5.17.0: includes a security-related module update in release notes and performance/extension handling improvements.
  • go-billy v5.8.0: includes a security-related x/net dependency update and chmod behavior fixes.
  • go-github v68.0.0: upstream notes include breaking changes around Project (classic) and Commit.Stats; this repos new usage does not call those surfaces.

CVE/security assessment: no evidence of increased attack surface for Elastic Agent runtime; these deps are used in release tooling (dev-tools/mage/release) and reduce/preserve risk overall.

Usage in this repository
  • github.com/go-git/go-git/v5: dev-tools/mage/release/git.go:17-23, git_test.go:16-18 (repo/branch/worktree operations).
  • github.com/go-git/go-billy/v5: dev-tools/mage/release/git.go:16 (osfs backing for alternates handling).
  • github.com/google/go-github/v68: dev-tools/mage/release/github.go:15, workflows.go:11, issue.go:14 (+ tests), used for PR/issue/label/release API interactions.
Compatibility assessment
  • No Go major-path migration issue (new imports already use /v5 and /v68 correctly).
  • golang.org/x/oauth2 moved from indirect to direct at same version (v0.37.0), so no behavioral version delta.
  • Impact is constrained to release workflow automation; no production-agent import path depends on these additions.

Buildkite plugin pin: (none) → elastic/vault-github-token#v0.2.1

Ecosystem: other (Buildkite plugin pin)

Check Result
Breaking changes ✅ None found for configured usage
Testable in PR ⚠️ No — used in Buildkite version-bump pipeline path
Pin format ⚠️ Mutable tag (v0.2.1)
Changelog highlights ((none) → v0.2.1)
  • Upstream release v0.2.1 includes a bug fix: avoid failing when buildkite-agent redactor add errors.
  • No security regression indicated in release notes.
Usage in this repository
  • Added in .buildkite/pipeline.version-bump.yml:46 and :64 for release automation steps.
  • Same tag is already used in .buildkite/bk.integration.pipeline.yml:62.
Compatibility assessment
  • Plugin usage pattern is consistent with existing repository usage.
  • Mutable tag is a supply-chain tradeoff, but this is CI-only and aligns with existing repo convention.

Labels Applied

  • oblt-aw/ai/merge-ready (applied): overall low-to-moderate risk, no repo-used breaking change detected, and impact is CI/release-tooling scoped.

What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@fr4nc1sc0-r4m0n

Copy link
Copy Markdown
Contributor

/test

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR introduces new release-automation dependencies (Go libs + Buildkite plugin/image pins). Overall risk is low-to-moderate and CI/dev-tooling scoped; I applied oblt-aw/ai/merge-ready.

Dependency 1: github.com/go-git/go-git/v5 (new → v5.17.0) + github.com/go-git/go-billy/v5 (new → v5.8.0)

Ecosystem: Go

Check Result
Breaking changes ✅ None found in repo usage
Testable in PR ✅ Yes — covered by added unit tests under dev-tools/mage/release/*_test.go
Changelog highlights (new → v5.17.0 / v5.8.0)
  • go-git v5.17.0: includes a noted security-related dependency refresh and stricter extension checks; also filesystem/object handling and status performance improvements.
  • go-billy v5.8.0: includes a security-related x/net refresh and chmod behavior consistency fixes.
  • CVE-focused assessment: no explicit CVE IDs listed in release notes, but security-tagged dependency refreshes are risk-reducing for newly introduced release tooling.
Usage in this repository
  • Declared in go.mod:33-34.
  • Used in release automation code only, e.g. dev-tools/mage/release/git.go:16-23 (PlainOpen, branch/ref/worktree operations, HTTP auth transport, submodule sync helpers).
  • No production agent runtime package imports these modules.
Compatibility assessment

Current usage is standard repo/worktree/plumbing APIs and appears compatible with the introduced versions. Scope is release tooling, not runtime agent execution.

Dependency 2: github.com/google/go-github/v68 (new → v68.0.0) and direct golang.org/x/oauth2 usage

Ecosystem: Go

Check Result
Breaking changes ✅ None found in repo usage
Testable in PR ✅ Yes — release tooling has dedicated tests in this PR
Changelog highlights (new → v68.0.0)
  • Upstream v68 notes breaking removals for Project (classic) and Commit.Stats.
  • Adds/updates API surface around org/repo role and custom properties, plus response-handling fixes.
  • CVE-focused assessment: no CVE/GHSA IDs called out in this release; no security-regression signals in consumed client paths.
Usage in this repository
  • Declared in go.mod:40 and go.mod:85.
  • Used in release automation only: dev-tools/mage/release/github.go:15-16, issue.go:14, workflows.go:11, tests in github_test.go/issue_test.go.
  • Consumed APIs are PR/list/search/label/reviewer operations; no Project classic or Commit.Stats usage detected.
Compatibility assessment

The documented upstream breaking changes do not overlap with this repos consumed API surface, so compatibility risk is low for current usage.

Dependency 3: Buildkite plugin/image pins (new)

Ecosystem: other (CI/container pinning)

Check Result
Breaking changes ✅ None found in repo usage
Testable in PR ⚠️ Limited — pipeline execution depends on Buildkite runtime context
Pin format ⚠️ Mutable tag (elastic/vault-github-token#v0.2.1, :latest images)
Changelog highlights (new pins)
  • Added plugin pin in .buildkite/pipeline.version-bump.yml:46,64.
  • Added image/env pins in .buildkite/pipeline.version-bump.yml:22,85.
  • Upstream release-note body for these specific pins was not available from repo-local metadata; analysis based on local diff + usage.
Usage in this repository
  • elastic/vault-github-token#v0.2.1 is used in Buildkite plugin blocks for version-bump steps.
  • docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest and docker.elastic.co/release-eng/wolfi-build-essential-release-eng:latest are CI execution images for Buildkite steps.
Compatibility assessment

These are CI-only dependencies; they do not affect shipped agent binaries. Main residual risk is mutability of tag-based pins (#v0.2.1 and :latest).

Labels Applied

  • oblt-aw/ai/merge-ready — low-to-moderate risk, no repo-usage breaking change detected, and impact is confined to release/CI tooling.

What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @fr4nc1sc0-r4m0n

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify

mergify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n merged commit dda1905 into 9.4 Oct 29, 2026
39 checks passed
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n deleted the mergify/bp/9.4/pr-15433 branch October 29, 2026 19:20
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