ci: record P05 run 81 and prepare Alpine checkout remediation

This commit is contained in:
victorsteele428 committed 2026-11-22 13:09:43 +00:00
1 parent 42b79362c1
commit 42adaba004
13 files changed
+90 -39

No files matched your search

+1 -1
View File
@@ -9,6 +9,6 @@ This is the chronological **index**. Phase-specific scope/implementation evidenc
| 2026-11-22 | P03 | Imported Login V2 v4.20.4 matching upstream source/workspace | `4404849`; source blob audit, CI deferred |
| 2026-11-22 | P04 | Account Portal OIDC and protected frontend foundation | `40af500`; patch/scope audit, CI deferred |
| 2026-11-22 | DOCS-01 | Knowledge folders, first-party file/function maps, exact source inventory, user guides and mandatory AGENTS documentation policy | Documentation implementation complete; focused manifest/link/scope audit PASS; Git SHA in DOCS-01 local commit, see [DOCS-01.md](DOCS-01.md) |
| 2026-11-22 | P05-CI-01 | Gitea Actions verification workflow, package lock reconciliation, isolated Docker smoke | In progress; results in [P05-CI-01.md](P05-CI-01.md) |
| 2026-11-22 | P05-CI-01 | Gitea verification workflow, dependency lock reconciliation, narrow checkout remediation | Run #81: 2 PASS/2 FAIL; 1219 Login tests PASS, Account TS2345 and Docker checkout blocked; see [P05-CI-01.md](P05-CI-01.md) |
Rules: Append new phases or fixes; never silently rewrite a past result. Separate **implemented**, **verified**, **blocked**, and **proposed**. Never log a user secret or personal data.
+1 -1
View File
@@ -5,7 +5,7 @@
| [README.md](README.md) | Rules for developer planning, ongoing notes, verification evidence and phase history | DOCS-01 / active |
| [MINIFEST.md](MINIFEST.md) | File list and ownership; **MINIFEST is the exact required filename** | DOCS-01 / active |
| [DOCS-01.md](DOCS-01.md) | This documentation-governance change: baseline, scope, plan, implementation and closure | DOCS-01 / implementation complete |
| [P05-CI-01.md](P05-CI-01.md) | Scope/roots, allowed paths, implementation and Gitea CI acceptance evidence | P05-CI-01 / in progress |
| [P05-CI-01.md](P05-CI-01.md) | Scope/roots, allowed paths, implementation and Gitea CI acceptance evidence | P05-CI-01 / source complete, CI blockers open |
| [CHANGELOG.md](CHANGELOG.md) | Short append-only chronological phase log and links to detailed reports | DOCS-01 / active |
Update this manifest whenever any direct child file or directory changes. Use **actual source state**; a planned file must be labeled planned, not present.
+36 -7
View File
@@ -1,17 +1,17 @@
# P05-CI-01 — Gitea Actions Verification Foundation
# P05-CI-01 - Gitea Actions Verification Foundation
Date: 2026-11-22
Status: APPROVED / IN PROGRESS — before code edits
Status: SOURCE IMPLEMENTED; ONE CI RUN COMPLETED WITH BLOCKERS; NOT PRODUCTION-ACCEPTED
Baseline: `7ecf53169776cc7f08af3dde6fe4b4492acf3ea1` (local and Gitea `main` matched before implementation)
User approval: 2026-11-22 P05-CI-01 explicit instruction. One focused Gitea Actions acceptance cycle, Git commit/push; **no local tests/builds/dev services**.
## Exact write scope
- `.gitea/**` — new workflow plus README/MINIFEST for first-party directories
- `tests/ci/**` — isolated runner verification utilities and folder docs
- `users/ui/package.json` and `users/ui/package-lock.json` — only justified dependency/lock corrections
- `auth/ui/v2/pnpm-workspace.yaml` and `auth/ui/v2/pnpm-lock.yaml` — only slim workspace reconciliation
- `notes/**`, `project/**`, relevant `docs/**`, `README.md` — evidence, manifests and documentation
- `.gitea/**` - new workflow plus README/MINIFEST for first-party directories
- `tests/ci/**` - isolated runner verification utilities and folder docs
- `users/ui/package.json` and `users/ui/package-lock.json` - only justified dependency/lock corrections
- `auth/ui/v2/pnpm-workspace.yaml` and `auth/ui/v2/pnpm-lock.yaml` - only slim workspace reconciliation
- `notes/**`, `project/**`, relevant `docs/**`, `README.md` - evidence, manifests and documentation
- Existing `tests/README.md` is **not** approved for write; document test folder in its nested `tests/ci/` instead.
- `deployment/docker/compose.backend.dev.yaml` and `core/backend/zitadel/dev.py` remain **read-only**. Any reproduced runtime bug here requires a separate approved exception.
@@ -41,3 +41,32 @@ E. Final evidence, notes/project/docs/manifests synchronized. If CI fails, recor
## Acceptance policy
Only call a gate PASS if real Gitea Actions job step succeeded. Docker/OIDC requiring missing capability must state BLOCKED. No production-ready claim until all required gates succeed. Version/security advisories: report exact package/version/severity/decision; do not apply blind dependency updates.
## Actual implementation and one-cycle Gitea result (2026-11-22)
**Initial pushed CI source SHA:** `42b79362c13b9dbb07f85a58ad278742d91b1f5b`.
**Run:** [Gitea Actions #81](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/81), event `workflow_dispatch` on `main`; started 12:59:03Z, completed 13:03:55Z; **overall FAILURE**.
| Job | ID | Actual result | Concrete evidence |
| --- | ---: | --- | --- |
| Account Portal | 165 | **FAIL** | Checkout + source/lock/guard preflight PASS; `npm ci` added 38 packages. `npm run typecheck` TS2345 `users/ui/src/auth.ts(14,61)`: Auth.js session callback's inferred `user.id` type is not assignable to `string`. Next build not run |
| Login V2 | 166 | **PASS** | `pnpm install --frozen-lockfile` PASS; Nx generated proto + built client and Login V2 standalone PASS; upstream Vitest 84/84 files and **1219/1219 tests PASS** |
| Dependency advisory | 167 | **PASS only for HIGH/CRITICAL gate** | `npm audit --omit=dev --audit-level=high` PASS; `pnpm audit --prod --audit-level high` PASS; **18 MODERATE** Login advisory findings remain open, exact packages/remediation not yet triaged |
| Disposable Docker | 168 | **FAIL before Docker** | `node:22-alpine` checkout had no Git, falling back to REST archive which returned `Not found` after retries. Docker setup, P02 Python tests, backend runtime, ready/discovery/JWKS NOT RUN; always-cleanup step PASS |
**One focused CI acceptance cycle only.** No rerun, no local tests/builds/dev server/Docker. No actual user session, MFA, Admin Console or production deployment was verified.
### Exact in-scope source remediation (after Run #81)
`.gitea/workflows/p05-ci.yml`: inserted `apk add --no-cache git` **before** `actions/checkout@v4` in Alpine backend job. This fixes the identified checkout prerequisite **in source**, but **has not been CI-tested**. No changes to `core/backend/zitadel/`, `deployment/docker/`, `users/ui/src/auth.ts`, Login V2 original application code, or unrelated files.
### Open blockers and disposition
- **P05-B01 / Account Auth.js TS2345:** needs narrowly approved `users/ui/src/auth.ts` / type augmentation patch, preserve existing expiry/identity guarantees and regression test. Out of P05 write scope, **do not patch here**.
- **P05-B02 / Docker runtime acceptance:** first run did not reach Docker preflight. Corrected checkout source needs a separately approved Gitea CI rerun; no claim of ZITADEL health, Admin Console, persistence or OIDC discovery.
- **P05-B03 / Moderate advisories:** 18 moderate findings from `pnpm audit --prod`; current high/critical gate passed, but package-level advisory IDs and real impact must be collected and triaged before production.
- **P05-B04 / Interactive OIDC:** no disposable confidential OIDC client/user lifecycle harness in P05; full Account Portal auth callback, MFA/passkey, logout and protected route E2E remain **unverified**.
- All existing production host/domain/DNS/Coolify and real data unchanged.
**Final status:** Source and Gitea Actions foundation implemented and audited; **full CI acceptance BLOCKED**. Follow-up must be a separately approved, exact-scope remediation. After the result documentation and CI-only checkout patch are committed and pushed, record the new exact `main` SHA via Git; **that new SHA is not the tested Run #81 SHA**.