Issue Epic Closed

#103888PHPunit functional tests persist to much memory - use tearDown etc. to fix

Ayke Halder 05/23/24, 17:06 updated 07/09/24, 15:35

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 use tearDown method to remove these properties again. Unfortunately tearDown 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

See https://github.com/TYPO3/testing-framework/issues/561

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.