[8.19](backport #49836) Move Paths from beat.Beat to beat.Info#50185
[8.19](backport #49836) Move Paths from beat.Beat to beat.Info#50185mergify[bot] wants to merge 3 commits into8.19from
Conversation
Paths describe the filesystem locations a beat is configured to use (home, config, data, logs). They are set once at startup and never change — the same kind of instance metadata as Name, Version, or ID. Moving Paths into beat.Info makes them available everywhere Info is already passed, which removes the need to thread a separate *paths.Path argument through many call chains. (cherry picked from commit 184a91b) # Conflicts: # x-pack/osquerybeat/beater/osquerybeat.go # x-pack/osquerybeat/beater/osquerybeat_status_test.go
|
Cherry-pick of 184a91b 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/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
|
Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform) |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Remove osquerybeat_status_test.go which was incorrectly brought in by the backport and references features not available on 8.19 (osquerydFactory, osqd.Runner, WaitForStop, beatmonitoring).
TL;DRBuildkite Remediation
Investigation detailsRoot CauseThis is a backport conflict resolution issue (not infra):
Evidence
VerificationNot run locally in this detective workflow; conclusion is based on deterministic Buildkite failures plus PR diff inspection. Follow-upAfter resolving the osquerybeat conflict and removing/adapting the incompatible test file, these three failing jobs should clear; if anything remains, it should be a separate issue. What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
This comment has been minimized.
This comment has been minimized.
TL;DR
Remediation
Investigation detailsRoot CauseThis is not an Actions infrastructure issue. The Evidence
Validation
Follow-up
What is this? | From workflow: PR Actions Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Proposed commit message
This PR just moves the field in the correct struct, see dependent PRs for work to remove redundant function parameters.
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added an entry in./changelog/fragmentsusing the changelog tool.Disruptive User Impact
None. Internal API change only.
How to test this PR locally
Related issues
Beat.Info#49803Dependent PRs
The following PRs build on this change to remove redundant
*paths.Pathparameters from functions that already receivebeat.Info:This is an automatic backport of pull request Move Paths from beat.Beat to beat.Info #49836 done by Mergify.