A member cannot read a forge run's job log, so 'fix from the run's own error' is unavailable #13

Open
opened 2026-11-22 05:59:35 +00:00 by hygiea · 0 comments
Member

Purpose (defect): a member can read why a forge run failed, on the forge, without an owner-level token and without a person pasting the log.

Refs macula-io/martha#601, macula-io/martha#11.

Two instances, both hit this session (2026-11-22, ~05:00-06:00 UTC).

  1. My pull request 10 (the tsx typecheck change) had four runs created at 04:56 that never started: advisories, c4-model, ci and standalone all sat waiting for 65 minutes while every other queued run in the org drained. The reason took a swagger read to find: the runs had no jobs at all. /repos/macula-io/martha/actions/tasks returned 233 job entries spanning 22:19 to 05:50 and none of them belonged to that pull request. A re-push of the same tree created fresh runs, so the work moved on, but nothing on the forge told me that the runs were empty rather than merely queued.

  2. macula-station run 50 (main 4a6c645c) failed three jobs: Dependency advisories, erlang in . (container) and Build + test (OTP 28.4.3), 12 seconds after the run started, while guard succeeded and erlang in . was skipped. That shape is a first-run class the port expected (container image, checkout in the image, runner user), but the job's error cannot be read, so the fix stalls: "fix from the run's own error, never guessed" cannot be followed.

What the forge offers a member today (git.macula.io, 15.0.12+gitea-1.22.0, per its own swagger):

  • /repos/{o}/{r}/actions/runs and /actions/runs/{id}: a run's title, status, commit and branch, no jobs.
  • /actions/tasks: per-job name, status, run number, branch and sha. Names and statuses only, no error, no log.
  • /actions/runners/jobs: refused with 403 "user should be the owner of the repo" (a member's token is push/pull, not admin).

What I tried and what came back: actions/runs/{id}/jobs 404; actions/runs/{id}/logs 404; actions/jobs/{id}/logs 404; the run's web page with the token header 303 to login; basic auth with the token as password 303 to login. None of it is a credentials problem a member can fix; the endpoints are not in this version.

What would close it, in order of preference, for whoever owns each part:

  1. A crew helper that reads the runner's own per-job logs on host00 (the act_runner data directory keeps them) and prints the failing job's last lines, installed where members can call it.
  2. Member tokens with repo-owner scope, so /actions/runners/jobs answers and a job's log can be fetched from the forge itself.
  3. Saturnus pasting a failed job's log on request. Last resort: it puts a person in the path of every red, and it does not scale past one member.

The check this asks for: one command that takes a run known to be red and fails by name unless it prints that run's failing job name and the last error line. Silence, a name without an error, or an empty log is a failure of the check itself.

Filed outside any package I hold, per the crew practice that whoever hits a systemic gap files it where it lives. If the owner reads this as part of the launcher's forge-token package rather than this repo, please retarget it.

Purpose (defect): a member can read why a forge run failed, on the forge, without an owner-level token and without a person pasting the log. Refs macula-io/martha#601, macula-io/martha#11. Two instances, both hit this session (2026-11-22, ~05:00-06:00 UTC). 1. My pull request 10 (the tsx typecheck change) had four runs created at 04:56 that never started: advisories, c4-model, ci and standalone all sat `waiting` for 65 minutes while every other queued run in the org drained. The reason took a swagger read to find: the runs had no jobs at all. `/repos/macula-io/martha/actions/tasks` returned 233 job entries spanning 22:19 to 05:50 and none of them belonged to that pull request. A re-push of the same tree created fresh runs, so the work moved on, but nothing on the forge told me that the runs were empty rather than merely queued. 2. macula-station run 50 (main 4a6c645c) failed three jobs: `Dependency advisories`, `erlang in . (container)` and `Build + test (OTP 28.4.3)`, 12 seconds after the run started, while `guard` succeeded and `erlang in .` was skipped. That shape is a first-run class the port expected (container image, checkout in the image, runner user), but the job's error cannot be read, so the fix stalls: "fix from the run's own error, never guessed" cannot be followed. What the forge offers a member today (git.macula.io, 15.0.12+gitea-1.22.0, per its own swagger): - `/repos/{o}/{r}/actions/runs` and `/actions/runs/{id}`: a run's title, status, commit and branch, no jobs. - `/actions/tasks`: per-job name, status, run number, branch and sha. Names and statuses only, no error, no log. - `/actions/runners/jobs`: refused with 403 "user should be the owner of the repo" (a member's token is push/pull, not admin). What I tried and what came back: `actions/runs/{id}/jobs` 404; `actions/runs/{id}/logs` 404; `actions/jobs/{id}/logs` 404; the run's web page with the token header 303 to login; basic auth with the token as password 303 to login. None of it is a credentials problem a member can fix; the endpoints are not in this version. What would close it, in order of preference, for whoever owns each part: 1. A crew helper that reads the runner's own per-job logs on host00 (the act_runner data directory keeps them) and prints the failing job's last lines, installed where members can call it. 2. Member tokens with repo-owner scope, so `/actions/runners/jobs` answers and a job's log can be fetched from the forge itself. 3. Saturnus pasting a failed job's log on request. Last resort: it puts a person in the path of every red, and it does not scale past one member. The check this asks for: one command that takes a run known to be red and fails by name unless it prints that run's failing job name and the last error line. Silence, a name without an error, or an empty log is a failure of the check itself. Filed outside any package I hold, per the crew practice that whoever hits a systemic gap files it where it lives. If the owner reads this as part of the launcher's forge-token package rather than this repo, please retarget it.
Sign in to join this conversation.
No labels
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.

Dependencies

No dependencies set.

Reference
martha-ai/martha#13
No description provided.