labctl pr logs: Forgejo log-route adapter never sees a terminating 404 — out-of-range job indices answer 200 #278
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/coding-lab#278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while diagnosing the missing agent-tools:claude-2.1.221 tag (publish run 380).
Repro:
fails with:
The route itself works — a plain anonymous curl of
returns 200 with the full log. What breaks the adapter's assumption on this Forgejo version: out-of-range job indices do not 404. e.g. run 378 has 2 jobs, yet
jobs/2/attempt/1/logsanswers 200, serving the same bytes as job 0. If the adapter probes for a terminating 404 (over attempts or job indices) to find the last valid one, it never gets one and gives up after 20 attempts.Impact:
labctl pr logs --checkis unusable against this forge for any check, which blocks agents from reading CI logs the intended way (I had to fall back to scraping the Forgejo UI/API by hand).