ci: run the gate manifest on Gitea Actions (wire the last un-wired guardrail) #11

Closed
opened 2026-11-24 13:07:04 +00:00 by alex · 2 comments
Owner

Summary

The four gates exist in .pi/verify.json and run locally (on settle, via run_gates), but nothing runs them on the remote — the last un-wired guardrail. A repo that presents as "CI-enforced" needs the CI to exist and run. The instance supports Actions (Gitea 28.4.0, act_runner present — acqua-mono on the same instance runs .gitea/workflows/ci.yaml with the ubuntu-latest label).

Proposed design

.gitea/workflows/ci.yaml, following the house convention (see acqua-mono's workflow):

  • on: push (main) + pull_request; one job gates, runs-on: ubuntu-latest
  • actions/checkout@v4
  • Install ffmpeg (apt) — the test suite's media fixtures need it; without it tests skip silently and the CI lies
  • Install uv (official installer, curl)
  • uv sync --locked — the lockfile is committed state; CI must respect it
  • Run the gates by reading .pi/verify.json — iterate gates[].command and run each, failing with the failing gate's name. The gate list lives in ONE place; CI must not restate it (wiki lesson, 2026-11-23: prose that copies the environment goes stale). A small inline python loop over the JSON is fine (uv-managed python exists after sync).
  • README: CI badge at the top — https://git.rwiesner.com/alex/video-analyse/actions/workflows/ci.yaml/badge.svg?branch=main (the URL must match the workflow filename exactly)

Acceptance criteria

  • .gitea/workflows/ci.yaml exists, matching the house convention
  • The gate commands come from .pi/verify.json; the workflow names no gate command itself
  • uv sync --locked; ffmpeg installed so no test silently skips (the only skips left are the two deliberate model-dependent ones)
  • README carries the CI badge
  • The YAML parses (python -c "import yaml,sys; yaml.safe_load(open('.gitea/workflows/ci.yaml'))") and the local gates stay green (4/4)
  • A green run on main after this lands (check the Actions tab)

Sequencing

Single-issue wave, straight to main — the effort's integration branch is merged; this is the capstone.

## Summary The four gates exist in `.pi/verify.json` and run locally (on settle, via `run_gates`), but nothing runs them **on the remote** — the last un-wired guardrail. A repo that presents as "CI-enforced" needs the CI to exist and run. The instance supports Actions (Gitea 28.4.0, act_runner present — `acqua-mono` on the same instance runs `.gitea/workflows/ci.yaml` with the `ubuntu-latest` label). ## Proposed design `.gitea/workflows/ci.yaml`, following the house convention (see acqua-mono's workflow): - `on: push` (main) + `pull_request`; one job `gates`, `runs-on: ubuntu-latest` - `actions/checkout@v4` - Install **ffmpeg** (apt) — the test suite's media fixtures need it; without it tests skip silently and the CI lies - Install **uv** (official installer, curl) - `uv sync --locked` — the lockfile is committed state; CI must respect it - **Run the gates by reading `.pi/verify.json`** — iterate `gates[].command` and run each, failing with the failing gate's name. The gate list lives in ONE place; CI must not restate it (wiki lesson, 2026-11-23: prose that copies the environment goes stale). A small inline python loop over the JSON is fine (uv-managed python exists after sync). - README: CI badge at the top — `https://git.rwiesner.com/alex/video-analyse/actions/workflows/ci.yaml/badge.svg?branch=main` (the URL must match the workflow filename exactly) ## Acceptance criteria - [ ] `.gitea/workflows/ci.yaml` exists, matching the house convention - [ ] The gate commands come from `.pi/verify.json`; the workflow names no gate command itself - [ ] `uv sync --locked`; ffmpeg installed so no test silently skips (the only skips left are the two deliberate model-dependent ones) - [ ] README carries the CI badge - [ ] The YAML parses (`python -c "import yaml,sys; yaml.safe_load(open('.gitea/workflows/ci.yaml'))"`) and the local gates stay green (4/4) - [ ] A green run on main after this lands (check the Actions tab) ## Sequencing Single-issue wave, straight to main — the effort's integration branch is merged; this is the capstone.
alex added the ready-for-agentenhancement labels 2026-11-24 13:07:04 +00:00
Author
Owner

Run #1 (6302e0b) failed at the tests gate — the first run earned its keep, catching two real issues local runs masked:

  1. libGL.so.1 missing — the act image lacks opencv's runtime libs; every scenedetect-importing media test failed with ImportError. Fix: add libgl1 (+ libglib2.0-0) to the workflow's apt install, and document libGL for headless Linux in README's system-deps section (any headless user hits the same gap).
  2. Width-dependent CLI test — with no TTY, rich renders help at 80 columns and wraps 'openai-transcriptions' mid-token, so the backend-registry help assertion fails. Fix: pin the render width for CLI tests so the assertion is deterministic everywhere.

Diagnosis via gt run logs 1. Both fixes land under this issue; run #2 should be green.

Run #1 (6302e0b) failed at the tests gate — the first run earned its keep, catching two real issues local runs masked: 1. **libGL.so.1 missing** — the act image lacks opencv's runtime libs; every scenedetect-importing media test failed with ImportError. Fix: add libgl1 (+ libglib2.0-0) to the workflow's apt install, and document libGL for headless Linux in README's system-deps section (any headless user hits the same gap). 2. **Width-dependent CLI test** — with no TTY, rich renders help at 80 columns and wraps 'openai-transcriptions' mid-token, so the backend-registry help assertion fails. Fix: pin the render width for CLI tests so the assertion is deterministic everywhere. Diagnosis via `gt run logs 1`. Both fixes land under this issue; run #2 should be green.
Author
Owner

Green. Run #1 (6302e0b) failed at the tests gate and earned the workflow its keep immediately: two real issues that local runs masked — (1) libGL.so.1 missing from the act image, breaking every scenedetect-importing media test (also a real headless-Linux user gap, now documented in README); (2) width-dependent CLI help assertions under GITHUB_ACTIONS/TERM=dumb rendering (fixed by pinning COLUMNS + _TYPER_FORCE_DISABLE_TERMINAL in conftest, which also caught a latent doctor-table wrap). Run #5 (b976489): all four manifest gates green in 1m17s. The workflow reads the gate manifest — CI names no gate command itself.

Green. Run #1 (6302e0b) failed at the tests gate and earned the workflow its keep immediately: two real issues that local runs masked — (1) libGL.so.1 missing from the act image, breaking every scenedetect-importing media test (also a real headless-Linux user gap, now documented in README); (2) width-dependent CLI help assertions under GITHUB_ACTIONS/TERM=dumb rendering (fixed by pinning COLUMNS + _TYPER_FORCE_DISABLE_TERMINAL in conftest, which also caught a latent doctor-table wrap). Run #5 (b976489): all four manifest gates green in 1m17s. The workflow reads the gate manifest — CI names no gate command itself.
alex closed this issue 2026-11-24 13:25:56 +00:00
Sign in to join this conversation.