Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jun 17, 2025

What does this PR do?

Change the diagnostics action handler to use the temp dir from paths.TempDir instead of the default one inferred by os.CreateTemp.

Why is it important?

The agent should use paths it has definitions for instead of OS defaults.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • 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
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

N/A

How to test this PR locally

elastic-agent diagnostics


This is an automatic backport of pull request #8472 done by Mergify.

@mergify mergify bot added the backport label Jun 17, 2025
@mergify mergify bot requested a review from a team as a code owner June 17, 2025 20:12
@mergify mergify bot requested review from michalpristas and removed request for a team June 17, 2025 20:12
@mergify mergify bot requested a review from blakerouse June 17, 2025 20:12
@github-actions github-actions bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Jun 17, 2025
@elasticmachine
Copy link
Contributor

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

@elastic-sonarqube
Copy link

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

cc @michel-laterman

@michel-laterman michel-laterman merged commit 5f14790 into 9.0 Jun 18, 2025
21 checks passed
@michel-laterman michel-laterman deleted the mergify/bp/9.0/pr-8472 branch June 18, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working 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.

3 participants