Skip to content

A time-out outside the code of a workflow of one try runs once more

  • Status: accepted, amends 0019 and 0141
  • Date: 2026-11-23

Context

The bot-health bot of 0019 runs the failed jobs of a bot once more before it opens an issue, also for a job that GitHub cancelled at its time limit. Findings, Mutation, Property tests and Fuzzing are the exception, ONE_TRY: a second try would hide an alert that is open, measure the mutants again for hours, or search again for an input. 0141 gave them their second try only when Harden-Runner stopped every job that failed, so a time-out went straight to an issue.

On 2026-11-23 that opened #1116, Findings fails on main, for run 45111195875: Set up job of Read the record of the reported alerts took 299 of its 300 seconds, as the runner timed out twice at 100 seconds downloading step-security/harden-runner, and every step of the job's own was skipped. The next run passed, and the bot closed the issue 20 minutes later. From 2026-10-24 to 2026-11-23, 18 issues of bot health in the repositories of the blueprint had exceeded the maximum execution time as their first error, all of Findings, each about one run and closed by itself after 0 to 117 minutes. Four came from the set-up of the job (#969, #1098, #1116 and one of issue-assistant), 14 from a runner that hung after the last step of a short job behind Harden-Runner on 1 and 2 November. Those 14 came from one fault that came back until Dennis-Otto/issue-assistant#245 fixed it, so a failure outside the code that keeps coming back has to reach the maintainer all the same.

Options

  1. A longer time limit for the jobs of Findings: their work takes under a minute and doesn't grow, and the limits are in the reusable workflow of the issue assistant, not in this bot.
  2. A list of the runner's messages, such as Failed to download action: it lags behind every new wording, and the place where the job broke says more.
  3. A second try where the steps of the jobs API show that the time ran out outside the code, and a report once that comes back.

Decision

Option 3. A job ran out of its time outside its steps when GitHub cancelled it with the annotation The job has exceeded the maximum execution time and none of its own steps has the conclusion failure, timed_out, cancelled or none at all; Set up job, Complete job and the pre and post steps of an action, which only an action of another repository has, are none of its own. It ran out in the set-up of the job when Set up job didn't pass or the first step after it, but a pre step, was skipped, and otherwise in the runner after its last step, as also a job of which GitHub lists no step any more but which carries the annotation, so that it started.

A run of ONE_TRY at its first attempt, whether it ended as failure or GitHub cancelled it at its time limit, runs its failed jobs once more when every job that failed is a job that Harden-Runner stopped, one that ran out of its time in the set-up of the job, in Findings (AFTER_THE_STEPS) also one that ran out of it after its last step, or a leg that its matrix cancelled, and one of them is not such a leg. Mutation, Property tests and Fuzzing don't run again for a hang after the last step: GitHub runs a failed job again from its start, for up to 350 minutes for a part of Mutation, and the property tests and the fuzzing would search again. A time-out inside a step, a job that GitHub calls timed out without the annotation, a step without a conclusion and a run at a later attempt stay reported at once; a second try that fails, for whatever reason, opens or updates the issue as before.

Before it runs such a job again, the bot counts the earlier times: the runs of the workflow on the branch of the 7 days before, at a later attempt, whose first attempt had a job of the same name, without the values of its matrix, that ran out of its time outside its steps at a place where the workflow runs it again. The name of the job is the key, as for the flaky-test bot of 1096, so #1116 would have stayed quiet: it was the first time for its job, while #969 and #1098 were two times for Accept or report findings. The look reads up to 10 pages of 100 runs, as Findings had 843 runs on main of the blueprint in those 7 days, and only for a run at a later attempt the jobs of its first attempt and the annotations of their cancelled jobs of the names. It stops after a call that GitHub kept failing and after 120 seconds, as 1110 has the flaky-test bot do, so that it ends within the 5 minutes of the job of bot health, and the line of the run says how far back it reached then. From the third time, the bot runs the job once more and also opens or updates the issue of the workflow, whose first sentence names the runs, where the time went in each, and that the code failed in none of them. The issue closes by the rule of 0126, once its failed jobs pass again, and the comment of its closing says again that it was the third time; no second state per workflow is kept.

Consequences

  • A single time-out of Findings outside the code, as those of #969, #1098 and #1116, heals by itself without an issue; the line of the run says what the bot healed, and the line of the second try that passes says which attempt it healed.
  • A second try of Accept or report findings dismisses the accepted alerts again with its own token and still fails for an alert that it hasn't recorded. Its job waits in the group findings without cancelling, so it can replace the waiting job of a newer run, which ends as cancelled and counts as no failure; both read the open alerts of main, so nothing is lost.
  • In Mutation, Property tests and Fuzzing, a short job that hung after its last step stays reported at once, although its rerun would be cheap: the jobs API doesn't name the time limit of a job.
  • A time-out outside the code that comes back reaches the maintainer from its third time in 7 days, while it still heals each time.