Page MenuHomePhabricator

Make the orchestrator emit an understandable error rather than have odd bugs when a non-implementation is supplied as the implementation to use
Closed, ResolvedPublicBUG REPORT

Description

Description

In ApiPerformTestTest.php, there is a test called "Request specifies non-implementation as implementation, by reference." This test broke due to a notionally unrelated change in the orchestrator.

Because this test involves structural validation, we technically don't make any guarantees around it right now. We should do so in future, and we can make improvements to the orchestrator to make this specific case easier to reason about.

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

  1. comment out the offending test
  2. catch obviously degenerate Z14s in the orchestrator (Implementation.create())
  3. re-enable the test with updated expectations

Completion checklist

Event Timeline

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

[mediawiki/services/function-orchestrator@master] Test for when the list of implementations contains something that is not a Z14.

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

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

[mediawiki/extensions/WikiLambda@master] ApiPerformTestTest: Disable failing test of passing a non-implementation

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

Change 891618 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Return an error when the list of implementations contains something that is not a Z14.

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

Change 891622 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] ApiPerformTestTest: Disable failing test of passing a non-implementation

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

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

[mediawiki/extensions/WikiLambda@master] ApiPerformTestTest: Re-enable test of passing a non-implementation

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

Jdforrester-WMF renamed this task from Unreasonable bugs occur when something other than an implementation is supplied in place of an implementation to Make the orchestrator emit an understandable error rather than have odd bugs when a non-implementation is supplied as the implementation to use.Mar 7 2023, 6:54 PM
Jdforrester-WMF changed the subtype of this task from "Task" to "Bug Report".

Change 891656 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] ApiPerformTestTest: Re-enable test of passing a non-implementation.

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