Skip to content

CI Failures Without a Log

How to tell a Gitea Actions job that never ran from a real failure, why it happens on the shared runners (components/gitea/act-runner/), and how to re-run it.

Recognising it

A job that failed this way:

  • fails after 10 to 15 minutes, whatever the workflow does (for docs-build, a normal run takes under 2 minutes);
  • has no log: the run page shows no steps, and GET /api/v1/repos/{owner}/{repo}/actions/jobs/{job_id}/logs returns 500 with an empty message;
  • passes when re-run on the same commit.

A failure with a log, even a short one, is a real result: read the log.

Cause

The runner asked Gitea for work, Gitea assigned the job to it, and the runner never got the reply:

  1. Gitea 1.25 answers FetchTask as soon as it has assigned a job (PickTask commits the task in the database first, then replies; there is no long-poll).
  2. act_runner gives each fetch runner.fetch_timeout (default 5s). When the reply is slower, it treats the timeout as "no work" and logs nothing (poller.go, v0.6.1). A runner that is shutting down (a rollout) cancels its fetch the same way.
  3. The job stays running on a runner that does not know it, and no log line is ever sent.
  4. Gitea's stop_zombie_tasks cron (@every 5m) fails tasks with no update for ZOMBIE_TASK_TIMEOUT (default 10m). That is the 10-to-15-minute failure.

The fix is fetch_timeout: 30s in components/gitea/act-runner/runner-config.yaml. Because Gitea replies at once, a longer timeout costs nothing while Gitea is healthy. It only stops the runner from dropping a slow reply. The rollout case remains: a runner pod that is replaced can still drop a job it was fetching at that moment.

Evidence (2026-10-20)

The failed jobs from task #1307, from the Gitea task list (GET /repos/Skatzi/platform/actions/tasks). Each one ended at the first 5-minute zombie tick after start + 10 minutes, which means it got no update after it was assigned:

Task Job Started (UTC) Failed (UTC) Log
9686 docs-build (b86d2e7) 12:33:27 12:47:15 none (500)
9666 docs-build (287e612) 12:08:48 12:22:15 none (500)
9621 docs-build (7685409) 10:54:24 11:07:15 none (500)
9615 release (c42206b) 10:48:07 11:02:15 not checked

The runner pods that picked up the jobs before and after 9686 (5bc5c64998-6t8hb at 12:33:14, -rj5vt at 12:33:40) kept taking jobs, so none of them had stopped. Task 9666 fell during a runner rollout (pod template 54956fb47b up to 12:03:36, 5bc5c64998 from 12:08:41).

The short failures from the same day (de88073 and eb1fe51, about a minute each, with a log; 23c4159 looks the same but its log was not checked) are a different fault: Set up Python failed on a half-installed shared tool cache (rm: cannot remove '/opt/hostedtoolcache/Python/3.12.15/...'). Commit ba1b125 gave each job its own RUNNER_TOOL_CACHE, but actions/setup-python takes the runner image's AGENT_TOOLSDIRECTORY (/opt/hostedtoolcache) over it, so the cache stayed shared until AGENT_TOOLSDIRECTORY was set too (platform#1455). A similar short failure, Cannot find module '/var/run/act/actions/<hash>/dist/index.js' in actions/checkout or a failing Set up Python (2026-10-21), came from two jobs sharing one act_runner's action cache. The runners now run one job per process; see CI Runners.

None of this is visible from the workflow: the job fails before its first step, so a pip cache or timeout-minutes in ci-docs-build.yaml would not change it. Runner pod logs and events were not checked (no cluster access in that run).

Re-running a job

The Gitea API on this instance has no endpoint to re-run a job (POST .../actions/runs/{id}/rerun returns 404). Use one of:

  • Gitea UI (needs write access to the repository): open the run (https://gitea.prod.skatzi.com/{owner}/{repo}/actions/runs/{run}), then Re-run all jobs, or open the failed job and re-run just that one.
  • Empty commit (works for agents): push a commit that changes nothing, which starts every pull-request workflow again:
git commit --allow-empty -m "ci: re-run checks after a runner fault (#<task>)"
git push

Name the failed run in the message or the pull request, so the reviewer knows why the commit is there.