Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy mage package output: only display links on failure, fix failing fleet config embed #6547

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cmacknz
Copy link
Member

@cmacknz cmacknz commented Jan 17, 2025

What does this PR do?

  • Unclutters the output of the mage package target by only showing the verified links in the OTel readme if one of them fails to verify.
  • Removing that clutter let me see there was an error building the Fleet configuration because some package managed to register the --out flag before our own code did. So I changed the flag to --output and now it works properly. The config comments are slightly different than the last time this worked so the file embedded it also changed.
>> BuildFleetCfg _meta/elastic-agent.fleet.yml to internal/pkg/agent/application/configuration_embed.go
Error while writing the file to , err: open : no such file or directory

Why is it important?

It isn't but it was bothering me every time I packaged the agent.

Disruptive User Impact

You will no longer get the satisfaction of seeing that each individual URL in our OTel README is valid.

How to test this PR locally

mage check is the fastest way to see the differences.

@cmacknz cmacknz added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Cleanup skip-changelog backport-8.x Automated backport to the 8.x branch with mergify labels Jan 17, 2025
@cmacknz cmacknz self-assigned this Jan 17, 2025
@cmacknz cmacknz requested a review from a team as a code owner January 17, 2025 22:07
@cmacknz cmacknz requested review from swiatekm and pchila January 17, 2025 22:07
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

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 Cleanup skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants