Actions
Epic #103888
closedPHPunit functional tests persist to much memory - use tearDown etc. to fix
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2024-05-23
Due date:
% Done:
0%
Estimated time:
Sprint Focus:
Description
A complete test-run needs huge amounts of memory.
Especially the TYPO3 functional tests:
$ ./Build/Scripts/runTests.sh -s functional -p 8.2 -d mariadb ............................................................. 7137 / 7862 ( 90%) ............................................................. 7198 / 7862 ( 91%) ............................................................. 7259 / 7862 ( 92%) ....................S.S...................................... 7320 / 7862 ( 93%) ............................................................. 7381 / 7862 ( 93%) ...........................................................PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 299008 bytes) in /TYPO3.CMS/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 380 Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 299008 bytes) in /TYPO3.CMS/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php on line 380 ########################################################################### Result of functional Container runtime: docker PHP: 8.2 DBMS: mariadb version 10.4 driver mysqli FAILURE ###########################################################################
Issues¶
- The test-implementations itselves initialize properties in
setUp
method and should usetearDown
method to remove these properties again. UnfortunatelytearDown
is not implemented in every test-implementation or not all the properties are accurately unset. - Other reasons to be investigated
Identify tests which needs fixing¶
Actions