Skip to content

Epic: Robust unattended OpenNeuro -> NEMAR import #749

Closed
7 of 7 issues completed
Closed

Description

@neuromechanist

Goal

Imports of arbitrarily large OpenNeuro datasets complete unattended, idempotently, with no orphaned state, no archive blowups, and downloadable output — all inside CI (no external server).

Background

Forensics of the 2026-06-14 batch import (on004395 9TB, on007523/524 MEG, on005385, on005752): 0 of 5 completed cleanly, each failing at a different deterministic-timeout stage with no rollback/resume. Full writeup: .context/research-openneuro-import-forensics.md. Plan: .context/plan-import-robustness.md.

Key verified facts:

  • Server-side S3 copy works (aws s3 cp s3://openneuro.org/... s3://nemar/..., cross-account/cross-region, signed read of OpenNeuro public bucket) — bytes never touch the runner. The old curl | aws s3 cp - client-stream is what blew the 6h runner cap on 9TB.
  • Version-DOI webhook times out deterministically at 60s for high-file-count datasets (file-count-bound, not bytes) — readRepoMetadata recursive tree + EZID + dispatch on the request path.
  • Archive generation 60-min cap + slow streaming cancels mid-size datasets; >100GB zips impractical (data.nemar.org bytes_url is a stable, range-resumable direct-download alternative).
  • Validate-stage reads annexed datasets as "0 annexed files" and blocks them at enriched (confirmed on007523).

Phases

  1. Server-side, resumable, sharded transfer (kills on004395 6h-cap)
  2. Version-DOI / manifest path that can't time out (+ complete on005385/on005752)
  3. 100GB archive policy (skip + steer to wget/curl)

  4. Validate-stage git-annex blind spot (annex sizes -> reach validated)
  5. Idempotency / rollback / completion-tracking + admin status view
  6. Duplicate-enrichment dispatch + git-push race
  7. Prescreen advisory (non-blocking, non-red CI)

Cross-repo: nemar-cli (CLI+backend) + nemarDatasets/.github (workflows) + website. Integration branch: dev.

Sub-issues

Sub-issues

7 of 7 Issues completed
Loading 7 sub-issues

Activity

  1. added
    P1
    feature
    on Jun 15, 2026
  2. neuromechanist commented on Jun 17, 2026

    @neuromechanist
    ContributorAuthor

    Shipped to prod in v0.8.53 (2026-06-16). All 7 phases (#750-756) delivered: server-side sharded transfer, async version-DOI, >100GB archive-skip, git-annex pre-screen fix, import state machine + quarantine/rollback, enrichment-race fix, advisory pre-screen. Released via dev->main (#766, regular merge); prod auto-deployed (migrations 0040-0045 + Worker), npm v0.8.53 published. Cross-repo workflows live (nemarDatasets/.github #50-55). Cross-epic review caught + fixed one #736/#749 seam (archive retry_count reset on skip, #767). This release also landed the previously-held #736 D/B/E on prod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions