Page MenuHomePhabricator

Special:NewPagesFeed broken on beta cluster testwiki
Open, MediumPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

image.png (675×1 px, 124 KB)

returns

{
    "error": {
        "code": "internal_api_error_InvalidArgumentException",
        "info": "[ZTfS3q58IA6sSvugq-vbKAAAABY] Exception caught: No model available for [articlequality]",
        "errorclass": "InvalidArgumentException",
        "trace": "InvalidArgumentException at /srv/mediawiki/php-master/extensions/ORES/includes/Storage/SqlModelLookup.php(42)\nfrom /srv/mediawiki/php-master/extensions/ORES/includes/Storage/SqlModelLookup.php(42)\n#0 /srv/mediawiki/php-master/extensions/ORES/includes/Services/PopulatedSqlModelLookup.php(114): ORES\\Storage\\SqlModelLookup->getModelId(string)\n#1 /srv/mediawiki/php-master/extensions/PageTriage/includes/OresMetadata.php(218): ORES\\Services\\PopulatedSqlModelLookup->getModelId(string)\n#2 /srv/mediawiki/php-master/extensions/PageTriage/includes/OresMetadata.php(181): MediaWiki\\Extension\\PageTriage\\OresMetadata->getORESScores(string, array)\n#3 /srv/mediawiki/php-master/extensions/PageTriage/includes/OresMetadata.php(96): MediaWiki\\Extension\\PageTriage\\OresMetadata->fetchScores(array)\n#4 /srv/mediawiki/php-master/extensions/PageTriage/includes/OresMetadata.php(110): MediaWiki\\Extension\\PageTriage\\OresMetadata->__construct(ORES\\Storage\\ThresholdLookup, ORES\\Services\\PopulatedSqlModelLookup, array, DerivativeContext, array)\n#5 /srv/mediawiki/php-master/extensions/PageTriage/includes/Api/ApiPageTriageList.php(87): MediaWiki\\Extension\\PageTriage\\OresMetadata::newFromGlobalState(DerivativeContext, array)\n#6 /srv/mediawiki/php-master/includes/api/ApiMain.php(1931): MediaWiki\\Extension\\PageTriage\\Api\\ApiPageTriageList->execute()\n#7 /srv/mediawiki/php-master/includes/api/ApiMain.php(908): ApiMain->executeAction()\n#8 /srv/mediawiki/php-master/includes/api/ApiMain.php(879): ApiMain->executeActionWithErrorHandling()\n#9 /srv/mediawiki/php-master/api.php(95): ApiMain->execute()\n#10 /srv/mediawiki/php-master/api.php(48): wfApiMain()\n#11 /srv/mediawiki/w/api.php(3): require(string)\n#12 {main}"
    },
    "servedby": "deployment-mediawiki11"
}

What should have happened instead?:

  • no "An error occurred while loading the interface from the API. Please try reloading the page." message

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Based on a look at /wmf-config/InitialiseSettings-labs.php:1453-1473

'wgOresModels' => [
			'default' => [
				'damaging' => [ 'enabled' => true ],
				'goodfaith' => [ 'enabled' => true ],
				'reverted' => [ 'enabled' => false ],
				'articlequality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'cleanParent' => true ],
				'draftquality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'types' => [ 1 ] ],
			],
			'enwiki' => [
				'damaging' => [ 'enabled' => true, 'excludeBots' => true ],
				'goodfaith' => [ 'enabled' => true, 'excludeBots' => true ],
				'reverted' => [ 'enabled' => false ],
				'articlequality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'cleanParent' => true ],
				'draftquality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'types' => [ 1 ], 'excludeBots' => true, 'cleanParent' => true ],
			],
			'wikidatawiki' => [
				'damaging' => [ 'enabled' => true ],
				'goodfaith' => [ 'enabled' => true ],
				'reverted' => [ 'enabled' => false ],
				'itemquality' => [ 'enabled' => true, 'namespaces' => [ 0 ], 'cleanParent' => true ],
			],
		],

