Page MenuHomePhabricator

zTesterResults: Improve error handling when perform test fails.
Closed, ResolvedPublic

Description

Description

If the wikilambda_perform_test internal API returns an error (MW error or ZError), the zTesterResults store module stores the error but does not communicate this error anywhere.
In the case of this call being performed on a Function Viewer page, the tester error should be displayed in the individual dialogs that are shown on clicking on the "Failed" button, for each test row.

It would also be good if we can use the global error module to store and retrieve these errors.


Completion checklist

Event Timeline

Mcastro moved this task from To triage to Backlog on the Abstract Wikipedia team board.

Change #1050612 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] [WIP] Show error message when function call returns a HTTP error instead of a Z22

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

Change #1050612 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Show error message when function call returns a HTTP error instead of a Z22

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

Change #1058614 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Fixit: Add ApiError class to generalize error handling

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

Change #1058614 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fixit: Add ApiError class to generalize error handling

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