Page MenuHomePhabricator

Test fails due to differing representations of enum instances
Closed, ResolvedPublicBUG REPORT

Description

Description

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

  1. Visit Wikifunctions test case Latest population statement
  2. In the Implementations pane, notice the Failed label for Z28884, currently named Composition for Z28874 (WIP)
  3. Click on Details, to see Expected result and actual result are not equal.
    1. (or just read the diagnostic info below)

Observed behavior

  • The test fails because the Wikidata statement returned from the test call is not identical to the specified expected return. However, the only differences between the 2 are in the representation of enum type instances. In the actual return value, we have "Z6007K3":{"Z1K1":"Z6020","Z6020K1":"Z6021"}, whereas in the expected value, we have "Z6003K7":"Z6021". (And similarly for one other instance of Z6021 and also one of Z6042.)
  • In the test call, WikiLambda sends "Z6003K7":"Z6021". This can be seen in the first log snippet below.
  • In the validation call, WikiLambda sends "Z6003K7":"Z6021" in the expected result, and {"Z1K1":"Z6020","Z6020K1":"Z6021"} in the actual result. This can be seen in the 3rd log snippet below.
  • Initial hypothesis: in the course of processing the test call, the orchestrator converted Z6021 to {"Z1K1":"Z6020","Z6020K1":"Z6021"} (and then returned that change in the result of the test call, as shown in the 2nd log snippet below), but that conversion did not happen In the expected result, while processing the validation call.

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

  • The test should pass. To enable that, I believe we need to make one of these changes:
    • Arrange for WikiLambda to always send {"Z1K1":"Z6020","Z6020K1":"Z6021"} to the orchestrator.
    • Arrange for the orchestrator to always convert incoming "Z6021" to {"Z1K1":"Z6020","Z6020K1":"Z6021"} .
    • Change the implementation of Z6803/Same Wikidata statement to recognize that Z6021 and {"Z1K1":"Z6020","Z6020K1":"Z6021"} are the same.

