Skip to content

generate-archive: preflight skip for >100GB datasets (#752) - #51

Merged
neuromechanist merged 2 commits into
mainfrom
fix/issue-752-archive-skip
Jun 16, 2026
Merged

neuromechanist merged 2 commits into
mainfrom
fix/issue-752-archive-skip

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Companion to nemarOrg/nemar-cli#760 (epic #749, Phase 3 / #752).

A preflight job reads data.nemar.org/<id>/v<ver>/manifest.json totals; over 100 GiB or 200k files it POSTs /webhooks/archive-ready status:"skipped" + reason and the gated archive job (needs: preflight + if: skip != 'true') never runs the 60-min-capped build. Fails OPEN (manifest unreadable → build anyway). Adds a workflow concurrency group per (dataset,version) and bumps multipart queueSize 4→6. Thresholds mirror backend services/archive-policy.ts.

DO NOT MERGE until nemarOrg/nemar-cli#760 is live on prod

The skip POST uses status:"skipped", which the deployed Worker only accepts after #760. Draft until the backend is live. (Backward-safe otherwise: a sub-threshold dataset takes the unchanged build path.)

New preflight job reads the version manifest totals; over 100 GiB / 200k files it
POSTs /webhooks/archive-ready status='skipped' + reason and the gated archive job
(needs/if) never runs the 60-min-capped build. Adds a workflow concurrency group
per (dataset,version) and bumps multipart queueSize 4->6. Mirrors backend
services/archive-policy.ts.
…uards)

- Skip-callback failure now exit 1 (red, re-runnable) instead of warning+exit 0,
  so 'skipped build but never recorded archive_skip_reason' isn't a silent dead-end
  (the gated archive job is skipped on a failed dep; re-run is idempotent).
- Guard non-array manifest (jq type check) -> fail open + visibly, instead of
  silently yielding 0/0 and building the very archive we meant to skip.
- Manifest-404 fail-open now ::error:: (visible on a green job) not ::warning::.
@neuromechanist
neuromechanist marked this pull request as ready for review June 16, 2026 15:57
@neuromechanist
neuromechanist merged commit 71e7241 into main Jun 16, 2026
@neuromechanist
neuromechanist deleted the fix/issue-752-archive-skip branch June 16, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant