[SERVER-38689] TempDirs inside DEATH_TESTs don't get cleaned up Created: 18/Dec/18 Updated: 29/Oct/23 Resolved: 17/Jun/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Vojislav Stojkovic |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | tig-unittests | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Service Arch 2022-06-27 | ||||
| Participants: | |||||
| Description |
|
This causes ever-growing debris to accumulate in /tmp which is often a ramdisk. One solution would be to take advantage of the fact that DEATH_TESTs already examine stdout, and just look for the lines that start with "Created temporary directory:". Another would be to create a TempDir in the parent process and make the child pass that to TempDir::setTempPath, but that will create the TempDir even for tests that don't need it. |
| Comments |
| Comment by Githook User [ 17/Jun/22 ] |
|
Author: {'name': 'Vojislav Stojkovic', 'email': 'vojislav.stojkovic@mongodb.com', 'username': 'vstojkovic-mongodb'}Message: |
| Comment by Steven Vannelli [ 10/May/22 ] |
|
Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions. |
| Comment by Eric Milkie [ 19/Dec/18 ] |
|
I like the sandboxing idea – we should restrict tests to writing to a special place just for them, and then just nuke the subdirectory when the test finishes. |