Skip to content

config: enable MANIFEST_VIA_CENTRAL_WORKFLOW on SCCN dev - #567

Merged
neuromechanist merged 2 commits into
devfrom
feature/enable-central-manifest-on-sccn-dev
May 22, 2026
Merged

neuromechanist merged 2 commits into
devfrom
feature/enable-central-manifest-on-sccn-dev

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

Flip `MANIFEST_VIA_CENTRAL_WORKFLOW` from `"false"` to `"true"` in `backend/wrangler-sccn.toml` `[env.dev.vars]` (dev only; prod stays `"false"`).

Already deployed to SCCN dev via cfman (version `5861cf68-c951-4fef-855b-ceb64d9854e0`); migration 0025 (`manifest_jobs`) applied; org secret `MANIFEST_CALLBACK_SECRET` set on nemarDatasets + matching Workers secret set on both SCCN prod and dev.

Kept as draft until a real CLI publish through SCCN dev confirms the success path works end-to-end.

Validation already done (smoke test, 2026-05-18)

Manual `workflow_dispatch` on `nemarDatasets/.github/generate-manifest.yml` with callback pointed at `https://nemar-api-dev.sccn-org.workers.dev\`. Clone-failure path traversed (no tag on nm099999), and:

Run: https://github.com/nemarDatasets/.github/actions/runs/26078483595

Still untested (needs real publish from CLI with admin key on SCCN dev)

  • Success path: tagged dataset clone → S3 upload → 200 callback → `dataset_versions` row inserted via callback (not inline)
  • HMAC token round-trip (Worker signs → workflow echoes → Worker verifies)
  • nemar.org sync deferred-to-callback flow (cross-phase fix CLI shows success then failure on admin approve #3)

How to run the real e2e (from a machine with admin CLI on SCCN dev)

```bash

Switch CLI to a real admin profile on dev (not the sccn-test placeholder)

nemar auth switch
nemar admin e2e-test --verbose
```

Watch:

  • `gh run list --repo nemarDatasets/.github --workflow generate-manifest.yml`
  • D1: `SELECT * FROM manifest_jobs ORDER BY created_at DESC LIMIT 5;`
  • D1: `SELECT * FROM dataset_versions WHERE dataset_id = 'nm099999';`

Merge condition

After a clean e2e cycle on SCCN dev: mark this PR ready, merge to dev, and let it soak for a week before promoting to prod (`[vars]` top-level flag).

@neuromechanist
neuromechanist marked this pull request as ready for review May 22, 2026 18:21
@github-actions

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR567

Version: 0.8.27-PR567.46b7cda
Commit: 46b7cda


🤖 Updated on each push.

@neuromechanist

Copy link
Copy Markdown
Contributor Author

Review (pr-review-toolkit:code-reviewer)

Critical: none.

Important — both fixed in 46b7cda:

  1. Prod `[vars]` block comment still said `nemarOrg/nemar-cli` (stale; the workflow was relocated to `nemarDatasets/.github` in Relocate central manifest workflow from nemarOrg/nemar-cli to nemarDatasets/.github #564). Now matches the dev block comment.
  2. PR marked ready (was draft). Full e2e on SCCN dev (10 steps, 21s, 2026-05-22) covered the success path including HMAC token round-trip and `dataset_versions` callback insert.

Suggestion — also applied:

  • `MANIFEST_CALLBACK_SECRET` added to the prod `[vars]` secrets comment block with a note that it must be set before any environment's flag is flipped.

Strengths confirmed:

  • Diff is purely the dev block flag value (prod `[vars]` stayed `"false"`); scope is exactly one variable
  • Rollback path (revert + redeploy) implicit and easy
  • Prereqs documented (migration 0025, secret on both Worker and nemarDatasets org)

@neuromechanist
neuromechanist merged commit d8ce6d0 into dev May 22, 2026
9 checks passed
@neuromechanist
neuromechanist deleted the feature/enable-central-manifest-on-sccn-dev branch May 22, 2026 19:03

This branch was previously deployed

1 inactive deployment
npm — 46b7cda9 Deployed May 22, 2026 by neuromechanist via publish #1053
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