From 5e6541ab92eb4bd6e38db5781485c65aa01e4c17 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Thu, 7 May 2026 11:45:58 -0400 Subject: [PATCH] fix(ci): set up node in gitea workflow Co-Authored-By: Codex --- .ai/HANDOFF.md | 3 ++- .ai/SESSION_LOG.md | 7 +++++++ .gitea/workflows/ci.yml | 10 ++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.ai/HANDOFF.md b/.ai/HANDOFF.md index b451d845..c3543309 100644 --- a/.ai/HANDOFF.md +++ b/.ai/HANDOFF.md @@ -2,7 +2,7 @@ # HANDOFF.md -**Last updated:** 2026-05-07 (Python 3.12 standardization applied; cutover ops still pending) +**Last updated:** 2026-05-07 (PR #162 CI runner setup fixes applied; cutover ops still pending) **Active task:** None mid-flight. Branch `feat/self-serve-signup-phase-2` (HEAD `502c0a4`) is ready to PR. @@ -64,6 +64,7 @@ New env vars (Vite ARG/ENV in Dockerfile + `.env.example`): `VITE_SELF_SERVE_ENA ## Environment notes (carry-forward) - Code-server LXC now standardizes on Python 3.12. `.python-version` pins 3.12.13 to match the Docker image; native backend work should use `backend/venv` built from that interpreter. `pytest --version` and `alembic --version` pass natively when `DEBUG=true SECRET_KEY=ci-test-secret-key-not-for-production` are supplied to avoid local `.env` validation failures. +- Gitea CI now sets up Python 3.12 for backend/e2e and Node 20 for frontend/e2e explicitly; do not rely on runner ambient toolchains. - Pytest: `docker exec resolutionflow_backend pytest tests/ -v --override-ini="addopts="`. - Vitest: `docker exec -w /app resolutionflow_frontend npm test -- --run`. - TS build: `docker exec -w /app resolutionflow_frontend npx tsc -b`. diff --git a/.ai/SESSION_LOG.md b/.ai/SESSION_LOG.md index 177e8430..da7c19c4 100644 --- a/.ai/SESSION_LOG.md +++ b/.ai/SESSION_LOG.md @@ -12,6 +12,13 @@ --- +## 2026-05-07 11:45 EDT — Codex — Push PR #162 CI runner setup fixes + +- Inspected Gitea PR #162 via public API. PR head was `380fcf7` and all CI jobs failed quickly; pushed local commits through `4a37a47`, including Python 3.12 setup for Gitea backend/e2e jobs. +- New run on `4a37a47` showed frontend still failed quickly while backend/e2e remained pending. Root cause likely same class of runner drift: Gitea frontend/e2e jobs used `npm` without setting up Node. +- Added explicit `actions/setup-node@v4` with Node 20 to Gitea frontend and e2e jobs. This keeps CI from relying on runner ambient Node/npm. +- Files touched: `.gitea/workflows/ci.yml`, `.ai/HANDOFF.md`, `.ai/SESSION_LOG.md`. + ## 2026-05-07 11:30 EDT — Codex — Standardize backend Python on 3.12 - Standardized repo declarations around Python 3.12: added `.python-version` pinned to 3.12.13, updated stale Python 3.11 docs, and added explicit Python 3.12 setup steps to Gitea CI. GitHub CI was already updated to Python 3.12 by the user. diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 079eb83a..88d7fdc9 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -110,6 +110,11 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Cache npm uses: actions/cache@v3 with: @@ -181,6 +186,11 @@ jobs: with: python-version: "3.12" + - name: Set up Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Cache pip uses: actions/cache@v3 with: