-
Notifications
You must be signed in to change notification settings - Fork 321
Open
Description
Problem
When using AutoForge with projects that use mongodb-memory-server for testing, the Windows temp folder (%TEMP%\mongodb-memory-server) accumulates hundreds of gigabytes of MongoDB binary downloads that are never cleaned up.
I have to manually delete this folder twice a day - it grows to 950GB+ and fills the entire drive.
Steps to reproduce
- Create a project that uses mongodb-memory-server for tests (e.g., a Node.js backend with Jest)
- Run the AutoForge agent multiple times
- Check
%TEMP%\mongodb-memory-server*folder size
Expected behavior
Temporary test files should be cleaned up after agent runs, or use a persistent cache location that doesn't grow unbounded.
Suggested fixes
- Add cleanup hook - Delete mongodb-memory-server temp folders after agent completion/crash
- Configure cache - Set
MONGOMS_DOWNLOAD_DIRenvironment variable to a persistent location - Document workaround - Add note in docs for projects using mongodb-memory-server
Current workaround
Manually delete %TEMP%\mongodb-memory-server* or use a cleanup script.
Environment
- OS: Windows 11
- Python: 3.14.0
- Node.js: 24.11.1
- AutoForge: commit 486979c (tested), now updated to latest master
- Affected: Projects using mongodb-memory-server for tests
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels