Skip to content

Conversation

@michel-laterman
Copy link
Contributor

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

@michel-laterman michel-laterman added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team backport-active-all Automated backport with mergify to all the active branches labels Jun 12, 2025
@michel-laterman
Copy link
Contributor Author

buildkite test this

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @michel-laterman

@michel-laterman michel-laterman marked this pull request as ready for review June 13, 2025 14:22
@michel-laterman michel-laterman requested a review from a team as a code owner June 13, 2025 14:22
@elasticmachine
Copy link
Collaborator

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

@michel-laterman michel-laterman merged commit e4258ea into elastic:main Jun 17, 2025
11 checks passed
@michel-laterman michel-laterman deleted the fix-diagnostics-temp-dir branch June 17, 2025 20:10
@github-actions
Copy link
Contributor

@Mergifyio backport 8.17 8.18 8.19 9.0

@mergify
Copy link
Contributor

mergify bot commented Jun 17, 2025

mergify bot pushed a commit that referenced this pull request Jun 17, 2025
mergify bot pushed a commit that referenced this pull request Jun 17, 2025
mergify bot pushed a commit that referenced this pull request Jun 17, 2025
mergify bot pushed a commit that referenced this pull request Jun 17, 2025
michel-laterman added a commit that referenced this pull request Jun 18, 2025
(cherry picked from commit e4258ea) Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
michel-laterman added a commit that referenced this pull request Jun 18, 2025
(cherry picked from commit e4258ea) Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
michel-laterman added a commit that referenced this pull request Jun 18, 2025
(cherry picked from commit e4258ea) Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
michel-laterman added a commit that referenced this pull request Jun 18, 2025
(cherry picked from commit e4258ea) Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

4 participants