74882[TASK] Reduce VFS usage in unit tests - Part 1
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
-
Verified V +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
- core-ci +1 CI
Issues 1
Files 19
- Build/phpstan/phpstan-baseline.neon+0 −5
- typo3/sysext/core/Tests/Unit/Configuration/ConfigurationManagerTest.php+32 −24
- typo3/sysext/core/Tests/Unit/Http/StreamFactoryTest.php+20 −4
- typo3/sysext/core/Tests/Unit/Http/StreamTest.php+44 −56
- typo3/sysext/core/Tests/Unit/Log/Writer/FileWriterTest.php3+43 −67
- typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php+45 −44
- typo3/sysext/core/Tests/Unit/Package/PackageTest.php+10 −5
- typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php+6 −12
- typo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php+11 −6
- typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php+77 −65
- typo3/sysext/extensionmanager/Tests/Unit/Controller/ActionControllerTest.php+4 −3
- typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php+26 −25
- typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php+1 −1
- typo3/sysext/install/Tests/Unit/FolderStructure/AbstractNodeTest.php+13 −11
- typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php+19 −16
- typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php+32 −25
- typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php+22 −22
- typo3/sysext/install/Tests/Unit/FolderStructure/RootNodeTest.php+6 −4
- typo3/sysext/install/Tests/Unit/FolderStructureTestCase.php2+11 −9
Review log 3960
Show 1935 earlier messages
-
Anja Leichsenring uploaded patch set 1 06/13/22, 12:06
-
core-ci voted on patch set 1 V -1 06/13/22, 12:15 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28009
-
Anja Leichsenring uploaded patch set 2 06/13/22, 12:15
-
Anja Leichsenring uploaded patch set 3 06/13/22, 12:16
-
core-ci voted on patch set 2 V -1 06/13/22, 12:25 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28010
-
Anja Leichsenring uploaded patch set 4 06/13/22, 12:25
-
core-ci voted on patch set 3 V -1 06/13/22, 12:26 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28011
-
core-ci voted on patch set 4 V +1 06/13/22, 12:32 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28012
-
Anja Leichsenring uploaded patch set 5 06/13/22, 13:12
-
core-ci voted on patch set 5 V -1 06/13/22, 13:20 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28016
-
Anja Leichsenring uploaded patch set 6 06/13/22, 13:21
-
core-ci voted on patch set 6 V -1 06/13/22, 13:28 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28017
-
Anja Leichsenring uploaded patch set 7 06/13/22, 14:15
-
Anja Leichsenring uploaded patch set 8 06/13/22, 14:17
-
core-ci voted on patch set 8 V -1 06/13/22, 14:25 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28019
-
core-ci voted on patch set 7 V -1 06/13/22, 14:32 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28018
-
Oliver Klee commented on patch set 8 06/13/22, 16:02
FolderStructureTestCase.php:48To avoid the PHPStan warning: @return non-empty-string -
Anja Leichsenring uploaded patch set 9 06/14/22, 18:05
-
Anja Leichsenring uploaded patch set 10 06/14/22, 18:12
-
core-ci voted on patch set 9 V -1 06/14/22, 18:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28076
-
core-ci voted on patch set 10 V -1 06/14/22, 18:19 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28077
-
Anja Leichsenring uploaded patch set 11 06/14/22, 18:32
-
Anja Leichsenring uploaded patch set 12 06/14/22, 18:38
-
core-ci voted on patch set 11 V -1 06/14/22, 18:39 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28078
-
Anja Leichsenring uploaded patch set 13 06/14/22, 18:43
-
core-ci voted on patch set 12 V -1 06/14/22, 18:45 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28079
-
Oliver Klee commented on patch set 13 06/14/22, 18:47
FileWriterTest.php:59Reply(You still can/should keep the native string return type declaration in addition to the PHPDoc type annotation.) -
Anja Leichsenring uploaded patch set 14 06/14/22, 18:49
-
Anja Leichsenring commented on patch set 13 06/14/22, 18:49
FileWriterTest.php:59ReplyDoneFolderStructureTestCase.php:48ReplyDone -
core-ci voted on patch set 13 V +1 06/14/22, 18:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28080
-
Anja Leichsenring updated the commit message in patch set 15 06/14/22, 18:52
-
core-ci voted on patch set 14 V -1 06/14/22, 18:58 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28081
-
core-ci voted on patch set 15 V -1 06/14/22, 19:00 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28082
-
core-ci voted on patch set 15 V +1 06/14/22, 20:11 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28082
-
Christian Kuhn voted on patch set 15 V +1 CR +1 06/15/22, 07:51
-
Stefan Bürk voted on patch set 15 V +1 CR +1 06/15/22, 08:30
-
Oli Bartsch commented on patch set 15 V -1 06/15/22, 09:08
The test files and folders are not properly removed in /var/ -
Anja Leichsenring commented on patch set 15 06/15/22, 09:52
Reply
can you tell me what remains for you? I had no artifacts left after unit test runs. -
Anja Leichsenring updated the commit message in patch set 16 06/15/22, 09:54
-
core-ci voted on patch set 16 V +1 06/15/22, 10:02 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28092
-
Oli Bartsch commented on patch set 16 06/15/22, 12:40
Reply
I executed: Build/Scripts/runTests.sh -s unit typo3/sysext/core/Tests/Unit typo3/sysext/install/Tests/Unit without and with this patch. Following directories remain only when having the patch applied: /var/ImageTest /var/LogRoot/ /var/Packages/ /var/public/ -
Anja Leichsenring commented on patch set 16 06/15/22, 12:49
Reply
thanks, that helps. I will see to clean that up. -
Anja Leichsenring uploaded patch set 17 06/17/22, 08:46
-
Anja Leichsenring commented on patch set 17 06/17/22, 08:47
I cleaned up all files left over by the unit tests I touched. There is more left over, but out of scope for this patch. -
Anja Leichsenring commented on patch set 17 06/17/22, 08:47
Reply
Done -
core-ci voted on patch set 17 V -1 06/17/22, 08:55 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28131
-
Anja Leichsenring uploaded patch set 18 06/17/22, 11:57
-
Anja Leichsenring commented on patch set 18 06/17/22, 11:59
I opened a big can of worms by making sure tests clean up behind themselves. PS 18 contains only fixes for tests that relied on any test directory being created, instead making sure of it. Now they do. Problem was dicovered through unitRandom runs, I tested until I had 10 good runs under the belt, with counting starting over for each failure. Good thing the full run only takes 35 seconds on my local environment. -
Anja Leichsenring uploaded patch set 19 06/17/22, 12:03
-
core-ci voted on patch set 18 V -1 06/17/22, 12:06 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28138
-
core-ci voted on patch set 19 V -1 06/17/22, 12:10 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28139
-
Oliver Klee commented on patch set 19 06/17/22, 12:32
Anja, what exact problems did we have with vfsStream? Maybe we can adapt something on that front instead. -
Anja Leichsenring uploaded patch set 20 06/17/22, 12:44
-
Anja Leichsenring commented on patch set 20 06/17/22, 12:44
Reply
vfsStream is no real benefit anymore, and currently it can't be adapted to run with PHP 8.2. It is also a dependency we not really need and if possible, we can get rid of. -
core-ci voted on patch set 20 V +1 06/17/22, 12:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28144
-
Oliver Klee commented on patch set 20 06/17/22, 13:12
Reply
Ack -
Oliver Klee commented on patch set 20 06/17/22, 14:15
FYI, vfsStream is going to support PHP 8.2 quite soon: https://github.com/bovigo/vfsStream/issues/271 -
Stefan Bürk voted on patch set 20 V +1 CR +1 06/18/22, 23:42
-
Christian Kuhn voted on patch set 20 V +2 CR +2 06/18/22, 23:42
-
Christian Kuhn merged patch set 21 06/18/22, 23:42
FileWriterTest.php:59