Page MenuHomePhabricator

Iterating over 456 Wikidata statements exceeds orchestrator time limit
Open, MediumPublicBUG REPORT

Description

Description

Steps to reproduce (step by step instructions, with links, commands and necessary data to reproduce the error)

  1. Visit the test case Most recent population of Chicago
  2. In the Implementations pane, notice the Failed label for Z28884, currently named Composition for Z28874 (WIP)
  3. Click on Details, to see Reached time limit in orchestrator (time limit: "10000 ms")
  4. Note also the sibling test Most recent population of Hickory, with a smaller number of statements, does not fail.

Observed behavior

  • Reached time limit in orchestrator (time limit: "10000 ms")//

Expected behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • Should complete normally without exceeding the time limit.

This test fetches the item for Chicago from Wikidata, then calls a function with a JavaScript implementation to iterate over the 456 statements in the item for Chicago, to filter out those with the population property (of which there are only 5), then recurses over those 5 statements to see which one has the most recent point-in-time qualifier.


Completion checklist

Event Timeline

We will need to re-file this under Q3's performance epic.

Jdforrester-WMF subscribed.

I'm afraid this still fails with v2. Shall we move out to re-triage?

I'm afraid this still fails with v2. Shall we move out to re-triage?

It does fail but not with a timeout, so that's good-ish?

This looks like a content issue now.