Skip to content

Autodiscover: pass paths through builders instead of global paths#49537

Draft
orestisfl wants to merge 6 commits intoelastic:mainfrom
orestisfl:autodiscover-global-paths
Draft

Autodiscover: pass paths through builders instead of global paths#49537
orestisfl wants to merge 6 commits intoelastic:mainfrom
orestisfl:autodiscover-global-paths

Conversation

@orestisfl
Copy link
Contributor

Proposed commit message

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@orestisfl orestisfl self-assigned this Mar 18, 2026
@orestisfl orestisfl added bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team backport-8.x Automated backport to the 8.x branch with mergify skip-changelog backport-9.2 Automated backport to the 9.2 branch backport-9.3 Automated backport to the 9.3 branch labels Mar 18, 2026
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Mar 18, 2026
@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Pass *paths.Path from NewAutodiscover through BuildProvider and each
provider's AutodiscoverBuilder into NewBuilders, replacing the previous
nil/global approach. Also fixes a bug where the package name `paths`
was passed instead of the `path` parameter variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-8.x Automated backport to the 8.x branch with mergify backport-9.2 Automated backport to the 9.2 branch backport-9.3 Automated backport to the 9.3 branch bug skip-changelog Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant