[9.3](backport #49836) Move Paths from beat.Beat to beat.Info#50186
[9.3](backport #49836) Move Paths from beat.Beat to beat.Info#50186mergify[bot] wants to merge 4 commits into9.3from
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/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
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) |
TL;DRThis Buildkite failure is caused by code issues in the backport, not CI flakiness: unresolved cherry-pick conflict markers in Remediation
Investigation detailsRoot Cause
Evidence
Verification
Follow-upAfter resolving the two osquerybeat conflict files and the remaining filebeat 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 CauseThe failing job is not a merge-conflict failure anymore; it is a lint failure from Evidence
Validation
Follow-upThis is materially different from the previous detective comment (which was about merge-conflict markers). Once the reported lint violations are fixed, this specific workflow should proceed past the current failure point. What is this? | From workflow: PR Actions 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
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.