Project

General

Profile

Actions

Epic #103888

closed

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

Added by Ayke Halder 6 months ago. Updated 5 months ago.

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 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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #103889: PHPunit functional tests persist to much memory - use tearDown for crucial casesClosed2024-05-23

Actions
Actions

Also available in: Atom PDF