mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #31206
[Bug 1515794] [NEW] phpunit database teardown is incomplete
Public bug reported:
As noticed in Bug 1515473.
If you run the Mahara phpunit tests twice against the same database (by
doing "make phpunit") you get errors on the second run. Phpunit attempts
to tear down the test database and re-create it, but it misses some
items and errors out when it tries to recreate them, because they
already exist. This happens in Postgres or MySQL.
I'm guessing it's because there are some database entities that we
create through direct execution of DDL statements rather than through
XMLDB and install.xml files. Probably the teardown uses the install.xml
files to remove everything, misses the directly-created things, and then
the subsequent installer tries to re-create them.
** Affects: mahara
Importance: Low
Status: Confirmed
** Tags: phpunit test
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1515794
Title:
phpunit database teardown is incomplete
Status in Mahara:
Confirmed
Bug description:
As noticed in Bug 1515473.
If you run the Mahara phpunit tests twice against the same database
(by doing "make phpunit") you get errors on the second run. Phpunit
attempts to tear down the test database and re-create it, but it
misses some items and errors out when it tries to recreate them,
because they already exist. This happens in Postgres or MySQL.
I'm guessing it's because there are some database entities that we
create through direct execution of DDL statements rather than through
XMLDB and install.xml files. Probably the teardown uses the
install.xml files to remove everything, misses the directly-created
things, and then the subsequent installer tries to re-create them.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1515794/+subscriptions
Follow ups
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Kristina Hoeppner, 2016-04-30
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Aaron Wells, 2016-03-23
-
[Bug 1515794] A change has been merged
From: Mahara Bot, 2016-02-04
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Robert Lyon, 2016-02-04
-
[Bug 1515794] A change has been merged
From: Mahara Bot, 2016-02-03
-
[Bug 1515794] A patch has been submitted for review
From: Mahara Bot, 2016-01-07
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Jean-Philippe Gaudreau, 2016-01-05
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Jean-Philippe Gaudreau, 2016-01-05
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Jean-Philippe Gaudreau, 2016-01-05
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Aaron Wells, 2015-11-12
-
[Bug 1515794] Re: phpunit database teardown is incomplete
From: Aaron Wells, 2015-11-12