HomePhabricator

editquality: refactor Blubber config to share code

Description

editquality: refactor Blubber config to share code

This change refactors the Blubber configuration to
allow us to share code between model server implementations.

The idea is the following: the new 'python' directory hosts
modules containing code that should/could be shared in
multiple model.py files, hopefully reducing code repetition.
The trick is to copy all *.py files (no subdirectories for
the moment) to the same directory as model.py in the Docker
images. This allows us to import those modules very easily
in our model.py code.

As side effect, the Blubber invocation changes, so our docs
will need to be updated as well.

Before:
cd revscoring/editquality
blubber ../../.pipeline/editquality/blubber.yaml production

After:
blubber .pipeline/editquality/blubber.yaml production

In my opinion the latter is more clean and easy to adopt
by new users.

Bug: T301878
Change-Id: I5690152b57bd76cb969efe943e8721bd6f333e44

Details

Provenance
elukeyAuthored on Aug 3 2022, 1:42 PM
Parents
rMLIS636fd0c3bd8d: Remove Dockerfiles from model-server directories
Branches
Unknown
Tags
Unknown
References
refs/changes/34/820134/4
ChangeId
I5690152b57bd76cb969efe943e8721bd6f333e44