Last modified: 2013-04-18 22:03:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49389, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47389 - EducationProgram unit tests are broken
EducationProgram unit tests are broken
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
EducationProgram (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-18 21:56 UTC by Sam Reed (reedy)
Modified: 2013-04-18 22:03 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2013-04-18 21:56:31 UTC
https://integration.wikimedia.org/ci/job/mwext-EducationProgram-testextensions-master/300/console

21:54:56 There were 3 failures:
21:54:56 
21:54:56 1) EducationProgram\Tests\ArticleStoreTest::testInsertAndUpdateArticle with data set #0 (EducationProgram\EPArticle)
21:54:56 deleteArticle returned true
21:54:56 Failed asserting that ResultWrapper Object (
21:54:56     'db' => DatabaseSqlite Object (
21:54:56         'mAffectedRows' => 1
21:54:56         'mLastResult' => null
21:54:56         'mDatabaseFile' => '/var/lib/jenkins/tmpfs/mwext-EducationProgram-testextensions-master/my_wiki.sqlite'
21:54:56         'mName' => 'my_wiki'
21:54:56         'mConn' => PDO Object ()
21:54:56         'mLastQuery' => 'DELETE FROM unittest_ep_articles WHERE article_id = '2''
21:54:56         'mDoneWrites' => true
21:54:56         'mPHPError' => false
21:54:56         'mServer' => null
21:54:56         'mUser' => null
21:54:56         'mPassword' => null
21:54:56         'mDBname' => null
21:54:56         'mOpened' => true
21:54:56         'mTrxIdleCallbacks' => Array ()
21:54:56         'mTrxPreCommitCallbacks' => Array ()
21:54:56         'mTablePrefix' => 'unittest_'
21:54:56         'mFlags' => 16
21:54:56         'mTrxLevel' => 0
21:54:56         'mErrorCount' => 60
21:54:56         'mLBInfo' => Array (
21:54:56             'host' => ''
21:54:56             'user' => ''
21:54:56             'password' => ''
21:54:56             'dbname' => 'my_wiki'
21:54:56             'type' => 'sqlite'
21:54:56             'load' => 1
21:54:56             'flags' => 16
21:54:56             'serverIndex' => 0
21:54:56         )
21:54:56         'mFakeSlaveLag' => null
21:54:56         'mFakeMaster' => false
21:54:56         'mDefaultBigSelects' => null
21:54:56         'mSchemaVars' => false
21:54:56         'preparedArgs' => null
21:54:56         'htmlErrors' => null
21:54:56         'delimiter' => ';'
21:54:56         'mTrxFname' => null
21:54:56         'mTrxDoneWrites' => false
21:54:56         'mTrxAutomatic' => false
21:54:56         'fileHandle' => null
21:54:56     )
21:54:56     'result' => Array ()
21:54:56     'pos' => 0
21:54:56     'currentRow' => null
21:54:56 ) is true.
21:54:56 
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/extensions/EducationProgram/tests/phpunit/ArticleStoreTest.php:115
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/tests/phpunit/MediaWikiTestCase.php:116
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/tests/phpunit/MediaWikiPHPUnitCommand.php:64
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/tests/phpunit/MediaWikiPHPUnitCommand.php:48
21:54:56 
21:54:56 2) EducationProgram\Tests\ArticleStoreTest::testInsertAndUpdateArticle with data set #1 (EducationProgram\EPArticle)
21:54:56 deleteArticle returned true
21:54:56 Failed asserting that ResultWrapper Object (
21:54:56     'db' => DatabaseSqlite Object (
21:54:56         'mAffectedRows' => 1
21:54:56         'mLastResult' => null
21:54:56         'mDatabaseFile' => '/var/lib/jenkins/tmpfs/mwext-EducationProgram-testextensions-master/my_wiki.sqlite'
21:54:56         'mName' => 'my_wiki'
21:54:56         'mConn' => PDO Object ()
21:54:56         'mLastQuery' => 'DELETE FROM unittest_ep_articles WHERE article_id = '3''
21:54:56         'mDoneWrites' => true
21:54:56         'mPHPError' => false
21:54:56         'mServer' => null
21:54:56         'mUser' => null
21:54:56         'mPassword' => null
21:54:56         'mDBname' => null
21:54:56         'mOpened' => true
21:54:56         'mTrxIdleCallbacks' => Array ()
21:54:56         'mTrxPreCommitCallbacks' => Array ()
21:54:56         'mTablePrefix' => 'unittest_'
21:54:56         'mFlags' => 16
21:54:56         'mTrxLevel' => 0
21:54:56         'mErrorCount' => 60
21:54:56         'mLBInfo' => Array (
21:54:56             'host' => ''
21:54:56             'user' => ''
21:54:56             'password' => ''
21:54:56             'dbname' => 'my_wiki'
21:54:56             'type' => 'sqlite'
21:54:56             'load' => 1
21:54:56             'flags' => 16
21:54:56             'serverIndex' => 0
21:54:56         )
21:54:56         'mFakeSlaveLag' => null
21:54:56         'mFakeMaster' => false
21:54:56         'mDefaultBigSelects' => null
21:54:56         'mSchemaVars' => false
21:54:56         'preparedArgs' => null
21:54:56         'htmlErrors' => null
21:54:56         'delimiter' => ';'
21:54:56         'mTrxFname' => null
21:54:56         'mTrxDoneWrites' => false
21:54:56         'mTrxAutomatic' => false
21:54:56         'fileHandle' => null
21:54:56     )
21:54:56     'result' => Array ()
21:54:56     'pos' => 0
21:54:56     'currentRow' => null
21:54:56 ) is true.
21:54:56 
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/extensions/EducationProgram/tests/phpunit/ArticleStoreTest.php:115
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/tests/phpunit/MediaWikiTestCase.php:116
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/tests/phpunit/MediaWikiPHPUnitCommand.php:64
21:54:56 /srv/ssd/jenkins/workspace/mwext-EducationProgram-testextensions-master/tests/phpunit/MediaWikiPHPUnitCommand.php:48
21:54:56 
21:54:56 3) EducationProgram\Tests\ArticleStoreTest::testDeleteNonExistingArticle
21:54:56 Failed asserting that ResultWrapper Object (
21:54:56     'db' => DatabaseSqlite Object (
21:54:56         'mAffectedRows' => 0
21:54:56         'mLastResult' => null
21:54:56         'mDatabaseFile' => '/var/lib/jenkins/tmpfs/mwext-EducationProgram-testextensions-master/my_wiki.sqlite'
21:54:56         'mName' => 'my_wiki'
21:54:56         'mConn' => PDO Object ()
21:54:56         'mLastQuery' => 'DELETE FROM unittest_ep_articles WHERE article_id = '99999''
21:54:56         'mDoneWrites' => true
21:54:56         'mPHPError' => false
21:54:56         'mServer' => null
21:54:56         'mUser' => null
21:54:56         'mPassword' => null
21:54:56         'mDBname' => null
21:54:56         'mOpened' => true
21:54:56         'mTrxIdleCallbacks' => Array ()
21:54:56         'mTrxPreCommitCallbacks' => Array ()
21:54:56         'mTablePrefix' => 'unittest_'
21:54:56         'mFlags' => 16
21:54:56         'mTrxLevel' => 0
21:54:56         'mErrorCount' => 60
21:54:56         'mLBInfo' => Array (
21:54:56             'host' => ''
21:54:56             'user' => ''
21:54:56             'password' => ''
21:54:56             'dbname' => 'my_wiki'
21:54:56             'type' => 'sqlite'
21:54:56             'load' => 1
21:54:56             'flags' => 16
21:54:56             'serverIndex' => 0
21:54:56         )
21:54:56         'mFakeSlaveLag' => null
21:54:56         'mFakeMaster' => false
21:54:56         'mDefaultBigSelects' => null
21:54:56         'mSchemaVars' => false
21:54:56         'preparedArgs' => null
21:54:56         'htmlErrors' => null
21:54:56         'delimiter' => ';'
21:54:56         'mTrxFname' => null
21:54:56         'mTrxDoneWrites' => false
21:54:56         'mTrxAutomatic' => false
21:54:56         'fileHandle' => null
21:54:56     )
21:54:56     'result' => Array ()
21:54:56     'pos' => 0
21:54:56     'currentRow' => null
21:54:56 ) is true.
Comment 1 Jeroen De Dauw 2013-04-18 21:58:38 UTC
Hehe, looks like another instance of the SQLite implementation of MWs DB abstraction layer not honouring the interface
Comment 2 Gerrit Notification Bot 2013-04-18 22:02:54 UTC
Related URL: https://gerrit.wikimedia.org/r/59947 (Gerrit Change I2803ab4fa071a1053ca0b3d221858b2a30a56a64)
Comment 3 Jeroen De Dauw 2013-04-18 22:03:22 UTC
https://gerrit.wikimedia.org/r/#/c/59947/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links