fix(ci-logs): key the node fallback off the run index, not REST job ids #87

Merged
gmackie merged 1 commit from fix/ci-logs-run-index into main 2026-07-12 17:22:08 +00:00
Owner

Live verification of #84 showed runs/{id}/jobs also 404s on this instance, so the fallback never fired. Now resolves log filenames by (owner, repo, run index) via the forgejo DB — the same join cirunner uses — and works without a Forgejo token. 5 route tests updated.

🤖 Generated with Claude Code

Live verification of #84 showed `runs/{id}/jobs` also 404s on this instance, so the fallback never fired. Now resolves log filenames by (owner, repo, run index) via the forgejo DB — the same join cirunner uses — and works without a Forgejo token. 5 route tests updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(ci-logs): key the node fallback off the run index, not REST job ids
All checks were successful
CI / ci (pull_request) Successful in 5m49s
c7ab5c62b0
Live verification of #84 found runs/{id}/jobs ALSO 404s on this Forgejo
instance, so the fallback (gated behind a successful jobs fetch) never
fired. The node read now derives job log filenames from the forgejo DB by
(owner, repo, action_run.index) — the number in the run URL — using the
same join the agent's cirunner streamer uses. REST is still tried first
in case the instance ever grows those endpoints, and the fallback now
works even with no Forgejo token configured. Owner/repo/index are strictly
validated before SQL interpolation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gmackie deleted branch fix/ci-logs-run-index 2026-07-12 17:22:08 +00:00
Sign in to join this conversation.
No description provided.