Page MenuHomePhabricator

Argument 4 passed to WikibaseQuality\ConstraintReport\Specials\SpecialConstraintReport::newFromGlobalState() must be an instance of WikibaseQuality\ConstraintReport\ConstraintCheck\DelegatingConstraintChecker, instance of WikibaseQuality\ConstraintReport\Api\CachingResultsSource given, called in /srv/mediawiki/php-1.35.0-wmf.15/vendor/wikimedia/object-factory/src/ObjectFactory.php on line 172
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.15

message
Argument 4 passed to WikibaseQuality\ConstraintReport\Specials\SpecialConstraintReport::newFromGlobalState() must be an instance of WikibaseQuality\ConstraintReport\ConstraintCheck\DelegatingConstraintChecker, instance of WikibaseQuality\ConstraintReport\Api\CachingResultsSource given, called in /srv/mediawiki/php-1.35.0-wmf.15/vendor/wikimedia/object-factory/src/ObjectFactory.php on line 172

Impact

There are this point four instance of this on group0 wikis, all within the last hour. This doesn't seem too bad, but I'm worried there might be an explosion of this in group1 or group2.

Notes

Details

Request ID
Xh8AowpAADkAAJLPK54AAADV
Request URL
https://test.wikidata.org/wiki/Special:SpecialPages
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.15/vendor/wikimedia/object-factory/src/ObjectFactory.php(172): WikibaseQuality\ConstraintReport\Specials\SpecialConstraintReport::newFromGlobalState(GlobalVarConfig, BufferingStatsdDataFactory, Wikibase\DataModel\Services\Lookup\ExceptionIgnoringEntityLookup, WikibaseQuality\ConstraintReport\Api\CachingResultsSource)
#1 /srv/mediawiki/php-1.35.0-wmf.15/vendor/wikimedia/object-factory/src/ObjectFactory.php(102): Wikimedia\ObjectFactory::getObjectFromSpec(array, array)
#2 /srv/mediawiki/php-1.35.0-wmf.15/includes/specialpage/SpecialPageFactory.php(447): Wikimedia\ObjectFactory->createObject(array, array)
#3 /srv/mediawiki/php-1.35.0-wmf.15/includes/specialpage/SpecialPageFactory.php(478): MediaWiki\Special\SpecialPageFactory->getPage(string)
#4 /srv/mediawiki/php-1.35.0-wmf.15/includes/specials/SpecialSpecialpages.php(56): MediaWiki\Special\SpecialPageFactory->getUsablePages(User)
#5 /srv/mediawiki/php-1.35.0-wmf.15/includes/specials/SpecialSpecialpages.php(44): SpecialSpecialpages->getPageGroups()
#6 /srv/mediawiki/php-1.35.0-wmf.15/includes/specialpage/SpecialPage.php(575): SpecialSpecialpages->execute(NULL)
#7 /srv/mediawiki/php-1.35.0-wmf.15/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)
#8 /srv/mediawiki/php-1.35.0-wmf.15/includes/MediaWiki.php(298): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#9 /srv/mediawiki/php-1.35.0-wmf.15/includes/MediaWiki.php(967): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.35.0-wmf.15/includes/MediaWiki.php(530): MediaWiki->main()
#11 /srv/mediawiki/php-1.35.0-wmf.15/index.php(46): MediaWiki->run()
#12 /srv/mediawiki/w/index.php(3): require(string)
#13 {main}
Related Changes in Gerrit:

Event Timeline

Oops, I might have messed up the service wiring.

(The special page is very rarely used, so it’s entirely plausible that it crashes on each request and still barely makes a blip in logstash.)

I’m not sure why @gerritbot isn’t leaving a comment, but patch is up: https://gerrit.wikimedia.org/r/564977 (will need to be backported too).

Right. There's now 20 occurences.

My understanding of your comment is that it's not a sufficient problem to block the train, and that you have a fix. The fix can be deployed next week or in SWAT, I assume.

Yup, the fix is straightforward (if I don’t find a reviewer I think a self-merge is acceptable here) and I can backport it soon.

Change 565012 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseQualityConstraints@wmf/1.35.0-wmf.15] Fix service injection for special page

https://gerrit.wikimedia.org/r/565012

Change 564977 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@master] Fix service injection for special page

https://gerrit.wikimedia.org/r/564977

Change 565012 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@wmf/1.35.0-wmf.15] Fix service injection for special page

https://gerrit.wikimedia.org/r/565012

Mentioned in SAL (#wikimedia-operations) [2020-01-15T15:54:59Z] <ladsgroup@deploy1001> Synchronized php-1.35.0-wmf.15/extensions/WikibaseQualityConstraints/extension.json: [[gerrit:565012|Fix service injection for special page (T242846)]] (duration: 01m 08s)