Lucas_Werkmeister_WMDE added a project: MediaWiki-extensions-CentralAuth.
Lucas_Werkmeister_WMDE added a comment.


  Okay, I can reproduce the error with `wfLoadExtension( 'CentralAuth' );` in 
LocalSettings.
  
  If I add `$wgCentralAuthDatabase = $wgDBname;`, then the error message 
changes:
  
  > Failed asserting that exception of type "Wikimedia\Rdbms\DBQueryError" 
matches expected exception "ApiUsageException". Message was: "Error 1146: Table 
'wiki1.globaluser' doesn't exist
  
  (`wiki1` is my DB name.) And when I then run `php maintenance/mysql.php < 
extensions/CentralAuth/schema/mysql/tables-generated.sql`, then the tests pass:
  
    $ vendor/bin/phpunit 
extensions/Wikibase/client/tests/phpunit/unit/includes/Api/ApiFormatReferenceTest.php
 
    Using PHP 8.1.2
    PHPUnit 8.5.26 #StandWithUkraine
    
    Wikibase\Client\Tests\Unit\Api\ApiFormatReferenceTest
     ✔ testAsDataBridgeForHtml
     ✔ testInvalidReferenceJson
     ✔ testInvalidReferenceSerialization
    
    Time: 430 ms, Memory: 52.50 MB
    
    OK (3 tests, 8 assertions)
  
  So it’s something about the way CentralAuth is set up that previously used to 
work in CI but now doesn’t.

TASK DETAIL
  https://phabricator.wikimedia.org/T310255

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Jakob_WMDE, Lucas_Werkmeister_WMDE, kostajh, Krinkle, Aklapper, 
Physikerwelt, Fernandobacasegua34, Astuthiodit_1, 786, Suran38, Biggs657, 
karapayneWMDE, Invadibot, Lalamarie69, Zabe, maantietaja, Juan90264, 
Alter-paule, Beast1978, ItamarWMDE, Un1tY, Akuckartz, Hook696, CptViraj, 
Majavah, Kent7301, joker88john, DannyS712, wildly_boy, CucyNoiD, Nandana, 
Gaboe420, lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, Maosef, QZanden, LawExplorer, Lewizho99, Maathavan, 
Debenben, _jensen, rosalieper, Neuronton, Scott_WUaS, Izno, Wong128hk, 
thcipriani, Wikidata-bugs, Snowolf, aude, fredw, Pkra, scfc, Jdforrester-WMF, 
Mbch331, Jay8g, hashar
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to