Repository navigation
generate-archive: preflight skip for >100GB datasets (#752) - #51
Merged
Merged
Conversation
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::.
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.
Companion to nemarOrg/nemar-cli#760 (epic #749, Phase 3 / #752).
A
preflightjob readsdata.nemar.org/<id>/v<ver>/manifest.jsontotals; over 100 GiB or 200k files it POSTs/webhooks/archive-readystatus:"skipped"+ reason and the gatedarchivejob (needs: preflight+if: skip != 'true') never runs the 60-min-capped build. Fails OPEN (manifest unreadable → build anyway). Adds a workflowconcurrencygroup per (dataset,version) and bumps multipartqueueSize4→6. Thresholds mirror backendservices/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.)