[8.19](backport #8447) refactor: update autodiscover dependency - #8512
Open
mergify[bot] wants to merge 13 commits into
Open
mergify[bot] wants to merge 13 commits into
mergify[bot] wants to merge 13 commits into
Conversation
### Summary of your changes Replaces the Go module `github.com/elastic/elastic-agent-autodiscover` with packages from `github.com/elastic/beats/v7/pkg/autodiscover`. This is following the move of the elastic-agent-autodiscover code to Beats (elastic/beats#51804). This is a dependency replacement without functional changes. ### Checklist - ~[ ] I have added tests that prove my fix is effective or that my feature works~ - ~[ ] I have added the necessary README/documentation (if appropriate)~ (cherry picked from commit 4e57a07) # Conflicts: # NOTICE.txt # go.mod # go.sum
Contributor
Author
|
Cherry-pick of 4e57a07 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 |
The cherry-pick of the autodiscover dependency refactor onto 8.19 left raw conflict markers committed in go.mod and go.sum, causing all CI checks to fail. Resolves both files by keeping the cherry-pick side (newer module versions that match the intended dependency update). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Incorporates three Renovate updates that landed on 8.19 after the cherry-pick: go-runewidth v0.0.30, gohugoio/hashstructure v1, and cyclonedx-go v0.12.0. Resolves the resulting go.sum conflict by keeping entries from both sides. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The cherry-pick upgrades beats to v7.0.0-alpha2.0.20260722133641, which moved otelconsumer from x-pack/libbeat/outputs/otelconsumer to libbeat/otel/otelconsumer. Update the import in cmd/root.go accordingly and run go mod tidy to realign transitive dependencies. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Incorporates two Renovate updates that landed on 8.19: ebitengine/purego v0.11.1 and bmatcuk/doublestar/v4 v4.10.1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…bility logp.ToObserverOutput() and logp.ObserverLogs() were removed in elastic-agent-libs v0.46.1. Migrate to logptest.NewTestingLoggerWithObserver following the pattern already used in 9.x branches. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add newLoggerFromBase to create OPA loggers from an injected logger instead of the global logp. Replace logp.ToObserverOutput/ObserverLogs in tests with logptest.NewTestingLoggerWithObserver via testhelper. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
newLoggerFromBase replaced all usages; newLogger() would cause a lint failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Logger methods were writing to zap without checking l.lvl, so SetLevel had no effect when used with an observer-based test logger. WithFields also dropped lvl, breaking level inheritance for child loggers. Mirrors the fix already present on main. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…er lifecycle management Replace `time.Sleep(100ms)` with `runAndStop` helper that waits for one fetch cycle to complete, calls `benchmark.Stop()`, then waits for "Fetchers manager canceled" log. This eliminates the data race caused by goroutines writing to `t.Log` after the test exits. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…6.1 / beats bump Updated config file reflects template changes in the new beats version: - Processor add_docker_metadata: updated labels.dedot default and new wait_for_metadata options - Kafka output: fix typo in kerberos.service_name comment - HTTP: new debug.state_inspector section Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- cmd/root.go: move otelconsumer blank import to alphabetical position within the beats/libbeat group (before x-pack imports) - internal/flavors/publisher_test.go: remove spurious blank line splitting third-party import group - internal/resources/providers/gcplib/inventory/provider_test.go: remove spurious blank line splitting third-party import group Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
gurevichdmitry
approved these changes
Sep 23, 2026
Contributor
Author
|
Tick the box to add this pull request to the merge queue (same as
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of your changes
Replaces the Go module
github.com/elastic/elastic-agent-autodiscoverwith packages fromgithub.com/elastic/beats/v7/pkg/autodiscover. This is following the move of the elastic-agent-autodiscover code to Beats (elastic/beats#51804).This is a dependency replacement without functional changes.
Checklist
[ ] I have added tests that prove my fix is effective or that my feature works[ ] I have added the necessary README/documentation (if appropriate)This is an automatic backport of pull request #8447 done by [Mergify](https://mergify.com).