Skip to content

Conversation

@efd6
Copy link
Contributor

@efd6 efd6 commented Nov 25, 2025

Please take a look.

The addition to the get_docs test demonstrates how this can be used with a trivial example.

@efd6 efd6 self-assigned this Nov 25, 2025
@efd6 efd6 added enhancement New feature or request Team:Ecosystem Label for the Packages Ecosystem team Team:Security-Service Integrations Security Service Integrations Team labels Nov 25, 2025
ts.Setenv(*networkNameLabel, depInfo.NetworkName)
}
if *containerNameLabel != "" {
ts.Setenv(*containerNameLabel, fmt.Sprintf("elastic-package-agent-%s-%s-%s-%s-1", filepath.Base(pkgRoot), ds, info.Test.RunID, depInfo.Name))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrodm Is this a reasonable way to reconstruct this? I did not see any direct representation of the container name for the container running the agent.

I expect that the suffix will ~always be "-1" since the run ID is a random value and we would not expect to have collisions between running agents, even in the case that a script started two or more agents (something that I would imagine would be vanishingly rare in itself).

@efd6 efd6 marked this pull request as ready for review November 25, 2025 05:32
@efd6 efd6 requested review from a team and andrewkroh November 25, 2025 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Team:Ecosystem Label for the Packages Ecosystem team Team:Security-Service Integrations Security Service Integrations Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant