Page MenuHomePhabricator

Wikidata recentchanges API request with ORESscores parameter returns 0 results
Closed, ResolvedPublic

Event Timeline

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

A profile of the request: https://performance.wikimedia.org/xhgui/run/view?id=5bebe86c3f3dfa882a5a5add

image.png (705×495 px, 38 KB)

Indicates that all of the time is spent in CurlHttpRequest::execute which is called by ORES\ORESService::request

I'm guessing ORES can't respond quickly for requests for 500 scores for recent changes?
Not knowing the details of ORES, this could also be because the scores are not yet pre computed?

Sounds like we need some sort of graceful fallback here.

Addshore renamed this task from Wikidata recentchages API request with oresscores parameter returns 0 results to Wikidata recentchages API request with ORESscores parameter returns 0 results.Nov 14 2018, 9:22 AM
Addshore triaged this task as High priority.

Logs for the request can be found @ https://logstash.wikimedia.org/goto/a1655d3903fbdd2f51a15341bd52dd8c

From the logs:

Requesting: http://ores.discovery.wmnet:8081/v3/scores/wikidatawiki/?models=damaging%7Cgoodfaith&revids=789601229%7C789601232%7C789601231%7C789601230%7C789601228%7C789601227%7C789601226%7C789601224%7C789601225%7C789601223%7C789601222%7C789601220%7C789601221%7C789601219%7C789601218%7C789601217%7C789601215%7C789601211%7C789601214%7C789601213%7C789601212%7C789601206%7C789601208%7C789601209%7C789601207%7C789601205%7C789601203%7C789601200%7C789601195%7C789601198&format=json
Failed to make ORES request to [http://ores.discovery.wmnet:8081/v3/scores/wikidatawiki/?models=damaging%7Cgoodfaith&revids=789601229%7C789601232%7C789601231%7C789601230%7C789601228%7C789601227%7C789601226%7C789601224%7C789601225%7C789601223%7C789601222%7C789601220%7C789601221%7C789601219%7C789601218%7C789601217%7C789601215%7C789601211%7C789601214%7C789601213%7C789601212%7C789601206%7C789601208%7C789601209%7C789601207%7C789601205%7C789601203%7C789601200%7C789601195%7C789601198&format=json], HTTP request timed out.

These requests now happen for me in a matter of ms, so i guess this is due to ORES just not having the results to give to the requestor when requesting them.

Dinoguy1000 renamed this task from Wikidata recentchages API request with ORESscores parameter returns 0 results to Wikidata recentchanges API request with ORESscores parameter returns 0 results.Nov 14 2018, 6:07 PM

Change 473756 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/ORES@master] Drop all of service integration with the API hook handlers

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

Change 473756 merged by jenkins-bot:
[mediawiki/extensions/ORES@master] Drop all of service integration with the API hook handlers

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