KEMBAR78
Add option to auto-delete temporary files in LocalCommandLineCodeExecutor by holtvogt · Pull Request #6556 · microsoft/autogen · GitHub
Skip to content

Conversation

@holtvogt
Copy link
Contributor

Why are these changes needed?

The LocalCommandLineCodeExecutor creates 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

@jackgerrits jackgerrits enabled auto-merge (squash) May 21, 2025 13:48
@codecov
Copy link

codecov bot commented May 21, 2025

Codecov Report

Attention: Patch coverage is 91.30435% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.53%. Comparing base (c6c8693) to head (6d1669c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...t/src/autogen_ext/code_executors/local/__init__.py 91.30% 2 Missing ⚠️
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     
Flag Coverage Δ
unittests 79.53% <91.30%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

auto-merge was automatically disabled May 21, 2025 18:43

Head branch was pushed to by a user without write access

@holtvogt holtvogt requested a review from jackgerrits May 21, 2025 18:46
@jackgerrits jackgerrits enabled auto-merge (squash) May 21, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to auto-delete temp files created by LocalCommandLineExecutor

2 participants