fix(ci): unblock headless test runs and manage Forgejo secrets from .env
- desktop: mock @nut-tree-fork/nut-js in the shared Vitest setup; template
tests reached the real TextInsertService and libnut killed the worker on the
display-less Linux runner ("Could not open main display").
- mobile: the knowledge realtime test now unsubscribes, so the deletion
reconcile interval no longer keeps Jest alive forever.
- set-forgejo-secrets.mjs syncs every Forgejo secret from the root .env and
refuses local URLs; SUPABASE_URL had been registered as 127.0.0.1:55321, so
payple-renew never succeeded.
This commit is contained in:
parent
3cac14f668
commit
a7c0d6fb21
5 changed files with 98 additions and 59 deletions
|
|
@ -137,7 +137,11 @@ Stages `validate → test → build → e2e → package → publish → deploy`.
|
|||
### Forgejo Actions (`.forgejo/workflows/`)
|
||||
`ci.yml` — CI is now Forgejo-only (`.github/workflows` deleted 2026-09-26, Wave 3, dc43884). Jobs: `quality` (`version:check`, `contract:check`, `release:metadata:test`, secret scan, mobile release/config/build-config self-tests, Play asset contract, lint, typecheck, Vitest), `build-validation`, `mobile-quality`, `edge-functions` (Deno), `api-server-tests`.
|
||||
|
||||
`payple-renew.yml` — daily cron (+ manual dispatch) → `payple-renew` edge function; ported from the never-run `.github/workflows/payple-renew.yml` because the repository has no GitHub remote. Requires Forgejo secrets `SUPABASE_URL`, `CRON_SECRET`.
|
||||
`payple-renew.yml` — daily cron (+ manual dispatch) → `payple-renew` edge function; ported from the never-run `.github/workflows/payple-renew.yml` because the repository has no GitHub remote. Requires Forgejo secrets `SUPABASE_URL`, `CRON_SECRET`. 2026-09-26~10-11 `SUPABASE_URL` 시크릿이 로컬 주소(`127.0.0.1:55321`)라 한 번도 성공하지 못했다(GAP-OPS-03).
|
||||
|
||||
**Forgejo 시크릿 정본 = 루트 `.env`.** 웹 UI에서 손으로 넣지 않는다. `.env`를 고친 뒤 `node scripts/ci/set-forgejo-secrets.mjs --check` → `--write [NAME…]`. 스크립트가 Forgejo 시크릿 이름 ↔ `.env` 키 표(SUPABASE_URL, CRON_SECRET, CF_API_TOKEN←CLOUDFLARE_API_TOKEN, CF_ACCOUNT_ID←CLOUDFLARE_ACCOUNT_ID, FORGEJO_TOKEN, WIN_CSC_*)를 갖고, URL 시크릿에 로컬 주소가 있으면 아무것도 쓰지 않는다.
|
||||
|
||||
**러너:** `linux-builder` 라벨은 러너 `kd-desktop` 하나뿐이고, 그 호스트는 노트북 `ChanpacaLaptop`(ssh `vd-linux`, systemd `forgejo-runner.service`, host executor)이다. 노트북이 꺼지면 CI·크론이 전부 멈추고 Forgejo가 대기 잡을 Canceled 처리한다(실측: 2026-09-29 13:24 ~ 10-09 08:30 KST 꺼짐 → run #128~#137 Canceled, `3cac14f` push CI 미실행). GAP-CI-02.
|
||||
|
||||
`portable.yml` — 태그/수동 실행으로 **서명 없이** portable 채널(95MiB 7z 분할 볼륨 + Scoop 매니페스트 + 설치 스크립트)을 게시한다. `WIN_CSC_*` 불필요, updater feed는 건드리지 않는다.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue