Skip to content

feat(manifest): skip_callback flag for manual backfills - #3

Merged
neuromechanist merged 1 commit into
mainfrom
2-generate-manifest-skip_callback-flag-for-manual-backfills
May 23, 2026
Merged

neuromechanist merged 1 commit into
mainfrom
2-generate-manifest-skip_callback-flag-for-manual-backfills

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Closes #2.

Problem

`workflow_dispatch` runs of the manifest generator (used for backfills) always conclude with red checks because the post-success callback POSTs an empty `X-Webhook-Token`, the Worker 401s, and the script exits 1. The S3 artifacts are uploaded successfully — the failure is cosmetic but pollutes the Actions feed.

Repro: 112 backfill runs on 2026-05-23 (for the OpenNeuro on*-prefix `summary.json` rollout) all succeeded at writing manifest.json + summary.json to S3, all marked red.

Fix

Add a `skip_callback` boolean input to `workflow_dispatch` (and `repository_dispatch` `client_payload` for parity). When true, the post-success step exits 0 without POSTing.

Production publishes via `triggerManifestGeneration` keep the default `false` so the legitimate manifest-ready handshake is unchanged.

Test plan

After merge:

  • Manual: `gh workflow run generate-manifest.yml --repo nemarDatasets/.github -f dataset_id=on002778 -f version=1.0.0 -f skip_callback=true` should conclude with green.
  • Production publish (any normal version DOI flow) still triggers the manifest-ready callback and writes the dataset_versions row.

Out of scope

  • Manifest-jobs row creation for manual dispatches (would require dual-auth on the callback handler; separate work).

Closes #2. workflow_dispatch runs of the manifest generator (backfills) always show conclusion=failure because the post-success callback 401s with an empty token. New skip_callback input lets backfills exit cleanly after artifacts hit S3. Production repository_dispatch path keeps default=false; no behavioural change for normal publishes.
@neuromechanist neuromechanist linked an issue May 23, 2026 that may be closed by this pull request
@neuromechanist
neuromechanist merged commit a90ffc6 into main May 23, 2026
@neuromechanist
neuromechanist deleted the 2-generate-manifest-skip_callback-flag-for-manual-backfills branch May 23, 2026 13:49
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.

generate-manifest: skip_callback flag for manual backfills

1 participant