ci: add isolated backend-only P05 runtime acceptance

This commit is contained in:
Vib Tools committed 2026-11-22 05:47:38 -08:00
1 parent 4857558005
commit 03fb58954d
22 files changed
+370 -27

No files matched your search

+2 -1
View File
@@ -4,4 +4,5 @@
| --- | --- | --- |
| [README.md](README.md) | Manual CI entry, job and security instructions | P05-CI-01 |
| [MINIFEST.md](MINIFEST.md) | Workflow directory file inventory | P05-CI-01 |
| [p05-ci.yml](p05-ci.yml) | Isolated account/login/backend CI verification on Gitea | P05-CI-01 |
| [p05-ci.yml](p05-ci.yml) | Isolated account/login/backend CI verification on Gitea | P05-CI-01/P05-CI-02 |
| [p05-backend-acceptance.yml](p05-backend-acceptance.yml) | Manual backend-only disposable Compose, persistence and OIDC acceptance; no Account/Login build rerun | P05-CI-03 |
+3 -1
View File
@@ -1,6 +1,6 @@
# CI workflows - manual verification only
P05-CI-01 introduces a single `p05-ci.yml` with **manual workflow_dispatch**. Do not enable automatic push/PR builds with Docker access without a fresh security review.
P05-CI-01 introduced `p05-ci.yml`; P05-CI-03 adds a separate backend-only `p05-backend-acceptance.yml`. Both use **manual workflow_dispatch**. Do not enable automatic push/PR builds with Docker access without a fresh security review.
Job responsibilities:
@@ -10,6 +10,8 @@ Job responsibilities:
**P05-CI-02 additions:** Account Portal CI negative route/API smoke, npm/pnpm structured Moderate advisory detail, and disposable Postgres restart persistence plus stronger OIDC issuer/JWKS negative checks. Run #83 passed Account, Login V2 and Security jobs but backend proxy bind to shared host port 8080 failed after Postgres/ZITADEL/Login healthy. **Post-run source fix:** all backend Compose calls include `tests/ci/compose.portless.override.yaml` (`ports: !reset []`), config rejects any published proxy port; this is not CI-verified. Full authenticated user sign-in/MFA remains deferred.
**P05-CI-03:** `p05-backend-acceptance.yml` runs **only** the isolated backend job with `tests/ci/backend_acceptance.sh` and always-run `backend_cleanup.sh`. It checks portless effective config, all four services, restart persistence, ready/discovery/JWKS and absence of CI leftovers. This avoids rerunning already accepted Account/Login suites. Manual only; no production. See `docs/P05-CI-03.md`.
**Run #81 evidence:** backend's first revision failed during checkout because Alpine had no Git. Added a pre-checkout Git installation afterward; the corrected backend job remains **UNVERIFIED** until a separately approved CI rerun. See `docs/P05-CI-01.md`.
A green job indicates only its executed steps. Full CI acceptance also needs end-to-end OIDC session/callback, real login/MFA, admin console and session controls in a disposable environment, documented separately.
@@ -0,0 +1,40 @@
name: ZitPlane P05-CI-03 Backend Acceptance
# Isolated backend-only manual verification. Never grant Docker socket
# access to untrusted PRs or run this against production services.
on:
workflow_dispatch:
permissions:
contents: read
jobs:
backend:
name: Disposable Backend Portless, Persistence and OIDC
runs-on: ubuntu-latest
container: node:22-alpine
timeout-minutes: 35
steps:
- name: Install Git before Gitea checkout
run: apk add --no-cache git
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
- name: Backend-only isolated acceptance
run: |
set -eu
apk add --no-cache python3 docker-cli docker-cli-compose
sh tests/ci/backend_acceptance.sh
- name: Always cleanup CI-owned Docker data and prove no leftovers
if: always()
run: |
set -eu
if [ -f tests/ci/backend_cleanup.sh ]; then
if [ -f .p05-ci-owned ]; then
apk add --no-cache docker-cli docker-cli-compose
fi
sh tests/ci/backend_cleanup.sh
else
echo '::error::Checkout or cleanup script unavailable; no Docker state is claimed clean'
exit 1
fi