Page MenuHomePhabricator

Return Z22 with Error if Call to Wiki Fails
Closed, ResolvedPublic

Description

Description

Currently, if a wikilambda_fetch operation goes wrong, the orchestrator will surface an exception when it tries to access undefined.wikilambda_fetch. This is not good. The orchestrator should return a Z22 with an error in its metadata.

Also, the Z22 returned is a little odd, since it populates neither the result nor the error, which should never happen.

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

  • failed fetches return an error
  • bug will be filed to determine why a degenerate Z22 arises in this case

Completion checklist

Event Timeline

Change 902789 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[mediawiki/services/function-orchestrator@master] Return error in Z22 when call to wikilambda_fetch fails to retrieve an object.

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

Change 902789 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Return error in Z22 when call to wikilambda_fetch fails to retrieve an object.

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

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

[mediawiki/extensions/WikiLambda@master] Fix ApiPerformTest test: not found when passed a non existing implementation

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

Change 903251 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix ApiPerformTest test: not found when passed a non existing implementation

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