Page MenuHomePhabricator

Replace hardcoded performTest response with makeResultEnvelope and a specific error type
Closed, ResolvedPublic

Description

In performTest.js, when the test fails, the returned object is a hardcoded Z22 with a hardcoded error. This needs to change to:

  • makeMappedResultEnvelope, and
  • normalError error constructor, with a specific error type for these cases

Completion criteria:

  • function-schemata:
    • creation of new error type in function-schemata data/definitions and errors.js
  • function-orchestrator:
    • update performTest to return this error type
    • add performTest specific tests that check return object when test fails
  • wikilambda:
    • add errortype id to ZErrorTypeRegistry
    • modify front-end in case the response is used or displayed
  • Documentation:
    • Update Representation of errors page with the new reserved error type Zid

Event Timeline

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

[mediawiki/services/function-orchestrator@master] [WIP] Replace Z10 hardcoded in performTest error with Z512 error

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

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

[mediawiki/services/function-schemata@master] Repurpose Z512 to test failed error

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

Change 809910 merged by jenkins-bot:

[mediawiki/services/function-schemata@master] Repurpose Z512 to test failed error

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

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

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (d056b60)

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

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

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (d056b60)

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

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

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (d056b60)

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

Change 810023 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (d056b60)

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

Change 810024 merged by jenkins-bot:

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (d056b60)

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

Change 810025 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (d056b60)

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

Change 809909 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Replace Z10 hardcoded in performTest error with Z512 error

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