Phase 7a: read-only verifier for the 06:00 scheduled run (AUD-115)
make verify-n8n / deploy/verify-n8n-scheduled-run.sh checks the workflow is active, reads the newest scheduled (mode=trigger) execution from the n8n database, and prints the notify rows. Exit 1 until a scheduled run exists and is green, so it distinguishes 'not yet' from 'failed'. Never runs the workflow and never sends. Document the first-run time and the re-armed monitor.
This commit is contained in:
8
Makefile
8
Makefile
@@ -19,7 +19,7 @@ GO_RUN = timeout 600 docker run --rm --network host --user "$$(id -u):$$(id -g)"
|
||||
-e HOME=/src/.gocache -e GOMODCACHE=/src/.gocache/mod -e GOCACHE=/src/.gocache/build \
|
||||
-v "$$PWD":/src -w /src $(GO_IMAGE)
|
||||
|
||||
.PHONY: help test vet build up down restart logs ps deps fmt hash-password gen-secret verify-phase1 verify-phase8 parse scan calendar notify morning-brief n8n-key n8n-import
|
||||
.PHONY: help test vet build up down restart logs ps deps fmt hash-password gen-secret verify-phase1 verify-phase8 parse scan calendar notify morning-brief n8n-key n8n-import verify-n8n
|
||||
|
||||
help:
|
||||
@echo "make test run go test ./... in golang:1.25-alpine"
|
||||
@@ -40,6 +40,7 @@ help:
|
||||
@echo "make morning-brief scan both children, then send the briefs (the n8n job)"
|
||||
@echo "make n8n-key print the restricted SSH trigger key plan (Phase 7a)"
|
||||
@echo "make n8n-import print the n8n import/publish plan (Phase 7a; APPLY=1 applies)"
|
||||
@echo "make verify-n8n prove the 06:00 scheduled run is green (Phase 7a; read-only)"
|
||||
@echo "make verify-phase1 prove /health, the login and the Caddy route"
|
||||
@echo "make verify-phase8 prove the Hub API: /capabilities, /ask, /notify (--send delivers)"
|
||||
|
||||
@@ -112,6 +113,11 @@ n8n-key:
|
||||
n8n-import:
|
||||
deploy/import-n8n-morning-brief.sh $(if $(APPLY),--apply,)
|
||||
|
||||
# Phase 7a: prove the 06:00 scheduled run itself. Read-only; exit 1 until the
|
||||
# first automatic run has happened and is green.
|
||||
verify-n8n:
|
||||
deploy/verify-n8n-scheduled-run.sh
|
||||
|
||||
# Phase 1 definition of done: /health 200, login page + session login, and the
|
||||
# Caddy route on .35.
|
||||
verify-phase1:
|
||||
|
||||
Reference in New Issue
Block a user