Page MenuHomePhabricator

files from UIDGenerator not deleted after test run
Closed, ResolvedPublic


Running phpunit leaves the following files in the tmp dir:


Should be deleted automatically by UIDGenerator or the test

Version: 1.21.x
Severity: normal
See Also:



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:17 AM
bzimport set Reference to bz44850.
bzimport added a subscriber: Unknown Object (MLST).

The same thing can happen after running maintenance/update.php, see bug 53791.

Leaving the files on disk seems to be intended behavior of the UIDGenerator class. It uses these files to store counter state and as an inter-process lock when creating timestamp based UUID variants.

Adding a cleanup to the test should be possible.

Change 121548 had a related patch set uploaded by BryanDavis:
Delete UIDGenerator cache files after unit tests

Change 121548 merged by jenkins-bot:
Delete UIDGenerator cache files after unit tests