[8.19](backport #49537) Autodiscover: pass paths through builders instead of global paths#50030
[8.19](backport #49537) Autodiscover: pass paths through builders instead of global paths#50030
Conversation
…9537) Thread an explicit `*paths.Path` parameter through the autodiscover subsystem (`NewAutodiscover` → `BuildProvider` → `AutodiscoverBuilder` → `NewBuilders` → `BuildBuilder` → `BuilderConstructor`) instead of relying on the global `paths.Paths` variable. Also makes `NewLogHints` unexported (`newLogHints`) since it is only used via the autodiscover registry. (cherry picked from commit 31d1c30) # Conflicts: # filebeat/autodiscover/builder/hints/logs_test.go # libbeat/autodiscover/autodiscover_test.go
|
Cherry-pick of 31d1c30 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 |
🤖 GitHub commentsJust comment with:
|
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This comment has been minimized.
This comment has been minimized.
TL;DRThis Buildkite failure set is caused by unresolved merge-conflict markers committed in two test files. Remove the conflict blocks and keep one valid version in each file, then rerun CI. Remediation
Investigation detailsRoot CauseClassification: Code bug (invalid source from unresolved merge conflict). All failing In the PR commit content (
Evidence
Verification
Follow-upAfter resolving the two conflict regions, CI should recover across all currently failing jobs since they all fail on the same marker detection/parse errors. Note 🔒 Integrity filtering filtered 1 itemIntegrity filtering activated and filtered the following item during workflow execution.
What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
This pull request has not been merged yet. Could you please review and merge it @orestisfl? 🙏 |
Proposed commit message
Thread an explicit
*paths.Pathparameter through the autodiscover subsystem (NewAutodiscover→BuildProvider→AutodiscoverBuilder→NewBuilders→BuildBuilder→BuilderConstructor) instead of relying on the globalpaths.Pathsvariable.Also makes
NewLogHintsunexported (newLogHints) since it is only used via the autodiscover registry.Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesstresstest.shscript to run them under stress conditions and race detector to verify their stability.I have added an entry in./changelog/fragmentsusing the changelog tool.How to test this PR locally
Create a
filebeat.ymlwith hints-based autodiscover:Run filebeat and start a container with hint labels:
./filebeat -e -c filebeat.yml # In another terminal: docker run --label co.elastic.logs/module=nginx --rm nginxRelated issues
This is an automatic backport of pull request Autodiscover: pass paths through builders instead of global paths #49537 done by Mergify.