/reproduce-instructions.txt Secret
Created
December 8, 2022 15:36
Star
You must be signed in to star a gist
reproduce-instructions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run in a terminal: | |
docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=test mysql | |
Run in another terminal: | |
mkdir /tmp/test | |
cd /tmp/test | |
git checkout git@github.com:derickr/extension-skeleton.git | |
git checkout https://github.com/shopware/platform | |
cd extension-skeleton && phpize && ./configure && make install | |
cd platform | |
composer install | |
php -dmemory_limit=4G ./bin/console system:setup | |
Answers: | |
Application env: dev | |
URL to your /public folder: http://localhost | |
Blue Green: yes | |
Database user: root | |
Database password: test | |
Database host: 127.0.0.1 (NOT localhost) | |
Database port: 3306 | |
Database name: shopware | |
Database SSL CA Path: <empty> | |
Database SSL Cert Path: <empty> | |
Database SSL Key Path: <empty> | |
Skip verification of SSL certificate: yes | |
Check if everything is ok. Write into "/tmp/test/platform/.env"?: yes | |
Then run this to segfault: | |
USE_ZEND_ALLOC=0 php -n -dmemory_limit=4G -d extension=skeleton ./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group needsWebserver,quarantined,slow,cache,review,skip-paratest --testsuite storefront --filter 'Framework\\Routing\\NotFound\\NotFoundSubscriberTest::testError' | |
This will take some minutes the first time, and then segfaults. | |
Subsequent requests will be fast, and then you can also run it with valgrind: | |
USE_ZEND_ALLOC=0 valgrind php -n -dmemory_limit=4G -d extension=skeleton | |
./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group | |
needsWebserver,quarantined,slow,cache,review,skip-paratest --testsuite | |
storefront --filter | |
'Framework\\Routing\\NotFound\\NotFoundSubscriberTest::testError' 2>&1 | less | |
Use for host 127.0.0.1, user root, and password test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment