Research: disposable Forgejo target options for pipeline e2e #271

Closed
opened 2026-08-02 03:13:32 +00:00 by ben · 1 comment
Owner

Question

Survey options for a disposable Forgejo target a pipeline e2e can drive end-to-end: a staging repo on git.matou.nz (Actions isolation, runner scoping, cron behaviour), a containerized Forgejo instance (setup cost, runner registration, API parity), or replay-based fakes. What isolation does each give from production issues/labels/webhooks, and what does each cost to keep alive? Findings land on a throwaway research/pipeline-e2e-forgejo-target branch, pointer commented here.

Parent

Wayfinder map — e2e testing: the product and the swarm pipeline

## Question Survey options for a disposable Forgejo target a pipeline e2e can drive end-to-end: a staging repo on git.matou.nz (Actions isolation, runner scoping, cron behaviour), a containerized Forgejo instance (setup cost, runner registration, API parity), or replay-based fakes. What isolation does each give from production issues/labels/webhooks, and what does each cost to keep alive? Findings land on a throwaway `research/pipeline-e2e-forgejo-target` branch, pointer commented here. ## Parent [Wayfinder map — e2e testing: the product and the swarm pipeline](https://git.matou.nz/Matou/ourcloud/issues/262)
ben self-assigned this 2026-08-02 03:14:19 +00:00
Author
Owner

Research done (#271) — findings on branch: docs/research/pipeline-e2e-forgejo-target.md

  • git.matou.nz runs Forgejo 15.0.5+gitea-1.22.0 (live /api/v1/version probe); repo-scoped runner registration, repo secrets/variables, and workflow-dispatch endpoints all present in its swagger.
  • Option 1 (staging repo on prod): repo-scoped runners exist, but org secrets are inherited (owner-level precedence is documented for variables — a Matou-org staging repo gets the REAL Claude/Mattermost tokens), schedule rows share prod's fragile scheduler (forgejo#9846: same-cron deadlock permanently disables a scheduled workflow — our 07-28 silent-stop class), and every run contends with prod's capacity-1 runner + global flock. Rejected as standing target.
  • Option 2 (containerized): cheap and fully scriptable — codeberg.org/forgejo/forgejo:15 + SQLite + INSTALL_LOCK, admin/token via CLI, forgejo-runner register --no-interactive repo-scoped in host mode; drive triggers via workflow_dispatch, assert schedule registration instead of waiting for cron ticks; teardown = docker rm -v. Covers the platform hops (label→workflow→runner) fakes can't.
  • Option 3 (fake API): fakebin/curl already fakes Mattermost + a Forgejo slice but is stateless; making it stateful gives full script-chain e2e (triage→ready-list→swarm-stub→gate→ask→resume) offline in CI — yet can never cover event delivery, cron, or runner pickup, which is where prod actually broke (07-28, 07-31).
  • Recommendation: two tiers — stateful-fake script-chain e2e as the default CI test, plus an on-demand containerized Forgejo platform e2e pinned to prod's major. Open questions in the doc (secret vs variable precedence, host-label syntax, v16 API drift).
**Research done (#271)** — findings on branch: [docs/research/pipeline-e2e-forgejo-target.md](https://git.matou.nz/Matou/ourcloud/src/branch/research/pipeline-e2e-forgejo-target/docs/research/pipeline-e2e-forgejo-target.md) - git.matou.nz runs Forgejo `15.0.5+gitea-1.22.0` (live `/api/v1/version` probe); repo-scoped runner registration, repo secrets/variables, and workflow-dispatch endpoints all present in its swagger. - **Option 1 (staging repo on prod)**: repo-scoped runners exist, but org secrets are inherited (owner-level precedence is documented for variables — a Matou-org staging repo gets the REAL Claude/Mattermost tokens), schedule rows share prod's fragile scheduler (forgejo#9846: same-cron deadlock permanently disables a scheduled workflow — our 07-28 silent-stop class), and every run contends with prod's capacity-1 runner + global flock. Rejected as standing target. - **Option 2 (containerized)**: cheap and fully scriptable — `codeberg.org/forgejo/forgejo:15` + SQLite + `INSTALL_LOCK`, admin/token via CLI, `forgejo-runner register --no-interactive` repo-scoped in host mode; drive triggers via `workflow_dispatch`, assert schedule *registration* instead of waiting for cron ticks; teardown = `docker rm -v`. Covers the platform hops (label→workflow→runner) fakes can't. - **Option 3 (fake API)**: fakebin/curl already fakes Mattermost + a Forgejo slice but is stateless; making it stateful gives full script-chain e2e (triage→ready-list→swarm-stub→gate→ask→resume) offline in CI — yet can never cover event delivery, cron, or runner pickup, which is where prod actually broke (07-28, 07-31). - **Recommendation**: two tiers — stateful-fake script-chain e2e as the default CI test, plus an on-demand containerized Forgejo platform e2e pinned to prod's major. Open questions in the doc (secret vs variable precedence, host-label syntax, v16 API drift).
ben closed this issue 2026-08-02 03:30:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#271
No description provided.