-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug (tests): JSONScript tests fail with "Wikimedia\Services\ContainerDisabledException: Container disabled!" #5637
Comments
@hexmode do you have an idea what's causing this? |
This is probably caused because SMW is improperly using MW services. Probably relevant: https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Writing_unit_tests#Databases Talking briefly with @tgr at the hackathon, he suggested that a fix may be to have DatabaseTestCase depend on DatabaseIntegrationTest instead of PHPUnit_Framework_TestCase. |
@Nikerabbit can you help us out here? This would be super important so solve! |
In SMW, if you run for example Database was excluded and is not expected to support the test This is caused by |
I think you either need to subclass the test from MediWikiIntegratinTestCase or copy some of the setup code in that class. |
I've started a branch that uses MediaWikiIntegrationTestCase and addressed some php 8 deprecations on it. Tests still don't pass, but it is a start. |
The first error, when running the tests on a new install against sqlite is:
Subsequent runs, though, have a different error and backtrace:
So, we can see that the test runner has DB access initially, tries to set up the temporary unittest schema, and then fails when DB access (the service) is not available. Probably need to look at the set up in DatabaseIntegrationTest. |
EDIT: this issue was created for SemanticDrilldown extension. There:
Steps to reproduce:
git submodule init
git submodule update
make ci
The text was updated successfully, but these errors were encountered: