Repository navigation
Phase 5 (E): dispatch generate-records on publish + records-ready callback - #42
Merged
Merged
Conversation
Member
Author
|
Sonnet /review-pr addressed: trigger-records mirrors trigger-archive verbatim; success/failure callback guard logic confirmed correct (best-effort exit-0 keeps post-success.outcome='success' so the failure callback can't double-fire); YAML/security/parallelism sound. Fixed Issue 1 (Important): added a |
This was referenced Jun 11, 2026
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.
Summary
Phase 5 (E) of epic nemarOrg/nemar-cli#736, the
.githubhalf.records.json(neuroschema per-recording descriptor, #615) 404'd for every dataset becausegenerate-records.ymlwas fully built (emit -> validate -> Tier-2 biosigIO duration patch -> S3 upload) but nothing dispatched it on publish and it had no records-ready callback.run-version-doi.yml: add atrigger-recordsjob — a sibling of the existingtrigger-archivejob (needs: publish-doi,.github-scoped App token,repository_dispatchgenerate-recordswithdataset_id+version). This is the change that makes records.json exist for every publish. Independent job so a records-dispatch failure doesn't block the archive dispatch.generate-records.yml: add a records-ready callback (success + best-effort failure) POSTing toapi.nemar.org/webhooks/records-readywithX-Webhook-Token. The success callback is intentionally best-effort (warn, don't fail the run) — unlike archive-ready's strict callback — because records.json is served from S3 directly, so the callback is observability-only; this also avoids reddening generation during this epic's rollout window before thenemarOrg/nemar-cli/webhooks/records-readyendpoint reaches prod. Also fixed the stale header + upload-block comments (they claimed the upload was an unwired TODO skeleton).Part of epic nemarOrg/nemar-cli#736 (sub-issue #742). The
/webhooks/records-readyreceiver +records_statuscolumn ship in the paired nemar-cli PR.Test plan
Both workflow YAMLs validate (
yaml.safe_load). The dispatch mirrors the proventrigger-archivejob verbatim; the callback mirrorsrun-generate-archive.yml's archive-ready callback. Live: after merge, a real version publish (or a manualgenerate-recordsdispatch on nm099999) uploadss3://nemar/<id>/version/v<version>-records.json(served atdata.nemar.org/<id>/<version>/records.json) and POSTs the records-ready callback; the callback is non-fatal until the Worker endpoint deploys at epic finalization.