Skip to content

Gatehand 0.12.1

Choose a tag to compare

@kvarc7 kvarc7 released this 26 Nov 15:59
c622bd3
  • Coder kick: a run GitHub stranded no longer stops the schedule. GitHub can leave a dispatched
    coder run queued with no jobs for good, and it cannot be cancelled, force-cancelled (409) or
    deleted (403). It holds no runner and no concurrency group, but the kick counted every unfinished
    run as busy, so it dispatched nothing for as long as the run stayed (17 hours on one repository).
    A run queued for 60 minutes or more that GitHub lists no jobs for is now left out: with
    parallelism 1 the kick dispatches next to it, and above 1 it holds no slot and no room (the
    inbox's and the digest's slot counts leave it out too). The kick names it in a ::warning:: on
    its run, and the digest names it in its Queue section. A run that is fresh, running, pending on
    its group, has a job, or whose jobs cannot be read still counts, so a kick still never cancels a
    person's waiting dispatch. Installed repositories need an update to get it.
    addons/hardened-runner's agent-kick.sh follows the same rule and names the run in the
    journal. It looks up the jobs of at most 3 such runs per kick, so its service's start timeout
    grows by 6 minutes; on the kick box, re-run its install. The dashboard's coder dispatch still counts such a run (it warns that the run would be cancelled,
    and with parallelism above 1 avoids its slot), which errs on the safe side.
  • Merge gate: a branch is updated at most once per head, never on top of the gate's own update. The gate merged
    only a head that contained the default branch's current tip, and updated a PR that was only
    behind. Where the default branch moves faster than CI and the review take, that never held:
    each Approve met a new tip, and the gate updated again (15 rounds of update, CI and review on
    one PR in two days). A head the gate's own update made (or one a person merged the base into
    when the gate asked) that passes every other condition and does not conflict now merges
    although the base has moved again; the report says (behind <base> by N since the gate's own update). Every other head that is behind is still updated first. This relaxes the 2026-11-06
    rule
    : such a head's checks and review saw the base as it was at the update, not as it is at
    the merge. A ruleset with strict required status checks ("require branches to be up to date")
    refuses such a merge, so the gate's run fails on it each time: keep that setting off. Installed
    repositories need an update to get it.
  • addons/hardened-runner: agent-kick.sh fills free coder slots. With
    AGENT_KICK_CODER_SLOTS=<N> (new, default 1), the coder timer dispatches one run per free
    slot, each with its slot input, instead of one run whenever no coder run was going; 0.12.0's
    roles.coder.parallelism had no effect on a repository kicked this way. Installed repositories
    need no update for this (re-rendering only refreshes one paragraph of their
    .github/agents/README.md); on the kick box, re-run install with AGENT_KICK_CODER_SLOTS set
    to the policy's parallelism.