Add option to auto-delete temporary files in LocalCommandLineCodeExecutor#6556
Merged
jackgerrits merged 12 commits intoMay 21, 2025
Merged
Conversation
holtvogt
commented
May 18, 2025
jackgerrits
approved these changes
May 21, 2025
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6556 +/- ##
=======================================
Coverage 79.53% 79.53%
=======================================
Files 225 225
Lines 16630 16642 +12
=======================================
+ Hits 13226 13237 +11
- Misses 3404 3405 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
auto-merge was automatically disabled
May 21, 2025 18:43
Head branch was pushed to by a user without write access
This was referenced Jun 23, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why are these changes needed?
The
LocalCommandLineCodeExecutorcreates temporary files for each code execution, which can accumulate over time and clutter the filesystem - especially when a temporary working directory is not used. These changes introduce an option to automatically delete temporary files after execution, helping to prevent file system debris, reduce disk usage, and ensure cleaner runtime environments in long-running or repeated execution scenarios.Related issue number
Closes #4380
Checks