Last modified: 2014-07-02 10:42:30 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 T69353, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67353 - GlobalBlocking cause other extensions tests to fail (globalblocking database not found)
GlobalBlocking cause other extensions tests to fail (globalblocking database ...
Product: MediaWiki extensions
Classification: Unclassified
GlobalBlocking (Other open bugs)
All All
: High normal (vote)
: MW 1.23 version
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: 67216
  Show dependency treegraph
Reported: 2014-07-01 08:22 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-07-02 10:42 UTC (History)
5 users (show)

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


Description Antoine "hashar" Musso (WMF) 2014-07-01 08:22:36 UTC
GlobalBlocking is meant to use a dedicated shared database 'globalblocking'. When run under Jenkins harness, we only have one database, whenever another tests hits GlobalBlocking (such as Cite parser tests), we end up with stracktrace because the database load balancer can not find 'globalblocking' database.

- the GlobalBlocking database can be configured via $wgGlobalBlockingDatabase
- Wikimedia Jenkins set $wgWikimediaJenkinsCI

So we can just point $wgGlobalBlockingDatabase to $wgDBname.

Test case:

 $ ls extensions
 $ cd tests/phpunit
 $ php phpunit.php --testsuite extensions
Comment 1 Antoine "hashar" Musso (WMF) 2014-07-01 08:23:13 UTC
CCed Aude because we used $wgWikimediaJenkinsCI for the Wikibase extension.

Blocks Bug 67216 - Have unit tests of all wmf deployed extensions pass when installed together, in both PHP-Zend and HHVM
Comment 2 Gerrit Notification Bot 2014-07-01 08:24:23 UTC
Change 143253 had a related patch set uploaded by Hashar:
Adjust GlobalBlocking database under Wikimedia Jenkins
Comment 3 Gerrit Notification Bot 2014-07-02 10:34:02 UTC
Change 143253 merged by jenkins-bot:
Adjust GlobalBlocking database under Wikimedia Jenkins
Comment 4 Antoine "hashar" Musso (WMF) 2014-07-02 10:34:50 UTC
Needs backport to REL1_23.
Comment 5 Kunal Mehta (Legoktm) 2014-07-02 10:42:30 UTC

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