AmpersandHQ / ampersand-magento2-upgrade-patch-helper

Helper script to aid upgrading magento 2 websites by detecting overrides. Now supports third party module detections
GNU Lesser General Public License v3.0
320 stars 38 forks source link

Improve OSX dev performance #93

Closed convenient closed 1 year ago

convenient commented 1 year ago

This has also improved performance on travis which is nice (although was not the main goal, OSX is slower with volumes than linux)

Travis Before

Screenshot 2023-05-09 at 13 53 08

Travis After

Screenshot 2023-05-09 at 13 54 22

Logs

$ time make docker-up docker-install ENV=m23
.....
  real  8m23.443s
  user  0m0.240s
  sys   0m0.259s
$ time make docker-test ENV=m23
docker exec -it uphelper-m23 ./dev/Docker/run-phpunit-functional-tests.sh
PHPUnit 9.6.4 by Sebastian Bergmann and contributors.

Test 'FunctionalTests::testMagentoTwoThree' started
Test 'FunctionalTests::testMagentoTwoThree' ended

Generated command: php /src/bin/patch-helper.php analyse --pad-table-columns 130 --sort-by-type --vendor-namespaces Ampersand --php-strict-errors  /src/dev/instances/magentom23
Test 'FunctionalTests::testMagentoTwoThreeShowCustomModules' started
Test 'FunctionalTests::testMagentoTwoThreeShowCustomModules' ended

Generated command: php /src/bin/patch-helper.php analyse --pad-table-columns 130 --sort-by-type --vendor-namespaces Ampersand,Amazon --php-strict-errors  /src/dev/instances/magentom23
Test 'FunctionalTests::testAutoApplyPatches' started
Test 'FunctionalTests::testAutoApplyPatches' ended

Generated command: php /src/bin/patch-helper.php analyse --auto-theme-update 5 --php-strict-errors  /src/dev/instances/magentom23
Test 'FunctionalTests::testUnifiedDiffIsProvided' started
The patch file could not be parsed, check it's generated with diff -urN
Test 'FunctionalTests::testUnifiedDiffIsProvided' ended

Generated command: php /src/bin/patch-helper.php analyse  --php-strict-errors  /src/dev/instances/magentom23

Time: 05:55.672, Memory: 6.00 MB

OK (4 tests, 19 assertions)

real    5m58.083s
user    0m0.087s
sys 0m0.086s

Checklist