- Notifications
You must be signed in to change notification settings - Fork 198
Change diagnostics action to use paths.TempDir #8472
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
Merged
michel-laterman merged 2 commits into elastic:main from michel-laterman:fix-diagnostics-temp-dir Jun 17, 2025
Merged
Change diagnostics action to use paths.TempDir #8472
michel-laterman merged 2 commits into elastic:main from michel-laterman:fix-diagnostics-temp-dir Jun 17, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
c171a19 to 601b99a Compare | buildkite test this |
|
💚 Build Succeeded
History
|
| Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
swiatekm approved these changes Jun 13, 2025
kaanyalti approved these changes Jun 17, 2025
| @Mergifyio backport 8.17 8.18 8.19 9.0 |
✅ Backports have been created
|
mergify bot pushed a commit that referenced this pull request Jun 17, 2025
(cherry picked from commit e4258ea)
mergify bot pushed a commit that referenced this pull request Jun 17, 2025
(cherry picked from commit e4258ea)
3 tasks
mergify bot pushed a commit that referenced this pull request Jun 17, 2025
(cherry picked from commit e4258ea)
This was referenced Jun 17, 2025
mergify bot pushed a commit that referenced this pull request Jun 17, 2025
(cherry picked from commit e4258ea)
3 tasks
michel-laterman added a commit that referenced this pull request Jun 18, 2025
michel-laterman added a commit that referenced this pull request Jun 18, 2025
michel-laterman added a commit that referenced this pull request Jun 18, 2025
michel-laterman added a commit that referenced this pull request Jun 18, 2025
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
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.




What does this PR do?
Change the diagnostics action handler to use the temp dir from
paths.TempDirinstead of the default one inferred byos.CreateTemp.Why is it important?
The agent should use paths it has definitions for instead of OS defaults.
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature works./changelog/fragmentsusing the changelog toolI have added an integration test or an E2E testDisruptive User Impact
N/A
How to test this PR locally
elastic-agent diagnostics