Skip to content

Add central generate-manifest workflow (#564) - #1

Merged
neuromechanist merged 1 commit into
mainfrom
feature/issue-564-add-manifest-workflow
May 19, 2026
Merged

neuromechanist merged 1 commit into
mainfrom
feature/issue-564-add-manifest-workflow

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

Companion to nemarOrg/nemar-cli#564 — relocate the central manifest generation workflow from `nemarOrg/nemar-cli` (billing-constrained GitHub Free) to `nemarDatasets/.github` (GitHub Team plan, more Actions minutes, natural home for dataset-shaped orchestration).

Files added:

  • `.github/workflows/generate-manifest.yml` — `repository_dispatch[generate-manifest]` + `workflow_dispatch`. Checks out `nemarDatasets/<dataset_id>@v<X.Y.Z>` using an App installation token, runs the Python script, uploads to S3, POSTs callback to api.nemar.org.
  • `.github/workflows/test-emit-manifest.yml` — CI: runs the 33 Python tests on PRs touching `scripts/**`
  • `scripts/emit_manifest.py` (403 lines) — git-tree walker, emits manifest.json + summary.json
  • `scripts/build_callback_body.py`, `scripts/build_failure_body.py` — JSON body builders for the callback
  • `scripts/test_emit_manifest.py` (33 real-git tests, no mocks)
  • `scripts/.gitignore` — excludes `pycache`

Required secrets (org-level on nemarDatasets, visibility: all repos)

Some likely already exist per memory; verify:

  • `NEMAR_APP_ID`, `NEMAR_APP_PRIVATE_KEY` — present via Epic #432
  • `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` — already present per onboard-openneuro.yml usage
  • `MANIFEST_CALLBACK_SECRET` — NEW, must be added; mirror to Worker via `wrangler secret put` (both prod + dev SCCN)

Verification (post-merge)

`gh workflow run generate-manifest.yml --repo nemarDatasets/.github -f dataset_id=nm099999 -f version=1.0.0 -f doi=test -f concept_doi=test` — expect 200 (or 401 from callback because Worker doesn't yet match the new dispatch source — that's fine; S3 artifacts will be present).

Companion

@neuromechanist
neuromechanist merged commit 318578a into main May 19, 2026
1 check passed
neuromechanist added a commit to nemarOrg/nemar-cli that referenced this pull request May 19, 2026
)

Follow-up to epic #559. Repoints CENTRAL_WORKFLOW_REPO from nemarOrg/nemar-cli (billing-constrained Free) to nemarDatasets/.github (GitHub Team). Companion to nemarDatasets/.github#1 (merged 318578a). Worker-side: getDatasetsToken replaces getNemarOrgToken; getNemarOrgAuth/getNemarOrgToken removed as dead code; 5 relocated files deleted; CI python-unit-test job moved to nemarDatasets/.github; state doc + backfill script + runbook updated to new repo. 69 manifest tests + typecheck clean. Admin-bypass: GHA billing block on changes job, not test failure. Closes #564.
neuromechanist added a commit that referenced this pull request May 23, 2026
Closes #4. Centralizes the per-repo llm-enrichment.yml (currently in 123 dataset repos) into a single shared workflow. Mirrors generate-manifest.yml structure (#1) — repository_dispatch[run-enrichment] + workflow_dispatch entry points, per-repo App token via actions/create-github-app-token@v1, identical Worker round-trip + rebase-retry commit semantics. Phase 1 of nemarOrg/nemar-cli#601.
@neuromechanist
neuromechanist deleted the feature/issue-564-add-manifest-workflow branch June 2, 2026 01:17
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