When there's a connection error, the returned value is "apierror-wikilambda_function_call-not-connected". We should translate this into a ZErrorType built-in and a Z5 error
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | gengh | T406345 [26Q2] Error advocacy | |||
| Resolved | Arpitajain28 | T305612 WikiLambda: Translate "not connected" errors from FunctionCall and PerformTest APIs into ZErrors |
Event Timeline
Change #1194726 had a related patch set uploaded (by Arpitajain28; author: Arpitajain28):
[mediawiki/extensions/WikiLambda@master] T305612: Translate connection errors to ZErrorType built-in and Z5 errors
I have subscribed your task and tried to resolve the issue mentioned in the description. You can check and tell me the changes required.
Hello, @Arpitajain28! Thank you for your contribution!
We have recently merged significant changes in the files you worked on, so I rebased your patch on top of those changes.
Adding a new builtin ZError requires a bit more work; the existing builtin errors are in function-schemata/data/definitions (https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/tree/main/data/definitions) and should be added there first. You can see a table of the current errors in here, too: https://meta.wikimedia.org/wiki/Abstract_Wikipedia/Representation_of_errors
So, the next free slot should be Z576, but I'd suggest using the Z529 one, so that it's contiguous to Z530/Api error (which seems closely related).
The process to add an error would be:
- Add the new ZObject to function-schemata/data/definitions, and get it merged
- Once that is merged, we would update wikilambda reference of function-schemata in an isolated patch (like this one https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1192975)
- Then, your patch could be merged (this would make sure that the object referred to i.e. Z529 exists as a built-in)
I can get function-schemata ready for your changes and follow-up in gerrit.
gengh opened https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/merge_requests/294
definitions: Add connection failure error type Z529
jforrester merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/merge_requests/294
definitions: Add connection failure error type Z529
Change #1203549 had a related patch set uploaded (by Jforrester; author: Jforrester):
[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (5bf82a1)
jforrester opened https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/wikilambda-cli/-/merge_requests/94
Update function-schemata sub-module to HEAD (c92f78e)
jforrester opened https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/485
Update function-schemata sub-module to HEAD (c92f78e)
jforrester opened https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-evaluator/-/merge_requests/443
Update function-schemata sub-module to HEAD (c92f78e)
apine merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/wikilambda-cli/-/merge_requests/94
Update function-schemata sub-module to HEAD (c92f78e)
apine merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/485
Update function-schemata sub-module to HEAD (c92f78e)
apine merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-evaluator/-/merge_requests/443
Update function-schemata sub-module to HEAD (c92f78e)
Change #1203549 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (91e3ffe)
Change #1194726 had a related patch set uploaded (by Genoveva Galarza; author: Arpitajain28):
[mediawiki/extensions/WikiLambda@master] Translate connection errors to ZErrorType built-in and Z5 errors
Change #1194726 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Translate connection errors to ZErrorType built-in and Z5 errors
Change #1206919 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):
[mediawiki/extensions/WikiLambda@master] Return Z529/Connection error in other applicable instances
Change #1206919 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Return Z529/Connection error in other applicable instances
Change #1206981 had a related patch set uploaded (by Jforrester; author: Jforrester):
[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-11-08-223341 to 2025-11-18-175356
Change #1206981 merged by jenkins-bot:
[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-11-08-223341 to 2025-11-18-175356
Change #1211872 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):
[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-11-12-122736 to 2025-11-17-175029