You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
generate-manifest: skip_callback flag for manual backfills #2
workflow_dispatch runs of `generate-manifest.yml` (used for backfilling `summary.json` on legacy datasets) always show `conclusion=failure` because the post-success step POSTs to `/webhooks/manifest-ready` with an empty `X-Webhook-Token`, the Worker correctly 401s ("no in-flight manifest_jobs row"), and the script exits 1. The S3 artifacts (`manifest.json` + `summary.json`) are uploaded successfully — the failure is purely cosmetic.
Repro: 112 backfill runs dispatched on 2026-05-23 for the OpenNeuro on*-prefix backfill (#596 context). All 112 wrote artifacts; all 112 show red.
Why this matters
The OpenNeuro mass-import will need ad-hoc re-runs (re-tagging, version-drift recovery, summary-only refresh). Every manual run polluting the Actions feed with red checks makes real failures invisible. CI dashboards and Slack alerts on this workflow are already unusable because false positives dominate.
Proposed fix
Add a `skip_callback` boolean input to the `workflow_dispatch` interface (and to the `repository_dispatch` `client_payload` for parity). When set, the post-success step exits 0 without POSTing.
```yaml
inputs:
skip_callback:
description: "Skip the post-success callback POST. Use for manual backfills."
required: false
type: boolean
default: false
```
In the `POST callback` step:
```bash
if [ "$SKIP_CALLBACK" = "true" ]; then
echo "skip_callback=true; skipping callback POST"
exit 0
fi
```
The repository_dispatch path from the Worker keeps the default `false` so nothing changes for production publishes.
Out of scope
Allowing manual dispatches to write a manifest_jobs row in the Worker (would require dual-mode auth on the callback handler; more complex, separate work).
Auto-retry on callback-step transient failures (current code already retries elsewhere; the failure mode here is a deliberate 401, not transient).
Activity
feat(manifest): skip_callback flag for manual backfills