Fix CI healthcheck endpoint and bundled install FK violations
Some checks failed
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Successful in 5s
CI/CD / test-go-pg (pull_request) Successful in 2m44s
CI/CD / test-sqlite (pull_request) Successful in 2m55s
CI/CD / test-runners (pull_request) Failing after 1m43s
CI/CD / build-and-deploy (pull_request) Has been skipped

Two bugs preventing the test-runners CI job from passing:

1. Health check used GET /api/v1/auth/login — a POST-only route that
   always returns 404. Changed to GET /api/v1/health which exists.

2. Bundled package install passed empty strings to FK-constrained
   columns (global_settings.updated_by, workflows.created_by),
   causing FOREIGN KEY constraint failures on every surface and
   workflow package. Fixed by resolving the bootstrap admin user ID
   at startup and threading it through the install path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-02 09:41:23 +00:00
parent d7242cb34e
commit d499ba9e38
4 changed files with 27 additions and 7 deletions

View File

@@ -18,7 +18,7 @@
services:
armature:
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:80/api/v1/auth/login"]
test: ["CMD", "curl", "-sf", "http://localhost:80/api/v1/health"]
interval: 2s
timeout: 3s
retries: 30