there is no model defined for beta testwiki. Did the feed work before this ?

hate to be that person, but is there a reason why y'all can't just use https://en.wikipedia.beta.wmflabs.org/wiki/Special:NewPagesFeed for testing?

hate to be that person, but is there a reason why y'all can't just use https://en.wikipedia.beta.wmflabs.org/wiki/Special:NewPagesFeed for testing?

+1
As I mentioned indirectly in T331595#9276326, I think the solution is to disable the extended features in test wiki on beta

Based on a look at /wmf-config/InitialiseSettings-labs.php:1453-1473

'wgOresModels' => [
			'default' => [
				'damaging' => [ 'enabled' => true ],
				'goodfaith' => [ 'enabled' => true ],
				'reverted' => [ 'enabled' => false ],
				'articlequality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'cleanParent' => true ],
				'draftquality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'types' => [ 1 ] ],
			],
			'enwiki' => [
				'damaging' => [ 'enabled' => true, 'excludeBots' => true ],
				'goodfaith' => [ 'enabled' => true, 'excludeBots' => true ],
				'reverted' => [ 'enabled' => false ],
				'articlequality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'cleanParent' => true ],
				'draftquality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'types' => [ 1 ], 'excludeBots' => true, 'cleanParent' => true ],
			],
			'wikidatawiki' => [
				'damaging' => [ 'enabled' => true ],
				'goodfaith' => [ 'enabled' => true ],
				'reverted' => [ 'enabled' => false ],
				'itemquality' => [ 'enabled' => true, 'namespaces' => [ 0 ], 'cleanParent' => true ],
			],
		],

there is no model defined for beta testwiki. Did the feed work before this ?

I don't see how it could have; my guess is that it got enabled for something specific in the past and then left and forgotten after its purpose was served. We could look through the git blame to verify, or we could just disable it if nobody on the project is using it.

Based on a look at /wmf-config/InitialiseSettings-labs.php:1453-1473

'wgOresModels' => [
			'default' => [
				'damaging' => [ 'enabled' => true ],
				'goodfaith' => [ 'enabled' => true ],
				'reverted' => [ 'enabled' => false ],
				'articlequality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'cleanParent' => true ],
				'draftquality' => [ 'enabled' => false, 'namespaces' => [ 0 ], 'types' => [ 1 ] ],
			],
			'enwiki' => [
				'damaging' => [ 'enabled' => true, 'excludeBots' => true ],
				'goodfaith' => [ 'enabled' => true, 'excludeBots' => true ],
				'reverted' => [ 'enabled' => false ],
				'articlequality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'cleanParent' => true ],
				'draftquality' => [ 'enabled' => true, 'namespaces' => [ 0, 118 ], 'types' => [ 1 ], 'excludeBots' => true, 'cleanParent' => true ],
			],
			'wikidatawiki' => [
				'damaging' => [ 'enabled' => true ],
				'goodfaith' => [ 'enabled' => true ],
				'reverted' => [ 'enabled' => false ],
				'itemquality' => [ 'enabled' => true, 'namespaces' => [ 0 ], 'cleanParent' => true ],
			],
		],

there is no model defined for beta testwiki. Did the feed work before this ?

I don't see how it could have; my guess is that it got enabled for something specific in the past and then left and forgotten after its purpose was served. We could look through the git blame to verify, or we could just disable it if nobody on the project is using it.

I agree it might be easier to disable this feature on test wiki

Change 975107 had a related patch set uploaded (by MPGuy2824; author: MPGuy2824):

[operations/mediawiki-config@master] Disable PageTriage's extended features on beta testwiki

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

Change 975107 merged by jenkins-bot:

[operations/mediawiki-config@master] [BETA CLUSTER] testwiki: Disable PageTriage's extended features

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

As I mentioned indirectly in T331595#9276326, I think the solution is to disable the extended features in test wiki on beta

@jsn.sherman this hasn't fixed the problem.

MPGuy2824 moved this task from Waiting for enwiki deploy to Backlog on the PageTriage board.
MPGuy2824 subscribed.