Release v1.0.0
Tesseract Core has reached v1.0!
This is a huge release with several breaking changes, and an important milestone in the development of the project.
Breaking changes and how to upgrade
- New output folder structures
-
When paired with
--output-path
(and optionally--output-format
/--output-file
),tesseract run
andtesseract serve
now produce a new folder structure integrating outputs, logs, metrics, artifacts, and more.tesseract serve
automatically splits those per request. -
This is breaking since
tesseract run --output-path
does not imply writing return payloads to a file anymore. Use the new--output-file
argument to control this behavior.
- New image tags
- After
tesseract build
, images are automatically tagged using theversion
key fromtesseract_config.yaml
. This should not be breaking existing workflows in the vast majority of cases, but may lead to unexpected interactions when relying on the implicitlatest
tag (that is now added explicitly).
- No more msgpack
- Support for msgpack encoded payloads has been removed. All payloads are now required to be valid JSON. We recommend to use the
json+base64
format instead.
- Bye-bye Docker Compose
-
tesseract serve
does not rely on Docker Compose anymore. This simplifies the stack considerably, but also means that only one Tesseract can be served per call totesseract serve
. -
To recover the old behavior it is required to call
tesseract serve
multiple times, potentially with a--network
parameter to ensure Tesseracts are reachable from each other. -
The
--service-names
CLI arg has been renamed to--network-alias
.
- Removed
input-schema
/output-schema
endpoints
- The schema endpoints have been removed from all interfaces (CLI, REST, Python API). Instead, use
openapi-schema
that contains the information for both inputs and outputs for all endpoints.
- Overhauled command line interfaces
-
The way
tesseract
andtesseract-runtime
work is now more consistent with each other. -
As a consequence,
tesseract run <mytess> --help
now prints thetesseract run
help, not that oftesseract-runtime
. To print the help of<mytess>
, please usetesseract run <mytess> apply --help
. -
Also,
tesseract-runtime
can now be fully configured from the command line (seetesseract-runtime --help
). -
Most subcommands of
tesseract-runtime
do not accept CLI options anymore, that is,tesseract-runtime apply --output-path .
is nowtesseract-runtime --output-path . apply
.
For further help on how to upgrade, please visit the Tesseract Forum. For a list of all changes, please see the changelog below.
Changes to how Tesseract Core is developed
Since we have reached v1.0 now, weโre going to be stricter with backwards compatibility, deprecation, and versioning. What exactly this entails is not defined yet, but a few rules of thumb apply:
-
The external Tesseract API (i.e., what clients see) will stay 100% backwards compatible until v2.0.
-
Other interfaces may still change, but will do so at a slower pace and with deprecation cycles (i.e., warning users about features that are flagged for removal instead of removing them right away).
-
Breaking changes must be clearly marked as such, and patch version releases must not include breaking changes of any kind.
Where do we go from here?
Reaching v1.0 does not mean that development is done, or that no new features will be added. On the other hand, it does mean that Tesseracts have matured to the point where we donโt envision drastic changes to the way they work (at least not in the foreseeable future). This gives us the breathing room to focus on improving and extending whatโs already there.
In other words, now is a great time to start building on top of Tesseracts! Weโre excited to see what the community decides to do with this technology.
Whatโs Changed
Features
-
[breaking] Use
version
fromtesseract_config.yaml
as default Docker image tag (#267) -
Add network argument to
tesseract serve
(#285) -
Improved IDE type hints for array annotations (#291)
-
Add --network-alias option (#297)
-
Improve healthcheck after serve, add restart policy (#296)
-
Add hot example (#288)
-
Add network args to from_image (#299)
-
Add
--output-path
to serve (#295) -
[breaking] Drop msgpack support (#303)
-
Introduce job ID to control the location of output logs / artifacts (#314)
-
Also print text logs to stderr (#311)
-
Add experimental
require_file
function to mark externally mounted files as required at runtime (#261)
Bug Fixes
-
Move private pip imports into relevant func scope (#292)
-
Correct error message on use of T created via from_image (#298)
-
Ensure signature consistency between
engine.serve
andTesseract.from_image
(#302) -
Exclude broken version of setuptools-scm (#312)
-
Use TESSERACT_MLFLOW_TRACKING_URI instead of MLFLOW_TRACKING_URI (#313)
-
Make
tesseract serve --output-format
behave as expected (#307) -
Test that LogPipe implementations do not diverge (#316)
-
Use
--input-path
/--output-path
asbase_dir
injson+binref
encoder (#304) -
Bring back CLI option shorthands (#323)
-
Ensure .dockerignore is observed to avoid copying large amounts of data to build contexts (#218) (#321)
-
Change location of mlruns when TESSERACT_MLFLOW_TRACKING_URI is a relative path (#325)
Refactor
-
[breaking] Remove ability to serve multiple tesseracts / docker compose (#286)
-
Overhaul all clis (#301)
-
[breaking] Remove input-schema and output-schema endpoints (#308)
-
Transpose folder structure (#318)
Documentation
-
Add link to pre-commit library (#327)
-
Document how to use Tesseract via SLURM on HPC clusters (#320)
-
Add Documentation for podman usage via TESSERACT_DOCKER_EXECUTABLE (#324)
Full diff: v0.10.2โฆv1.0.0