Skip to main content
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

I am trying to run the full set of standard integration tests, which I want to run before deployments on an continuous integration server. (Whilst developing I will run just for my own module using the methodology from herefrom here.)

P.S. I have read @Fabian-Schmengler questionquestion but whilst the thrown error obscuring the root cause is similar, I'm not sure how to apply that knowledge to tracking down the problem with data installation.

I am trying to run the full set of standard integration tests, which I want to run before deployments on an continuous integration server. (Whilst developing I will run just for my own module using the methodology from here.)

P.S. I have read @Fabian-Schmengler question but whilst the thrown error obscuring the root cause is similar, I'm not sure how to apply that knowledge to tracking down the problem with data installation.

I am trying to run the full set of standard integration tests, which I want to run before deployments on an continuous integration server. (Whilst developing I will run just for my own module using the methodology from here.)

P.S. I have read @Fabian-Schmengler question but whilst the thrown error obscuring the root cause is similar, I'm not sure how to apply that knowledge to tracking down the problem with data installation.

added 2008 characters in body
Source Link

I noticed that it is running a comand line installation of:

/usr/local/bin/php -f '/app/bin/magento' setup:install -vvv 
--db-host='database.internal' 
--db-user='magento2_test_user' 
--db-password='password' 
--db-name='magento_integration_tests' 
--backend-frontname='backend' 
--admin-user='user' 
--admin-password='password1' 
--admin-email='[email protected]' 
--admin-firstname='firstname' 
--admin-lastname='lastname' 
--magento-init-params=
'MAGE_DIRS[etc][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/etc
&MAGE_DIRS[var][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var
&MAGE_DIRS[media][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/pub/media
&MAGE_DIRS[static][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/pub/static
&MAGE_DIRS[generation][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/generation
&MAGE_DIRS[cache][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/cache
&MAGE_DIRS[log][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/log
&MAGE_DIRS[session][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/session
&MAGE_DIRS[tmp][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/tmp
&MAGE_DIRS[upload][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/upload
&MAGE_DIRS[pub][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/pub
&MAGE_MODE=developer' 2>&1

so I ran this actually at the command line... weirdly even though the verbosity level -vvv is set to debug, the above produces no output and just quits out...

Edit: Doh... just noticed it's redirecting standard output - trying again without the 2>&1

I noticed that it is running a comand line installation of:

/usr/local/bin/php -f '/app/bin/magento' setup:install -vvv 
--db-host='database.internal' 
--db-user='magento2_test_user' 
--db-password='password' 
--db-name='magento_integration_tests' 
--backend-frontname='backend' 
--admin-user='user' 
--admin-password='password1' 
--admin-email='[email protected]' 
--admin-firstname='firstname' 
--admin-lastname='lastname' 
--magento-init-params=
'MAGE_DIRS[etc][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/etc
&MAGE_DIRS[var][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var
&MAGE_DIRS[media][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/pub/media
&MAGE_DIRS[static][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/pub/static
&MAGE_DIRS[generation][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/generation
&MAGE_DIRS[cache][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/cache
&MAGE_DIRS[log][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/log
&MAGE_DIRS[session][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/session
&MAGE_DIRS[tmp][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/tmp
&MAGE_DIRS[upload][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/var/upload
&MAGE_DIRS[pub][path]=/app/dev/tests/integration/tmp/sandbox-0-746d38770b4b2d082c0117910a9c0041/pub
&MAGE_MODE=developer' 2>&1

so I ran this actually at the command line... weirdly even though the verbosity level -vvv is set to debug, the above produces no output and just quits out...

Edit: Doh... just noticed it's redirecting standard output - trying again without the 2>&1

added 3 characters in body
Source Link

What are my steps for debugging, namely? Namely:

  1. How does Magento produce the SQL that it is trying to install?
  2. Is it cached anywhere as a physical file I can read?
  3. How can I find more useful information tracking the problem down?

What are my steps for debugging, namely:

  1. How does Magento produce the SQL that it is trying to install
  2. Is it cached anywhere as a physical file I can read
  3. How can I find more useful information tracking the problem down

What are my steps for debugging? Namely:

  1. How does Magento produce the SQL that it is trying to install?
  2. Is it cached anywhere as a physical file I can read?
  3. How can I find more useful information tracking the problem down?
added 328 characters in body
Source Link
Loading
Source Link
Loading