"A typical run of full PHPUnit tests for Moodle 2.7 takes 10-20 minutes"
But for me on the current master (2019112900.00) the entire PHPunit test suite is taking 6 hours to run, and that's after I tried some optimizations.
The machine is a Optiplex 5070 Micro Form Factor.
- Intel Core i5-9500t (6 Cores/9MB/6T/up to 3.7GHz/35W)
- 12GB RAM
- 256GB Solid State Drive
- Ubuntu 18.04
- MySQL 5.5.x (latest version available to Ubuntu)
- utf8mb4_bin collation
- PHP 7.2.x (latest version available to Ubuntu)
The optimizations I did were:
Those two settings reduced the runtime from 9 hours to 6 hours, but I am nowhere close to 20-30 minutes. The machine I am running on is not the fastest machine, but it is new and I thought would be decent enough with 6 cores and running an SSD. Do I need a beefier machine?
Any more advice on how to improve performance? I am running a local LAMP server with Jenkins running the tests.
The command I am using to run the PHPunit tests is:
vendor/bin/phpunit --log-junit 'reports/unitreport.xml' --coverage-clover 'reports/clover.xml'