Skip to content

BioThings v1.2.0 release

Choose a tag to compare

@everaldorodrigo everaldorodrigo released this 08 Oct 22:46
· 96 commits to master since this release
22ef1f2

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.TaskGroup and 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_WORKERS setting, 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_default as a deprecated alias of json_enc_hook, and string conversion of non-string dictionary keys; serializer.JSONDecodeError now aliases msgspec.DecodeError, and naive datetimes are encoded without a +00:00 suffix, by @newgene in #458
  • Replaced deprecated asyncio.get_event_loop() and asyncio.ensure_future() calls with get_loop() and loop.create_task(), and added a first_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 the exists_field_alias_scan build config option, stores field aliases in index metadata, and q, filter, and post_filter query strings use them, by @everaldorodrigo in #469
  • Annotated /metadata/fields entries with the sources that define them, listed each source's fields in /metadata only in development mode, and stored a merged field mapping for each source in build metadata by @jal347 in #454
  • Fixed flatten_inspection_data failing on running or failed inspection jobs, and quick index failing with No such builder after 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() and prepare(state) pickling workaround with __getstate__ in dumpers, uploaders, and DataTransform edges, and removed unprepare() from builders, by @jal347 in ec7eb9b
  • Logged a warning instead of raising an error when a registered dumper has no SCHEDULE by @DylanWelzel in #470
  • Fixed the source name missing from source registration warnings by @jal347 in 77c876b
  • Capped aiohttp below 3.14 in the dev extra until aioresponses supports 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