Repository navigation
BioThings v1.2.0 release
What's Changed
- Required Python 3.11 or newer, dropped support for Python 3.9 and 3.10, and updated CI to test Python 3.11 through 3.14 and free-threaded 3.14t by @newgene in #458
- Migrated JobManager job submission and the dump, upload, build, diff, sync, index, snapshot, inspect, and publish pipelines to
asyncio.TaskGroupand awaited steps, so a failed job cancels its sibling jobs and semaphores no longer leak when job admission or a download fails, by @newgene and @DylanWelzel in #458 - Added the
HUB_FREE_THREADED_WORKERSsetting, which runs CPU-bound merge, diff, and upload jobs in threads instead of forked processes on free-threaded Python builds, by @newgene in #458 - Replaced orjson with msgspec in
biothings.utils.serializer, keeping public function signatures,orjson_defaultas a deprecated alias ofjson_enc_hook, and string conversion of non-string dictionary keys;serializer.JSONDecodeErrornow aliasesmsgspec.DecodeError, and naive datetimes are encoded without a+00:00suffix, by @newgene in #458 - Replaced deprecated
asyncio.get_event_loop()andasyncio.ensure_future()calls withget_loop()andloop.create_task(), and added afirst_exception()helper for unwrapping exception groups, by @newgene in #458 - Fixed file descriptor leaks that could crash the Hub with "Too many open files" by caching MongoDB and Elasticsearch clients per process, reusing them across indexing batches, and closing archive file handles in the dump and upload helpers, by @everaldorodrigo and @DylanWelzel in #458 and #465
- Added optional index-time aliasing to speed up
_exists_queries on large object fields: a post-index scan, enabled with theexists_field_alias_scanbuild config option, stores field aliases in index metadata, andq,filter, andpost_filterquery strings use them, by @everaldorodrigo in #469 - Annotated
/metadata/fieldsentries with the sources that define them, listed each source's fields in/metadataonly in development mode, and stored a merged field mapping for each source in build metadata by @jal347 in #454 - Fixed
flatten_inspection_datafailing on running or failed inspection jobs, and quick index failing withNo such builderafter an inspected mapping was saved, by @DylanWelzel in #463 - Fixed DataTransform nested lookups through lists of dicts to resolve the rest of the path in every item, so deeper paths return all of their values and non-dictionary intermediate values no longer raise errors, by @everaldorodrigo in #458 and 44f1bf3
- Replaced the
unprepare()andprepare(state)pickling workaround with__getstate__in dumpers, uploaders, and DataTransform edges, and removedunprepare()from builders, by @jal347 in ec7eb9b - Logged a warning instead of raising an error when a registered dumper has no
SCHEDULEby @DylanWelzel in #470 - Fixed the source name missing from source registration warnings by @jal347 in 77c876b
- Capped
aiohttpbelow 3.14 in thedevextra untilaioresponsessupports it by @newgene in #458 - Added a JobManager benchmark comparing process and free-threaded workers by @newgene in #458
- Fixed missing code blocks in the Studio tutorial by @jal347 in de7a60c
Full Changelog: v1.1.4...v1.2.0