When running the selenium browser tests for ORES, the CI build fails with:
ORES
1) filters are present
1 failing (3s)
1) ORES filters are present:
false == true
AssertionError: false == trueThe exception log shows:
/index.php?action=history&title=0.45299226547790816-%C3%B6%C3%A4%C3%BC-%E2%99%A0%E2%99%A3%E2%99%A5%E2%99%A6 RuntimeException from line 94 of extensions/ORES/includes/ORESService.php: Failed to make ORES request to [https://ores.wikimedia.org/v3/scores/wikidb/?models=damaging%7Cgoodfaith&revids=4&precache=1&format=json], There was a problem during the HTTP request: 404 NOT FOUND
#0 extensions/ORES/includes/ScoreFetcher.php(57): ORES\ORESService->request(array, array)
#1 extensions/ORES/includes/FetchScoreJob.php(89): ORES\ScoreFetcher->getScores(integer, array, boolean, array)
#2 includes/jobqueue/JobRunner.php(296): ORES\FetchScoreJob->run()
#3 includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(ORES\FetchScoreJob, Wikimedia\Rdbms\LBFactorySimple, BufferingStatsdDataFactory, integer)
#4 includes/MediaWiki.php(1007): JobRunner->run(array)
#5 includes/MediaWiki.php(990): MediaWiki->triggerSyncJobs(integer, MediaWiki\Logger\LegacyLogger)
#6 includes/MediaWiki.php(914): MediaWiki->triggerJobs()
#7 includes/MediaWiki.php(729): MediaWiki->restInPeace(string, boolean)
#8 includes/MediaWiki.php(752): MediaWiki->{closure}()
#9 includes/MediaWiki.php(557): MediaWiki->doPostOutputShutdown(string)
#10 index.php(42): MediaWiki->run()
#11 {main}Which is due to the CI setup trying to reach the default ORES:
{ "config": { "OresBaseUrl": { "value": "https://ores.wikimedia.org/" }, }
Thus the wiki tries to reach https://ores.wikimedia.org/v3/scores/wikidb/ which obviously yields nothing.
I don't think we can easily spawn an ORES backend in CI, at least not today. But surely we can find a way to skip the test entirely when being the webdriver tests are run from a patchset upload.
Repro: check experimental on dummy change https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/ORES/+/436523/

