Page MenuHomePhabricator

Improve testing of Rust Avro deserialization
Closed, ResolvedPublic

Description

Description

Deserializating directly from strings is difficult because of our use of a HashMap inside an untagged union. We may have to bite the bullet and 1) make the schema type crate-wide public (pub(crate) annotation on all members) and 2) define the expected values in code.

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

  • determine whether there's a way to handle deserialization of strings in a more graceful way
  • add more tests for Rust Avro deserialization, including tests for function calls with arguments

Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task


Completion checklist

Event Timeline

Jdforrester-WMF changed the task status from Open to In Progress.Sep 5 2025, 4:09 PM
Jdforrester-WMF assigned this task to cmassaro.
Jdforrester-WMF subscribed.

Testing isn't deployed, so this doesn't need to wait for deployment before sign-off.

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

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

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

Change #1185966 merged by jenkins-bot:

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

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

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

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-09-03-123051 to 2025-09-09-171717

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

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

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-09-04-003606 to 2025-09-08-191243

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

Change #1186978 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-09-03-123051 to 2025-09-09-171717

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

Change #1186979 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-09-04-003606 to 2025-09-08-191243

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