The function call JSON (Incoming orchestrator request) for the test call:

	{"Z1K1":"Z7","Z7K1":{"Z1K1":"Z8","Z8K1":["Z17",{"Z1K1":"Z17","Z17K1":{"Z1K1":"Z7","Z7K1":"Z881","Z881K1":"Z6003"},"Z17K2":"Z28874K1","Z17K3":{"Z1K1":"Z12","Z12K1":["Z11",{"Z1K1":"Z11","Z11K1":"Z1002","Z11K2":"statements"}]}}],"Z8K2":"Z6003","Z8K3":["Z20","Z28883"],"Z8K4":["Z14","Z28884"],"Z8K5":"Z28874"},"Z28874K1":["Z6003",{"Z1K1":"Z6003","Z6003K1":{"Z1K1":"Z6091","Z6091K1":"Q1297"},"Z6003K2":{"Z1K1":"Z6092","Z6092K1":"P1082"},"Z6003K3":{"Z1K1":"Z6010","Z6010K1":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K2":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K3":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K4":{"Z1K1":"Z6091","Z6091K1":"Q199"}},"Z6003K4":"Z6042","Z6003K5":["Z6007",{"Z1K1":"Z6007","Z6007K1":{"Z1K1":"Z6092","Z6092K1":"P585"},"Z6007K2":{"Z1K1":"Z6064","Z6064K1":{"Z1K1":"Z6061","Z6061K1":{"Z1K1":"Z20420","Z20420K1":{"Z1K1":"Z20159","Z20159K1":{"Z1K1":"Z17813","Z17813K1":"Z17814"},"Z20159K2":{"Z1K1":"Z13518","Z13518K1":"2020"}},"Z20420K2":{"Z1K1":"Z20342","Z20342K1":{"Z1K1":"Z16098","Z16098K1":"Z16104"},"Z20342K2":{"Z1K1":"Z13518","Z13518K1":"1"}}},"Z6061K2":{"Z1K1":"Z6060","Z6060K1":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K2":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K3":{"Z1K1":"Z13518","Z13518K1":"0"}}},"Z6064K2":{"Z1K1":"Z6062","Z6062K1":{"Z1K1":"Z6091","Z6091K1":"Q573"}},"Z6064K3":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K4":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K5":{"Z1K1":"Z16683","Z16683K1":{"Z1K1":"Z16659","Z16659K1":"Z16661"},"Z16683K2":{"Z1K1":"Z13518","Z13518K1":"0"}},"Z6064K6":{"Z1K1":"Z6063","Z6063K1":{"Z1K1":"Z6091","Z6091K1":"Q1985727"}}},"Z6007K3":"Z6021"}],"Z6003K6":["Z6008"],"Z6003K7":"Z6021"},{"Z1K1":"Z6003","Z6003K1":{"Z1K1":"Z6091","Z6091K1":"Q1297"},"Z6003K2":{"Z1K1":"Z6092","Z6092K1":"P1082"},"Z6003K3":{"Z1K1":"Z6010","Z6010K1":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"1900000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K2":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"1900000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K3":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"1900000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K4":{"Z1K1":"Z6091","Z6091K1":"Q199"}},"Z6003K4":"Z6042","Z6003K5":["Z6007",{"Z1K1":"Z6007","Z6007K1":{"Z1K1":"Z6092","Z6092K1":"P585"},"Z6007K2":{"Z1K1":"Z6064","Z6064K1":{"Z1K1":"Z6061","Z6061K1":{"Z1K1":"Z20420","Z20420K1":{"Z1K1":"Z20159","Z20159K1":{"Z1K1":"Z17813","Z17813K1":"Z17814"},"Z20159K2":{"Z1K1":"Z13518","Z13518K1":"1990"}},"Z20420K2":{"Z1K1":"Z20342","Z20342K1":{"Z1K1":"Z16098","Z16098K1":"Z16104"},"Z20342K2":{"Z1K1":"Z13518","Z13518K1":"1"}}},"Z6061K2":{"Z1K1":"Z6060","Z6060K1":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K2":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K3":{"Z1K1":"Z13518","Z13518K1":"0"}}},"Z6064K2":{"Z1K1":"Z6062","Z6062K1":{"Z1K1":"Z6091","Z6091K1":"Q573"}},"Z6064K3":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K4":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K5":{"Z1K1":"Z16683","Z16683K1":{"Z1K1":"Z16659","Z16659K1":"Z16661"},"Z16683K2":{"Z1K1":"Z13518","Z13518K1":"0"}},"Z6064K6":{"Z1K1":"Z6063","Z6063K1":{"Z1K1":"Z6091","Z6091K1":"Q1985727"}}},"Z6007K3":"Z6021"}],"Z6003K6":["Z6008"],"Z6003K7":"Z6021"}]}

Outgoing orchestrator response for the test call:

	{"x-request-id":"27bfcf8c-fba3-4964-a57a-ee310f682f9a","response":"{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z22\"},\"Z22K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z6003\"},\"Z6003K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z6091\"},\"Z6091K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"Q1297\"}},\"Z6003K2\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z6092\"},\"Z6092K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"P1082\"}},\"Z6003K3\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z6010\"},\"Z6010K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z19677\"},\"Z19677K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z16659\"},\"Z16659K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z16660\"}},\"Z19677K2\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z13518\"},\"Z13518K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"2000000\"}},\"Z19677K3\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z13518\"},\"Z13518K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"1\"}}},\"Z6010K2\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z19677\"},\"Z19677K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z16659\"},\"Z16659K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z16660\"}},\"Z19677K2\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z13518\"},\"Z13518K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"2000000\"}},\"Z19677K3\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z13518\"},\"Z13518K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"1\"}}},\"Z6010K3\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z19677\"},\"Z19677K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z16659\"},\"Z16659K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z16660\"}},\"Z19677K2\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z13518\"},\"Z13518K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"2000000\"}},\"Z19677K3\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K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"Z9\",\"Z9K1\":\"Z7\"},\"Z7K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z882\"},\"Z882K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z6\"},\"Z882K2\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z1\"}}},\"K1\":{\"Z1K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z7\"},\"Z7K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z882\"},\"Z882K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z6\"},\"Z882K2\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z1\"}},\"K1\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"orchestrationHostname\"},\"K2\":{\"Z1K1\":\"Z6\",\"Z6K1\":\"function-orchestrator-main-orchestrator-79bbcf97bf-n6f5j\"}},\"K2\":{\"Z1K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z7\"},\"Z7K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z881\"},\"Z881K1\":{\"Z1K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z7\"},\"Z7K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z882\"},\"Z882K1\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z6\"},\"Z882K2\":{\"Z1K1\":\"Z9\",\"Z9K1\":\"Z1\"}}}}}}}}}}}}}}"}

The function call JSON (Incoming orchestrator request) for the validation call:

	{"Z1K1":"Z7","Z7K1":"Z6803","Z6803K2":{"Z1K1":"Z6003","Z6003K1":{"Z1K1":"Z6091","Z6091K1":"Q1297"},"Z6003K2":{"Z1K1":"Z6092","Z6092K1":"P1082"},"Z6003K3":{"Z1K1":"Z6010","Z6010K1":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K2":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K3":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K4":{"Z1K1":"Z6091","Z6091K1":"Q199"}},"Z6003K4":"Z6042","Z6003K5":["Z6007",{"Z1K1":"Z6007","Z6007K1":{"Z1K1":"Z6092","Z6092K1":"P585"},"Z6007K2":{"Z1K1":"Z6064","Z6064K1":{"Z1K1":"Z6061","Z6061K1":{"Z1K1":"Z20420","Z20420K1":{"Z1K1":"Z20159","Z20159K1":{"Z1K1":"Z17813","Z17813K1":"Z17814"},"Z20159K2":{"Z1K1":"Z13518","Z13518K1":"2020"}},"Z20420K2":{"Z1K1":"Z20342","Z20342K1":{"Z1K1":"Z16098","Z16098K1":"Z16104"},"Z20342K2":{"Z1K1":"Z13518","Z13518K1":"1"}}},"Z6061K2":{"Z1K1":"Z6060","Z6060K1":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K2":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K3":{"Z1K1":"Z13518","Z13518K1":"0"}}},"Z6064K2":{"Z1K1":"Z6062","Z6062K1":{"Z1K1":"Z6091","Z6091K1":"Q573"}},"Z6064K3":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K4":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K5":{"Z1K1":"Z16683","Z16683K1":{"Z1K1":"Z16659","Z16659K1":"Z16661"},"Z16683K2":{"Z1K1":"Z13518","Z13518K1":"0"}},"Z6064K6":{"Z1K1":"Z6063","Z6063K1":{"Z1K1":"Z6091","Z6091K1":"Q1985727"}}},"Z6007K3":"Z6021"}],"Z6003K6":["Z6008"],"Z6003K7":"Z6021"},"Z6803K1":{"Z1K1":"Z6003","Z6003K1":{"Z1K1":"Z6091","Z6091K1":"Q1297"},"Z6003K2":{"Z1K1":"Z6092","Z6092K1":"P1082"},"Z6003K3":{"Z1K1":"Z6010","Z6010K1":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K2":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K3":{"Z1K1":"Z19677","Z19677K1":{"Z1K1":"Z16659","Z16659K1":"Z16660"},"Z19677K2":{"Z1K1":"Z13518","Z13518K1":"2000000"},"Z19677K3":{"Z1K1":"Z13518","Z13518K1":"1"}},"Z6010K4":{"Z1K1":"Z6091","Z6091K1":"Q199"}},"Z6003K4":{"Z1K1":"Z6040","Z6040K1":"Z6042"},"Z6003K5":["Z6007",{"Z1K1":"Z6007","Z6007K1":{"Z1K1":"Z6092","Z6092K1":"P585"},"Z6007K2":{"Z1K1":"Z6064","Z6064K1":{"Z1K1":"Z6061","Z6061K1":{"Z1K1":"Z20420","Z20420K1":{"Z1K1":"Z20159","Z20159K1":{"Z1K1":"Z17813","Z17813K1":"Z17814"},"Z20159K2":{"Z1K1":"Z13518","Z13518K1":"2020"}},"Z20420K2":{"Z1K1":"Z20342","Z20342K1":{"Z1K1":"Z16098","Z16098K1":"Z16104"},"Z20342K2":{"Z1K1":"Z13518","Z13518K1":"1"}}},"Z6061K2":{"Z1K1":"Z6060","Z6060K1":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K2":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6060K3":{"Z1K1":"Z13518","Z13518K1":"0"}}},"Z6064K2":{"Z1K1":"Z6062","Z6062K1":{"Z1K1":"Z6091","Z6091K1":"Q573"}},"Z6064K3":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K4":{"Z1K1":"Z13518","Z13518K1":"0"},"Z6064K5":{"Z1K1":"Z16683","Z16683K1":{"Z1K1":"Z16659","Z16659K1":"Z16661"},"Z16683K2":{"Z1K1":"Z13518","Z13518K1":"0"}},"Z6064K6":{"Z1K1":"Z6063","Z6063K1":{"Z1K1":"Z6091","Z6091K1":"Q1985727"}}},"Z6007K3":{"Z1K1":"Z6020","Z6020K1":"Z6021"}}],"Z6003K6":["Z6008"],"Z6003K7":{"Z1K1":"Z6020","Z6020K1":"Z6021"}}}

Completion checklist

Event Timeline

cmassaro moved this task from To Triage to Bugs to investigate on the Abstract Wikipedia team board.
DMartin-WMF renamed this task from Test fails due to differing representations of lightweight enum instances to Test fails due to differing representations of enum instances.Dec 4 2025, 5:10 AM
DMartin-WMF updated the task description. (Show Details)
DMartin-WMF changed the task status from Open to In Progress.Dec 18 2025, 2:09 AM
DMartin-WMF claimed this task.
DMartin-WMF lowered the priority of this task from High to Medium.

For the record, we adopted the 3rd proposed solution from the description:

Change the implementation of Z6803/Same Wikidata statement to recognize that Z6021 and {"Z1K1":"Z6020","Z6020K1":"Z6021"} are the same.

Change #1224079 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-12-10-133418 to 2026-01-07-132737

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

Change #1224079 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-12-10-133418 to 2026-01-07-132737

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

Jdforrester-WMF subscribed.

@DMartin-WMF: This has now been deployed; please validate and mark as Resolved (or move back to In Engineering, as appropriate).

More work needed. We successfully compare enum instances that are directly inside statements, but we still need to fix the comparison of enum instances inside of nested claims (which appear inside the values of Z6003K5 and Z6003K6).

Change #1234428 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2026-01-21-135031 to 2026-01-28-071101

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

Change #1234428 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2026-01-21-135031 to 2026-01-28-071101

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

@DMartin-WMF: This has now been deployed; please validate and mark as Resolved (or move back to In Engineering, as appropriate).