v1.0.0
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 runandtesseract servenow produce a new folder structure integrating outputs, logs, metrics, artifacts, and more.tesseract serveautomatically splits those per request. - This is breaking since
tesseract run --output-pathdoes not imply writing return payloads to a file anymore. Use the new--output-fileargument to control this behavior.
- New image tags
- After
tesseract build, images are automatically tagged using theversionkey 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 implicitlatesttag (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+base64format instead.
- Bye-bye Docker Compose
tesseract servedoes 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 servemultiple times, potentially with a--networkparameter to ensure Tesseracts are reachable from each other. - The
--service-namesCLI arg has been renamed to--network-alias.
- Removed
input-schema/output-schemaendpoints
- The schema endpoints have been removed from all interfaces (CLI, REST, Python API). Instead, use
openapi-schemathat contains the information for both inputs and outputs for all endpoints.
- Overhauled command line interfaces
- The way
tesseractandtesseract-runtimework is now more consistent with each other. - As a consequence,
tesseract run <mytess> --helpnow prints thetesseract runhelp, not that oftesseract-runtime. To print the help of<mytess>, please usetesseract run <mytess> apply --help. - Also,
tesseract-runtimecan now be fully configured from the command line (seetesseract-runtime --help). - Most subcommands of
tesseract-runtimedo 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
versionfromtesseract_config.yamlas 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-pathto 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_filefunction 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.serveandTesseract.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-formatbehave as expected (#307) - Test that LogPipe implementations do not diverge (#316)
- Use
--input-path/--output-pathasbase_dirinjson+binrefencoder (#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