PHPUnit test - Installing lastcoredata fail

Bug #1821082 reported by Aurelien Besson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Undecided
Unassigned

Bug Description

Hi,

When i try to laucnh phpunit test (make phpunit) i get this error

********************************************************************************************************
[INF] 4f (lib/phpunit.php:107) Installing lastcoredata
PHP Warning: require_once(Zend/Cache/Backend/ExtendedInterface.php): failed to open stream: No such file or directory in /app/jenkins/mahara_test/htdocs/webservice/libs/zend/Zend/Cache/Backend/Test.php on line 27

Warning: require_once(Zend/Cache/Backend/ExtendedInterface.php): failed to open stream: No such file or directory in /app/jenkins/mahara_test/htdocs/webservice/libs/zend/Zend/Cache/Backend/Test.php on line 27
PHP Fatal error: require_once(): Failed opening required 'Zend/Cache/Backend/ExtendedInterface.php' (include_path='/app/jenkins/mahara_test/htdocs/lib/:/app/jenkins/mahara_test/htdocs/lib/pear/:.:/usr/share/pear:/usr/share/php') in /app/jenkins/mahara_test/htdocs/webservice/libs/zend/Zend/Cache/Backend/Test.php on line 27

Fatal error: require_once(): Failed opening required 'Zend/Cache/Backend/ExtendedInterface.php' (include_path='/app/jenkins/mahara_test/htdocs/lib/:/app/jenkins/mahara_test/htdocs/lib/pear/:.:/usr/share/pear:/usr/share/php') in /app/jenkins/mahara_test/htdocs/webservice/libs/zend/Zend/Cache/Backend/Test.php on line 27
make: *** [phpunit] Error 255
********************************************************************************************************

And the second try i get this

********************************************************************************************************
[DBG] bf (lib/ddl.php:753) CONSTRAINT tst_oautservconf_oau_fk FOREIGN KEY (oauthserverregistryid) REFERENCES tst_oauth_server_registry (id)
[DBG] bf (lib/ddl.php:753) )ENGINE=innodb
[DBG] bf (lib/ddl.php:753) [36] => ALTER TABLE tst_oauth_server_config COMMENT='Table to store settings related to an oauth server registry'
[DBG] bf (lib/ddl.php:753) [37] => CREATE INDEX tst_oautservconf_oau_ix ON tst_oauth_server_config (oauthserverregistryid)
[DBG] bf (lib/ddl.php:753) )
[DBG] bf (lib/ddl.php:753)
PHP Fatal error: Uncaught SQLException: Failed to install (check logs for xmldb errors) in /app/jenkins/mahara_test/htdocs/lib/ddl.php:754
Stack trace:
#0 /app/jenkins/mahara_test/htdocs/lib/upgrade.php(444): install_from_xmldb_file('/app/jenkins/ma...')
#1 /app/jenkins/mahara_test/htdocs/lib/phpunit.php(121): upgrade_plugin(Object(stdClass))
#2 /app/jenkins/mahara_test/htdocs/lib/tests/phpunit/bootstrap.php(34): UnitTestBootstrap->install_mahara()
#3 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/Util/Fileloader.php(64): include_once('/app/jenkins/ma...')
#4 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/Util/Fileloader.php(48): PHPUnit\Util\Fileloader::load('/app/jenkins/ma...')
#5 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/TextUI/Command.php(991): PHPUnit\Util\Fileloader::checkAndLoad('/app/jenkins/ma...')
#6 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/TextUI/Command.php(788): PHPUnit\TextUI\Command->handleBootstrap('/app/jenkins/ma...')
#7 /app/jenkins/mahara_ in /app/jenkins/mahara_test/htdocs/lib/ddl.php on line 754

Fatal error: Uncaught SQLException: Failed to install (check logs for xmldb errors) in /app/jenkins/mahara_test/htdocs/lib/ddl.php:754
Stack trace:
#0 /app/jenkins/mahara_test/htdocs/lib/upgrade.php(444): install_from_xmldb_file('/app/jenkins/ma...')
#1 /app/jenkins/mahara_test/htdocs/lib/phpunit.php(121): upgrade_plugin(Object(stdClass))
#2 /app/jenkins/mahara_test/htdocs/lib/tests/phpunit/bootstrap.php(34): UnitTestBootstrap->install_mahara()
#3 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/Util/Fileloader.php(64): include_once('/app/jenkins/ma...')
#4 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/Util/Fileloader.php(48): PHPUnit\Util\Fileloader::load('/app/jenkins/ma...')
#5 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/TextUI/Command.php(991): PHPUnit\Util\Fileloader::checkAndLoad('/app/jenkins/ma...')
#6 /app/jenkins/mahara_test/external/vendor/phpunit/phpunit/src/TextUI/Command.php(788): PHPUnit\TextUI\Command->handleBootstrap('/app/jenkins/ma...')
#7 /app/jenkins/mahara_ in /app/jenkins/mahara_test/htdocs/lib/ddl.php on line 754
make: *** [phpunit] Error 255

OS RedHat
Mahara 18.10
Php 7.2
Mysql 5.7
PhpUnit 8

Revision history for this message
Aurelien Besson (abesson) wrote :

You can close this ticket, it's due to our installation.

description: updated
Changed in mahara:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.