Repository navigation
[9.4] (backport #15433) ci(ff): support feature freeze automation - #17303
Conversation
* 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
|
Cherry-pick of 06f8782 has failed: 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 |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Dependency Update AnalysisSummary: This PR introduces new Go/build pipeline dependencies, but overall risk is high because Go dependencies: multiple updates (notably
|
| Check | Result |
|---|---|
| Breaking changes | 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 andCommit.Statsfield).- No specific CVE IDs were listed in the fetched release notes.
Usage in this repository
github.com/go-git/go-git/v5used indev-tools/mage/release/git.go(repo open/checkout/commit/push helpers).github.life-white.uk/google/go-github/v68/githubused in:dev-tools/mage/release/github.godev-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.modandgo.sum(<<<<<<<,=======,>>>>>>>), andgo list -mfails 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 | |
| Pin format | #v0.2.1) and mutable image tags (:latest) |
Changelog highlights (old → new)
- Upstream release/tag metadata for
elastic/vault-github-token@v0.2.1was unavailable from accessible GitHub release/tag endpoints in this environment. - Local diff confirms pin introduction only.
Usage in this repository
.buildkite/pipeline.version-bump.ymlnow uses pluginelastic/vault-github-token#v0.2.1in version-bump steps.- Same file introduces
IMAGE_BEATS_WITH_HOOKS_LATESTand uses...:latestimage 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.
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.
|
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 |
|
/test |
With replace => ./beats, go mod tidy does not keep remote beats sum entries. Removing them so check-ci stays clean.
This comment has been minimized.
This comment has been minimized.
Dependency Update AnalysisSummary: This PR introduces new Go dependencies for release automation ( Dependency 1:
|
| 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.
Automerge skippedAutomerge 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: Changed files considered:
|
|
/test |
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)
Dependency Update AnalysisSummary: This PR introduces new Go release-tooling dependencies and Buildkite CI pins (no production runtime dependency bumps). Overall risk is low-to-moderate. Dependency:
|
| 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.RepositoryAPIs used here.
Usage in this repository
- Imported in
dev-tools/mage/release/git.go:17-23and tests indev-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
osfsusage.
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.Statsfield 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) indev-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:16for 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 | pull_request workflow trigger |
| Pin format | #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.1in.buildkite/pipeline.version-bump.yml:46,64.
Usage in this repository
- Used in
.buildkite/pipeline.version-bump.ymlminor/patch steps to fetch GitHub token before runningmage 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 |
Changelog highlights
- Added
IMAGE_BEATS_WITH_HOOKS_LATESTandwolfi-build-essential-release-eng:latestreferences 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
latesttags, 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.
|
This pull request is now in conflicts. Could you fix it? 🙏 |
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.
|
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)
|
Folded in #17540: 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: |
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.
|
Resolved merge conflicts with the base branch ( |
Dependency Update AnalysisSummary: 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):
|
| 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 andCommit.Statsfield 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.gousesgo-gitAPIs for branch/ref/worktree/submodule operations.dev-tools/mage/release/github.go,issue.go,workflows.gousego-githubPR/issue/search/labels APIs.- Scope is release automation code (
dev-tools/mage/release/**), not runtime agent paths.
Compatibility assessment
go-githubbreaking items do not affect used APIs here (no classic Projects API usage; noCommit.Statsreliance).go-git/go-billychanges 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 | |
| Pin format |
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.ymlfor 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 |
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.ymluses 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
:latestis 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.
|
/test |
Dependency Update AnalysisSummary: 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:
|
| Check | Result |
|---|---|
| Breaking changes | ✅ None found for consumed APIs in this repo |
| Testable in PR |
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/netdependency 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.life-white.uk/go-git/go-billy/v5:dev-tools/mage/release/git.go:16(osfsbacking for alternates handling).github.life-white.uk/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
/v5and/v68correctly). golang.org/x/oauth2moved 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 | |
| Pin format | v0.2.1) |
Changelog highlights ((none) → v0.2.1)
- Upstream release
v0.2.1includes a bug fix: avoid failing whenbuildkite-agent redactor adderrors. - No security regression indicated in release notes.
Usage in this repository
- Added in
.buildkite/pipeline.version-bump.yml:46and:64for 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.
|
/test |
Dependency Update AnalysisSummary: 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 Dependency 1:
|
| 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-relatedx/netrefresh 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:40andgo.mod:85. - Used in release automation only:
dev-tools/mage/release/github.go:15-16,issue.go:14,workflows.go:11, tests ingithub_test.go/issue_test.go. - Consumed APIs are PR/list/search/label/reviewer operations; no Project classic or
Commit.Statsusage 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 | |
| Pin format | 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.1is used in Buildkite plugin blocks for version-bump steps.docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latestanddocker.elastic.co/release-eng/wolfi-build-essential-release-eng:latestare 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.
💚 Build Succeeded
History
|
|
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. |
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 formerelastic-agent.makoutputs.Release tooling lives in a nested Go module so
go-git/go-githubstay out of the rootgo.mod/NOTICE.txt. Root mage targets invokego run -C dev-tools/mage/release ./cmd/agent-release ….mage release:runMajorMinor: push the release branch and open 3 merge-ordered PRsmage 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_RELEASEmust already matchversion/version.goonBASE_BRANCH(FF) or the release branch (patch); fail fast on mismatchmerge:1-ff-day,merge:2-after-branch,merge:4-after-releasefor FF;merge:1-before-build/merge:4-after-releasefor patch); missingmerge:*labels are created automaticallyFeature freeze —
runMajorMinor(3 grouped PRs)Example:
CURRENT_RELEASE=9.5.0must already be inversion/version.goonBASE_BRANCH→ branch9.5, next minor9.6.0, next patch9.5.1.9.5mainmainff-prep-main-9.5.0merge:1-ff-daymake check-ci).mergify.yml+version.go+ docs/manifests → next minor9.5ff-release-9.5.0merge:2-after-branchmage update9.5ff-prep-next-patch-9.5.1merge:4-after-releaseversion.go+ Helm/K8s manifests → next patch +mage updateNext-minor docs/manifests live in PR-A (agent historical vault-bot /
make check-cibehavior). 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.1on branch9.5whereversion.gois already9.5.1. Next patch is9.5.2.9.5patch-release-9.5.1merge:1-before-build:stack-version:only; noversion.gobump9.5ff-prep-next-patch-9.5.2merge:4-after-releaseversion.go+ Helm/K8s manifests → next patch +mage updateRM 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
./changelog/fragmentsusing the changelog toolDisruptive User Impact
None for end users. Release/CI automation for maintainers.
How to test this PR locally
CURRENT_RELEASEmust be plainmajor.minor.patch(e.g.9.5.0). No prerelease suffixes.Feature freeze
Patch
Issue tracker only
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.asciidocstill had:stack-version: 8.8.1, andREADME.mdstill linked tomaininstead 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:
Related issues
Related issue: https://github.com/elastic/observability-robots/issues/3404
Validations
Minor releases
main+ backport rule + docs/manifestsPatch releases
Aligned with former bot outputs for a patch being released (e.g. 9.4.4): docs before build; next-patch version after release.
This is an automatic backport of pull request #15433 done by [Mergify](https://mergify.com).