Repository navigation
Replace the HuBMAP C2M2 dataloader with one built on the files search API — Closes #127 - #128
Draft
conradbzura wants to merge 37 commits into
Draft
conradbzura wants to merge 37 commits into
conradbzura wants to merge 37 commits into
Conversation
HuBMAP publishes its processed outputs in formats the EDAM table had no entry for, so their file_format came out null. BCF, Matrix Market and salmon quant.sf have EDAM terms; h5mu, h5 and SnapATAC .snap are HDF5 containers. EDAM has no Arrow or Parquet term, so those mint cfdb: tokens rather than aliasing a columnar binary onto a text or HDF5 term.
The files search index carries each file's parent dataset status (Published, QA, ...). It is a property of the dataset, so it belongs on the collection's HuBMAP enrichment alongside pipeline and processing, filterable through EnrichedHubmapCollectionInput.
The batching, deferred stale-clear, cancellation and finally-flush semantics in the ENCODE ingest are subtle enough that a second REST API DCC forking them would be how the two copies drift. The function now takes the submission whose slice it owns and an optional per-document tally callback, so the ENCODE-specific compression and annotation-type distributions move into the ENCODE caller. Progress and log lines name the submission instead of hard-coding ENCODE.
HuBMAP's quarterly C2M2 zip disagrees with what its portal actually serves, and most of the datasets worth having are unreachable through it. The loader now builds documents straight from the portal's file-grain Elasticsearch index (/v3/files/search), following the rest_api precedent ENCODE set: no zip download, no TSV load, and no materializer run. Dataset-level context the files index lacks -- donor demographics, pipeline, assay metadata, genome assembly -- is prefetched once from the dataset index into memory and joined per file, and organ codes map to UBERON through one UBKG request. Documents therefore land fully populated in a single insert pass, so the two HuBMAP enrichment stages, the DOI-URL matching heuristic and the non-public pruning pass are all deleted. The index holds only public files, which is what retired the pruning. Files carry real md5, sha256 and an int64 size_in_bytes, access_url points at the assets endpoint, and is_data_product is parsed from the index's "True"/"False" strings. Donors are deduplicated because the index repeats one donor per contributing tissue block. A configurable extension allowlist (HUBMAP_FILE_EXTENSIONS) is applied server-side, since 98% of the 9.9M indexed files are .tif microscopy tiles the API cannot serve meaningfully. The id_namespace moves to https://hubmapconsortium.org, mirroring ENCODE's portal-URL convention. Every sync clears and rebuilds the HuBMAP slice, so the change costs no continuity.
The collection enrichment gained dataset_status, but the dump's collection_extra_hubmap table had no column for it, so every dump dropped it silently. Adding the column changes the schema's shape, so schema_version moves to 3.
HUBMAP-SUPPLEMENT.md described the C2M2 enrichment stages, the DOI-URL matching, and the pruning pass, all of which are gone. It now documents the source endpoints, entity construction, the extension allowlist, and the per-entity field mapping. The README and the dump loader no longer say that HuBMAP stores size_in_bytes as a string or takes compression_format from a C2M2 datapackage. Both now come from the files index, an int64 and a filename-suffix derivation respectively, as for ENCODE.
Pins the behaviors the live index forced: a donor repeated once per tissue block becomes one subject (including a property over arbitrary repetition), and is_data_product parses the index's "True"/"False" strings while an absent or unrecognized value stays unknown rather than becoming false. Also covers the fetch paths no test reached: a client error propagating from both search walks, a sortless page ending pagination, uuid-less dataset hits being skipped, and a UBKG error status degrading to an empty organ map.
Every function under test in services/hubmap.py is module-level, and the Python test guide requires such functions to be tested by module-level test functions rather than inside Test-prefixed classes naming no real class. The ENCODE precedent, tests/test_encode.py, already follows that layout. Pure restructure: no test body changes.
The files-index loader stores HuBMAP access_url as an https assets URL rather than a drs:// URI, but /data bypassed DRS only for ENCODE by name, so every HuBMAP file that streams rather than serving a cached artifact -- passthrough formats, formats with no processor, raw=true, and everything when the workflow subsystem is off -- was parsed as a DRS URI and answered 400, while its readiness probe reported ready. Dispatch on the URL scheme instead, as resolve_download_url already does for the workers: anything that is not drs:// streams directly, and only drs:// resolves through a broker. The direct path checks the DB-sourced URL against the outbound allowlist before the response starts, so a disallowed URL is a clean 502 rather than a stream that fails after its headers were sent. The HuBMAP test fixtures move to the document shape the loader actually writes, which is what hid this.
Probing the live HuBMAP and UBKG APIs showed several upstream fields do not hold what their names promise, and the fetchers trusted them: - UBKG's organ_uberon carries FMA ids for the lateral organs (knee, mammary gland, tonsil), which landed as anatomy ids where the data model promises UBERON. Accept only UBERON ids, falling back to the entry's side-neutral category term, and leave a code with neither unmapped. Name anatomy by the UBKG term rather than the per-file label, which drifts between files for one code. - The organ map's documented degrade-not-abort contract caught only ClientError, while aiohttp raises a bare TimeoutError on an exceeded total; a timeout, an undecodable body, or a non-list body now degrades to no anatomy terms with a warning. - Every .bcf in the index is a CODEX raw-acquisition sidecar, not binary VCF, so the default allowlist no longer ingests them. - One transient error among ~54 sequential pages failed the sync after the old slice was cleared, and a 200 with failed shards, an upstream timeout, or no hits envelope was walked past or read as the end of the stream. Each page is now retried with backoff and partial pages are refused. The file stream takes an optional deadline so the sync can bound its time under the cutover lock. - The file query now filters on data_access_level public, turning the all-public assumption that retired the pruning pass into an invariant of the load. The property test gains its required settings and patches the environment through mocker instead of writing os.environ directly.
The HuBMAP sync took the global cutover lock before prefetching ~10k datasets and the UBKG organ map, though neither touches the database, so every API request for any DCC waited out that network time and failed at the 60s cutover timeout. The prefetch now runs before the lock, and the in-lock file stream carries one deadline from HUBMAP_SYNC_TIMEOUT_SECONDS (default 1800) so the lock cannot outlive the sync lock's one-hour stale threshold and admit a second, clearing sync -- the bound ENCODE's metadata budget already applies. An empty HUBMAP_FILE_EXTENSIONS drained an empty stream, which the shared ingest treats as an authoritative empty result, deleting the whole HuBMAP slice. It is now a no-op that leaves the slice in place, the outcome an empty ENCODE_ANNOTATION_TYPES has for ENCODE. Index creation moves into a finally, so a stream that fails mid-load still leaves its partial slice indexed, as ENCODE's does.
The dump's HuBMAP fixture still models the retired C2M2 shape, and passes only because the loader accepts both. Feeding it the loader's own output pins the shape the PR introduces: integer sizes, the file and collection extensions, and the collection-level anatomy and subject junctions HuBMAP uses in place of biosamples.
The supplement described the default allowlist as a genomics tail when most of it is imaging-derived tables and NIfTI masks, claimed every assets URL resolves without authentication, said processed datasets retain no BAMs, and promised ENCODE parity for an empty allowlist that the loader did not honor. It now records what the default admits and why .bcf is excluded, the retry and partial-page handling, the UBKG UBERON fallback, and the prefetch-outside-the-lock flow. The README's materialize-dcc example used DCC=hubmap, which now deletes the HuBMAP corpus since no raw tables remain to rebuild from; it uses 4dn and says which DCCs are never materialized. It also lists the minted arrow and parquet tokens, and notes that v_file_biosample is biosample-grained so HuBMAP rows there carry no anatomy or subject. Comments in matrix.py, the router helpers, and the file model still described HuBMAP sizes as strings, a pruning pass, and DRS-only access URLs.
Routing HuBMAP's https access URLs through the direct-stream path exposed a defect it shares with ENCODE and the 4DN sidecar: the response was built with status 200/206 before upstream was contacted, and Starlette sends the status line before iterating the body, so an upstream 403, 404 or 5xx reached the client as a truncated 200 rather than the 403/404/502 the /data contract documents. stream_upstream_url now pulls the first chunk before building the response, which opens the request, follows redirects and reads the status, and maps upstream refusal, absence, failure and timeout to 403, 404, 502 and 504. HEAD stays a metadata answer. The HuBMAP /data tests now mock at the drs boundary rather than the internal streaming helper, seed the files collection the loader writes, and pin each upstream status.
The HuBMAP loader imported the timeout parser -- a private name -- and the compression-suffix tables and derivation from services/encode.py, so a refactor of ENCODE internals could silently change HuBMAP. They are DCC-neutral, so they move to services/ingest_common.py, the timeout parser as the public timeout_from_env, and both loaders import them from there. Their tests move with them, and timeout_from_env, newly public, gains direct tests of its default, parse, and refusal paths.
A snapshot of UBKG's organs endpoint, keyed by the organ code the HuBMAP files index carries, mapping each code to its UBERON id and its UBERON label (from OLS4). The lateral knee, mammary gland and tonsil codes, for which UBKG's organ_uberon holds FMA ids, map to the side-neutral UBERON parent UBKG names under category. Naming by the UBERON label rather than UBKG's display term gives an anatomy id the same name in HuBMAP as in ENCODE and 4DN.
The sync tests drive the module's private per-DCC loaders directly, against the guide's rule on private references, because the only public entry point schedules the run as a detached task and returns before doing any work. The exception was a convention nobody had written down; the module docstring now records it and why, so a new loader's tests follow it knowingly.
Several ways a HuBMAP sync could replace a good slice with a worse one and report success: - A files walk that drained cleanly with no documents -- what a mapping change on the index, or an allowlist matching nothing, returns -- was treated as authoritative and deleted the whole submission. The shared ingest gains a clear_on_empty switch, HuBMAP turns it off, and an empty drain now raises instead. The first page also asks for an exact total, and a walk ending short of it raises. - An empty dataset map loaded every file without its dataset context; it is now refused before the cutover lock. Join misses are counted and logged, and donors listed only under a pooled dataset's plural donors field now join. - One malformed upstream document aborted the stream after the stale clear; it is now skipped and counted. - The UBKG organ fetch, on any failure, left the whole slice without anatomy, and named terms with UBKG display strings. Organs now map through the checked-in UBERON table, so there is no fetch to fail and ids carry UBERON labels. - The budget was counted from HuBMAP's own start, but the sync lock's staleness counts from the start of the whole run and HuBMAP runs last, so a late HuBMAP sync could outlive the lock. The deadline is now clamped to what remains of it and covers the dataset prefetch. - The bcf -> BCF mapping existed only to mislabel HuBMAP's CODEX .bcf sidecars if an operator opted them in; it is dropped. Wide-domain helpers gain the property tests the guide requires: format derivation ignores any compression wrapper, and every access_url decodes back to its dataset and rel_path.
The supplement now covers the organ table and why it replaced the UBKG fetch, the empty-walk, short-walk and empty-dataset-map refusals, the deadline clamped to the sync lock, join-miss counting, the pooled donors join, and the read outage and partial-slice window the in-lock design still carries (tracked in #129). It corrects the retry count, says how /data reports an asset that fails upstream, and warns that the assets host throttles and can block a client by IP. The README's materialize-files row now warns that it deletes every ENCODE and HuBMAP document, as the adjacent materialize-dcc row does, and ENCODE-SUPPLEMENT no longer claims ENCODE is the only consumer of the format table.
The loader's tests reached it through a private name under a recorded exception to the test guide, and grouped tests of a module-level function in a class. Making sync_hubmap public removes the need for the exception for the new loader, and module-level test functions match the guide's placement rule.
The backoff fixture patched the sleep attribute of the shared asyncio module, stubbing it for every coroutine running during a test. The loader's pacing constants are now public, so the fixture zeroes those instead. Two docstrings still described the removed organ prefetch and the UBKG mapping; they now name the organ map.
The sync lock's staleness counted from the start of the whole run, so the DCC that ran last inherited what the earlier ones left of the hour, and the HuBMAP deadline clamp could leave it no time at all. The sync now records a heartbeat as each DCC starts, staleness is judged from it (falling back to the start time for older locks), and the clamp counts from the heartbeat. The heartbeat is scoped to the task holding the lock, so a run that was taken over cannot keep its successor alive.
The HuBMAP slice is cleared at the stream's first committed batch, so a deadline that expires mid-walk left a truncated slice. Before taking the cutover lock, the sync now checks how much of its deadline remains and refuses, keeping the existing slice, unless it covers the walk.
The API builds the model for every document on a page, so one stored document of the wrong shape, such as a donor reporting two races where one string is expected, failed every page holding it. The transform guard now validates against FileMetadataModel too, skipping and counting a document that fails.
Files the index lists without a size, md5 or sha256 were stored with a null field and nothing recorded the shortfall. The transform now counts each missing field and the sync logs the counts.
The files walk was held to the exact total its first page reported, but the dataset walk was not, so a walk that ended early returned a partial map and documents loaded without their dataset context. The dataset walk now asks for the same exact total and raises when it delivers fewer datasets.
UBKG maps the manubrium to UBERON:2001553, a teleost term, and the prostate to UBERON:0000079, the whole male reproductive system. The table now holds the human organs, manubrium of sternum and prostate gland, and a test pins both.
Opening the upstream stream before the response is built applies to the 4DN sidecar path of /index as well as /data, but only /data had a test for it.
Correct the claim that the deferred clear survives a clamped deadline, describe the heartbeat and the floor that replace it, and state the real bound on how long the file stream can hold the cutover lock. Add the model validation, missing-field counters and dataset completeness check, the corrected organ terms, the integer width of size_in_bytes, the statuses /index can now return, and the re-sync a rollback past this loader needs.
The files index reports 2147483647 for 263 public files it could not size in 32 bits; a sampled qptiff carrying it is really 3287888901 bytes. Stored as a size, /data would refuse every Range request past 2 GiB of such a file. The transform now nulls it, counts it apart from sizes that are missing outright, and the sync logs the count.
A file's dataset_uuid can name a Support entity, which is how HuBMAP files its image pyramids (1,585 entities, every one processed). The dataset walk asked for entity_type Dataset only, so those files joined to nothing and loaded without donors, pipeline or processing state. Support entities carry the same fields, so the walk now takes both.
TIFF and OME-TIFF have EDAM terms. The vendor whole-slide formats (QPTIFF, SVS, NDPI, SCN, CZI, VSI, ETS) have none and get minted cfdb: tokens rather than an alias onto TIFF, since a client choosing a reader needs the vendor layout. The HuBMAP derivation tries a filename's last two segments first, so a .ome.tif resolves to OME-TIFF.
The files index records only a file's last suffix, so OME-TIFF images and 9.7M plain .tif acquisition tiles share file_extension .tif. An allowlist entry with more than one dot is now matched server-side as its last segment plus a case-insensitive rel_path suffix, so .ome.tif can be admitted without the tiles.
cfdb loads file metadata, not bytes, and /data streams an image as-is, so an image is as useful a record as a table. The default allowlist now takes .ome.tif, .tiff, the slide-scanner formats, .png and .jpg; plain .tif stays out.
Raw datasets hold the acquisitions the portal serves; processed ones hold pipeline outputs and the viewer-ready image pyramids. The files index carries no processing field, so the transform checks the joined dataset and skips files from one that is not processed, counted and logged at info. A file whose dataset is absent from the dataset map cannot be confirmed processed and is skipped too, under its own warning; it used to load without dataset context. Against the live index this keeps 62,646 of 117,438 allowlisted files, and drops all 2,723 Cell DIVE .nii.gz masks, whose assets URLs 404.
Records the compound-suffix allowlist and its new default, the Support entity walk, the processed-only rule with its live counts, and the size ceiling. Corrects the claim that the assets host blocks clients by IP: the 403s behind it were its refusal of curl's default user agent.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace HuBMAP's C2M2 zip ingest with a loader that builds CFDB documents directly from the portal's file-grain search index,
POST https://search.api.hubmapconsortium.org/v3/files/search, following therest_apiprecedent ENCODE set. HuBMAP becomes arest_apiDCC:cfdb sync hubmapmakes no zip download, no TSV load and no Rust materializer run, and the two HuBMAP enrichment stages, the DOI-URL matching heuristic and the non-public pruning pass are deleted.Dataset-level context the files index lacks (donor demographics, pipeline, assay metadata, genome assembly) is prefetched once from the dataset index (
/v3/portal/search, ~11.8kDatasetandSupportentities) into an in-memory map keyed bydataset_uuid, before the cutover lock is taken. Organ codes map to UBERON through a checked-in table rather than a per-sync request. Each file document is therefore emitted fully populated in a single insert pass, through an_ingest_rowsgeneralized from ENCODE's rather than forked.Scope is set two ways. A configurable filename-suffix allowlist,
HUBMAP_FILE_EXTENSIONS, is applied server-side together with adata_access_level: publicfilter; its default covers the genomics and tabular formats and the image formats, admitting.tifonly as.ome.tifso the ~9.7M acquisition tiles stay out. And only files from datasets markedprocessedare loaded: raw acquisitions stay with the portal. Against the live index on 2026-11-23 that is 62,646 files, 10,655 of them OME-TIFF images (4,670 viewer-ready pyramids).access_urlis the file's direct assets URL, so/datastreams HuBMAP files straight fromassets.hubmapconsortium.organd now maps an upstream refusal to its real status before the response starts.The load refuses rather than degrades whenever it cannot tell a complete answer from a partial one: an empty or short files walk, an empty or short dataset walk, or a deadline too close to finish the walk all raise and leave the previous slice served. A sync-lock heartbeat at each DCC boundary gives HuBMAP, which runs last, a full hour of lock life rather than whatever 4DN and ENCODE left of it.
Two costs remain, shared with ENCODE's in-lock design and tracked in #129: the file stream holds the global cutover lock while it runs, and a failure after the first committed batch still leaves a partial slice. Only a staged load swapped in under a short lock would remove both.
Closes #127
Proposed changes
HuBMAP files search API loader (
services/hubmap.py)fetch_file_metadata(extensions, *, deadline=None)streams the files index withsearch_afterpagination in pages of 1000, filtered server-side to the allowlist and to public files. A compound allowlist entry such as.ome.tifis matched as its last segment plus a case-insensitiverel_pathsuffix, because the index records only a file's last suffix. The first page asks for an exact total (track_total_hits), and a walk that ends with fewer documents raises.fetch_dataset_metadata_bulk(*, deadline=None)is keyed by datasetuuid(it wasdoi_url), so it joins against thedataset_uuidevery file document carries. It walks bothDatasetandSupportentities, since HuBMAP files its image pyramids as Support entities with the same fields. It collects donor metadata from bothdonoranddonors[], and is held to the same exact-total check._search_page, which retries up to three times with backoff on a transport error, a timeout, a 429/5xx, or a 200 that is partial (failed shards,timed_out, or no hits envelope), since Elasticsearch answers 200 with whatever the healthy shards returned. All fetches share one deadline,HUBMAP_SYNC_TIMEOUT_SECONDS(default 1800).build_donor_lookupmerges donors across datasets into one uuid-keyed map.transform_file_to_cfdb(src, *, dataset_metadata, donor_lookup, organ_map=None, stats=None)maps one index document to one CFDB document:file_uuidbecomeslocal_id, withaccession_idexplicitly null (Populateaccession_idfor HuBMAP collections #102);rel_pathsupplies the basenamefilename, with the full path onextra.hubmap.rel_path.size_in_bytesis stored as an integer, closing the string-typed gap of the C2M2 TSV path, with realmd5andsha256. A missing size or checksum is counted per field. The index's 32-bit ceiling, 2,147,483,647, is stored as null and counted separately, since it is a clamp rather than a size.access_urlishttps://assets.hubmapconsortium.org/{dataset_uuid}/{rel_path}, percent-encoded.file_formatis derived from the inner extension with any compression suffix stripped, trying the last two segments first so.ome.tifmaps to OME-TIFF, andcompression_formatuses ENCODE's absent-when-undetermined derivation.donors[]and anatomy fromorgans[]through the organ table. Unknown organ codes and join misses are counted, never fabricated.is_data_productis parsed from the index's"True"/"False"strings, and left absent when missing or unrecognized.file_extensions_from_env()normalizes case and leading dots and collapses repeats; set-but-empty ingests nothing and warns, matchingENCODE_ANNOTATION_TYPES. The default adds.ome.tif,.tiff,.qptiff,.svs,.ndpi,.scn,.czi,.vsi,.ets,.pngand.jpgto the genomics and tabular formats..bcfis excluded because every.bcfin the index is a CODEX acquisition sidecar, not binary VCF.dcc_registry.py: HuBMAP becomestype: "rest_api"withid_namespacehttps://hubmapconsortium.org, mirroring ENCODE's portal-URL convention.Shared ingest helpers (
services/ingest_common.py)timeout_from_env, the compression-suffix tables andderive_compression_formatout ofencode.pyinto a DCC-neutral module both loaders import, so a refactor of one loader cannot silently change the other. ENCODE's tests for them move totests/test_ingest_common.py.HuBMAP organ table (
services/ontology_mappings.py)HUBMAP_ORGAN_TO_UBERON, a 47-code snapshot of the UBKG organs endpoint with UBERON labels from OLS4. A per-sync UBKG fetch would have stripped anatomy from a whole sync whenever it failed, and UBKG's display terms are not UBERON labels.MBmaps to manubrium of sternum (UBKG gives a teleost term), andPRto prostate gland (UBKG gives the whole male reproductive system).mtx, salmonsf, and the HDF5 containersh5mu,h5andsnap. Mintcfdb:arrowandcfdb:parquet, since EDAM has neither term.format:3591), OME-TIFF (format:3727) andjpeg. The vendor slide formats (QPTIFF, SVS, NDPI, SCN, CZI, VSI, ETS) have no EDAM term and are minted ascfdb:tokens rather than aliased onto TIFF.Sync pipeline (
services/sync.py,services/locks.py)sync_hubmap. It resolves the allowlist, computes the deadline, and prefetches the dataset map outside the cutover lock, refusing an empty map. It then refuses to start the file stream unless the remaining deadline covers the walk. Under the HuBMAP cutover lock it clears the raw C2M2 collections, upserts the DCC record and streams, transforms and inserts in one pass. Infinallyit ensures the materializedfilesindexes, since no materializer run creates them for this DCC. It logs per-extension counts, files skipped as unprocessed (info) or unjoinable (warning), capped sizes, donor join misses, unmapped organs and missing integrity fields.FileMetadataModelinside one guard, so a malformed or wrongly-typed document is skipped and counted instead of aborting the stream or breaking every API page that holds it._ingest_encode_rowsinto_ingest_rows(..., stale_filter, tally=None, clear_on_empty=True). Withclear_on_empty=False, which HuBMAP passes, a stream that drains cleanly with no rows raises instead of clearing the slice.heartbeat_sync_lock, scoped to the holding task). Staleness is judged from the heartbeat, falling back tostarted_atfor older locks._enrich_hubmap_collections_and_subjects,_prune_non_public_hubmap_raw_records,_enrich_hubmap_files, and the HuBMAP branches of_sync_c2m2_zip.Direct streaming (
api/routers/data.py,api/routers/cache_stream.py)drs://access_urlthrough_stream_direct_url(the renamed ENCODE path), which validates the URL against the outbound allowlist up front.stream_upstream_urlnow pulls the first upstream chunk before building the response, so a DRS 404, 403, timeout or other upstream error becomes a 404, 403, 504 or 502 rather than a 200 cut off mid-body. This applies to every caller, including the/indexsidecar path.Model, GraphQL and dump
EnrichedHubmapCollection.dataset_status, exposed and filterable through GraphQL;schema.graphqlis regenerated.dataset_statuscolumn tocollection_extra_hubmapand bump the dump'sschema_versionfrom 2 to 3.Docs
HUBMAP-SUPPLEMENT.mdaround the new loader: source endpoints and retries, refusals, entity construction, the processed-only rule, the allowlist and its image formats, the field and organ mapping, the deadline, floor and heartbeat, the costs tracked in Load REST-API DCCs into a staging area and swap under a short cutover lock #129, and the re-sync a rollback past this loader needs.BigInt,compression_format,accession_id, materialize-target and dump notes, the/indexstatus table (504; upstream 403/404), and the rollback note; correctENCODE-SUPPLEMENT.md's consumer count for the format mapping.Test cases
test_hubmap.pyHUBMAP_FILE_EXTENSIONSunset.bcfor plain.tif, with.ome.tifand the slide formatstest_hubmap.pytest_hubmap.pytest_hubmap.pytest_hubmap.py.ome.tifmaps to OME-TIFF and vendor formats to minted tokenstest_hubmap.pytest_hubmap.pyrel_pathwith spaces, and any path (property)test_hubmap.pytest_hubmap.pytest_hubmap.pytest_hubmap.pytest_hubmap.pytest_hubmap.pyis_data_productas strings, bools, unknown values or absenttest_hubmap.pysearch_after, filtered to the allowlist and public files, requestingis_data_producttest_hubmap.pytest_hubmap.pytest_hubmap.pytest_hubmap.pytest_hubmap.pytest_hubmap.pytest_sync.pysync_hubmaprunstest_sync.pysync_hubmaprunstest_sync.pysync_hubmaprunstest_sync.pysync_hubmapfinishesfilesindexes are ensuredtest_sync.pysync_hubmaprunstest_sync.pysync_hubmaprunstest_sync.pysync_hubmaprunstest_sync.pysync_hubmaprunstest_sync.pytest_locks.pytest_locks.pytest_data.py/datastreams it, raw or nottest_data.py/datastreams ittest_data.py/datastreams ittest_index.py/indexstreams ittest_ingest_common.pytest_ontology_mappings.pyMBandPRare correctedtest_dump.pydataset_statuscollection_extra_hubmap.dataset_statusholds the valuetest_hubmap.py.ome.tif.ome.tifis matched as.tifplus a case-insensitiverel_pathsuffixtest_hubmap.pyDatasetorSupporttest_hubmap.pytest_hubmap.pytest_sync.pysync_hubmapruns