https://bugzilla.wikimedia.org/show_bug.cgi?id=67353

            Bug ID: 67353
           Summary: GlobalBlocking cause other extensions tests to fail
                    (globalblocking database not found)
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: GlobalBlocking
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

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.

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

So we can just point $wgGlobalBlockingDatabase to $wgDBname.

Test case:

 $ ls extensions
 Cite
 GlobalBlocking
 $ cd tests/phpunit
 $ php phpunit.php --testsuite extensions

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to