Skip to content

[9.4] Update elastic/beats and align beats-bump automation#6728

Open
jeniawhite wants to merge 1 commit into
elastic:9.4from
jeniawhite:evgb-bump-beats-9.4
Open

[9.4] Update elastic/beats and align beats-bump automation#6728
jeniawhite wants to merge 1 commit into
elastic:9.4from
jeniawhite:evgb-bump-beats-9.4

Conversation

@jeniawhite
Copy link
Copy Markdown
Contributor

What

Backport the dedicated beats-bump automation to 9.4 and bump elastic/beats to the latest 9.4 commit, fixing the build/lint breaks it surfaces.

Why

The update-beats workflow (on main) checks out each active branch and runs updatecli apply --config .ci/updatecli/updatecli.d/update-beats.yml. That config is read from the checked-out branch, but 9.4 still had the old config (requiredEnv "GIT_BRANCH" + scms/actions), while the new workflow sets BRANCH_NAME and runs --commit=false. So the update-beats (9.4) job failed at config load:

template: cfg:3:32: executing "cfg" at <requiredEnv "GIT_BRANCH">: error calling requiredEnv: no value found for environment variable GIT_BRANCH

How

  • .ci/updatecli/updatecli.d/update-beats.yml: replace with the file-edit-only config the new workflow expects.
  • .github/workflows/updatecli.yml: remove beats from the matrices (now owned by the dedicated workflow).
  • cmd/root.go: drop the x-pack/libbeat/outputs/otelconsumer blank import — beats moved it out of x-pack and de-registered it as an output type (Move otelconsumer out of x-pack beats#49929), which is present on the 9.4 beats branch.
  • internal/launcher/launcher.go: replace deprecated Manager.Start with PreInit/PostInit (staticcheck SA1019).
  • go.mod/go.sum: bump to beats 9.4 tip; cloudbeat.reference.yml: regenerated (autodiscover labels.dedot default flipped to true).

Verification (local, real toolchain)

  • go mod tidy, go build ./... (GOEXPERIMENT=jsonv2), staticcheck -checks SA1019 ./internal/launcher/, go test ./internal/launcher/ → all pass.

🤖 Generated with Claude Code

Backport the dedicated beats-bump automation to 9.4 and bump elastic/beats to
the latest 9.4 commit, fixing the build/lint breaks it surfaces.

- .ci/updatecli/updatecli.d/update-beats.yml: switch to the file-edit-only
  config used by the bump-beats-version.yml workflow (BRANCH_NAME, --commit=false,
  gomod source, export-versions). The old config used requiredEnv GIT_BRANCH and
  scms/actions, which the new workflow does not set, so the branch jobs failed at
  config load.
- updatecli.yml: remove beats from the matrices (now owned by the dedicated workflow).
- cmd/root.go: drop the removed otelconsumer blank import (moved out of x-pack in
  beats and de-registered as an output type).
- internal/launcher/launcher.go: replace deprecated Manager.Start with PreInit/PostInit.
- go.mod/go.sum: bump to beats 9.4 tip; cloudbeat.reference.yml: regenerated
  (autodiscover labels.dedot default flipped to true).

Verified locally: go mod tidy, go build ./... (GOEXPERIMENT=jsonv2),
staticcheck SA1019, and go test ./internal/launcher all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jeniawhite jeniawhite requested a review from a team as a code owner June 5, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant