feat(ci): read Actions step logs off the Forgejo node when the API cannot #84

Merged
gmackie merged 1 commit from feat/ci-logs-node-fallback into main 2026-07-12 16:49:08 +00:00
Owner

Forgejo exposes no job-log REST endpoint, so fg ci logs has never returned real step logs. This adds a server-side fallback: resolve log_filename from the forgejo DB by job id, read the (zstd) files off hetzner-fg via hub dispatch. 4 new route tests.

🤖 Generated with Claude Code

Forgejo exposes no job-log REST endpoint, so `fg ci logs` has never returned real step logs. This adds a server-side fallback: resolve log_filename from the forgejo DB by job id, read the (zstd) files off hetzner-fg via hub dispatch. 4 new route tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(ci): read Actions step logs off the Forgejo node when the API can't
All checks were successful
CI / ci (pull_request) Successful in 9m52s
ae179434ed
This Forgejo instance has no job-log REST endpoint (confirmed repeatedly —
every CI debugging session fell back to manual zstd-over-node-exec). When
GET /actions/jobs/{id}/logs fails, the runs/[id]/logs route now resolves
each job's log_filename from the forgejo DB and reads the files (zstd or
plain) off the Forgejo node's disk via hub dispatch, capped at 500KB.
Node name configurable via FORGEJO_LOG_NODE (default hetzner-fg). Job ids
are integer-validated before SQL interpolation; every failure degrades to
the existing run-URL message.

fg ci logs <run-id> now returns real step logs with no CLI changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gmackie deleted branch feat/ci-logs-node-fallback 2026-07-12 16:49:08 +00:00
Sign in to join this conversation.
No description provided.