runs: a stop keeps no record of who asked: head r88f1f2f0b4 with 212 passed was cancelled at 16:48:29Z 11-17 and nothing says by whom #98

Open
opened 2026-11-17 17:06:48 +00:00 by xemmerling · 0 comments
Owner

What was seen. Head run r88f1f2f0b4 (session ci:tilo, asked 16:35:42Z on 2026-11-17, production f5147065) ended at 16:48:29Z with stop = cancel: 212 checks passed, 732 skipped, none failed, and its 357 open checks were told cancelled in that second. It was not the newest head: three were asked after it (16:40:10Z, 16:44:59Z, 16:47:17Z). It is the day's only head stopped without a verdict. On 2026-11-16 at 03:32Z 29 open head runs were stopped the same way, and who did it was never found.

Why nobody can say who. A run is stopped from one place: Steer::Cancel and Steer::Interrupt in src/server/steer.rs:73-80 (POST /v1/steer and the pages' forms), through Engine::stop_run to Runs::stop (src/runs/mod.rs:1318). Runs::stop checks that the caller is the run's own session or holds cancel_any (the admin preset, src/access.rs:32), and Db::stop_run writes runs.stop (src/db/runs.rs:417). The caller is written nowhere and no line is logged: t.runs has no column for it, the run's done event carries the counts only, and the server's log of that second holds two "a stopped run's job carrying only some of a run's actions is cancelled" lines for other runs' jobs and nothing about the stop itself. t's own CI code never stops a run (nothing under src/ci calls it), so this head was stopped by a caller holding cancel_any.

What it costs. A stopped head gives no verdict; its commits wait for a later head. I report stopped heads apart from judged ones and can only write "who: unknown".

Proposal. Two steps, the first is small and I will commission it unless you object: Runs::stop logs one line with the run, how it was stopped, and the caller's session and principal. The second needs your word because it adds to what is stored: the caller kept with the run (beside stop, or in the done event) so the run's page and t can say who stopped it.

22:43Z 11-17: the first step is on main (949d76c8)

Runs::stop logs one line once a stop is allowed and recorded:

INFO t::runs: a run is stopped by a caller run=r… how=cancel run_session=… run_party=… by_session=… by_principal=… by_preset=… by_agent=… own=false

how is cancel or interrupt; own says whether the caller is the run's own session or another one using cancel_any; by_agent is there only when the caller names one. A refused stop logs nothing. Nothing is stored, no wire type and no rule of who may stop changed. Two tests capture the line. t's whole check set passed on testing for it (run re6a4ec2a6f). It is not on production yet: from the first promote that carries it, who stopped a head is one search of the server's log for "a run is stopped by a caller".

The second step, the caller kept with the run so the page and t can say it, still waits for your word.

10:02Z 11-18 (production d748ed8d, which carries 949d76c8): the line's first use. A head of main was cancelled by another session 96 seconds after it was asked.

2026-11-18T09:56:58.244632Z  INFO t::runs: a run is stopped by a caller run=r024836b7d6 how=cancel run_session=ci:tilo run_party=t by_session=claude:4a828a1b-9bc3-420d-bd67-897d43e46e0e by_principal=quinten by_preset=admin own=false
  • r024836b7d6 was the head for tilo b2fa040e0a (ci seq 58471): asked 09:55:22Z, 1,048 checks planned, stopped 09:56:58Z. It is the only stop of a run of CI's in this server's log since its start at 08:17Z. The other 36 stops are sessions cancelling their own runs (33) or a run of another session of the same person (3).
  • What it left behind. The head before it, r0105ddd4f5 (9ea2d47158, asked 09:53:15Z, 390 planned), had left its unstarted checks to it at 09:55:22Z: of the 383 checks it has told, 335 are skipped, 28 passed and 20 failed. The next heads were asked at 10:00:16Z, 10:00:27Z and 10:00:36Z, for newer commits, and planned 772, 766 and 784 checks. So b2fa040e0a has no verdict, and from the counts I cannot tell whether everything the stopped head held, its own 1,048 and what older heads had left to it, is in the next heads' plans.
  • The priority check counts it as one head stopped by a caller with no verdict in the hour.

The question this adds for you: when a caller stops a head, who answers the checks older heads had left to it? The second step above, the caller kept with the run so the page and t can say it, still waits for your word.

**What was seen.** Head run r88f1f2f0b4 (session `ci:tilo`, asked 16:35:42Z on 2026-11-17, production f5147065) ended at 16:48:29Z with `stop = cancel`: 212 checks passed, 732 skipped, none failed, and its 357 open checks were told cancelled in that second. It was not the newest head: three were asked after it (16:40:10Z, 16:44:59Z, 16:47:17Z). It is the day's only head stopped without a verdict. On 2026-11-16 at 03:32Z 29 open head runs were stopped the same way, and who did it was never found. **Why nobody can say who.** A run is stopped from one place: `Steer::Cancel` and `Steer::Interrupt` in `src/server/steer.rs:73-80` (`POST /v1/steer` and the pages' forms), through `Engine::stop_run` to `Runs::stop` (`src/runs/mod.rs:1318`). `Runs::stop` checks that the caller is the run's own session or holds `cancel_any` (the admin preset, `src/access.rs:32`), and `Db::stop_run` writes `runs.stop` (`src/db/runs.rs:417`). The caller is written nowhere and no line is logged: `t.runs` has no column for it, the run's `done` event carries the counts only, and the server's log of that second holds two "a stopped run's job carrying only some of a run's actions is cancelled" lines for other runs' jobs and nothing about the stop itself. t's own CI code never stops a run (nothing under `src/ci` calls it), so this head was stopped by a caller holding `cancel_any`. **What it costs.** A stopped head gives no verdict; its commits wait for a later head. I report stopped heads apart from judged ones and can only write "who: unknown". **Proposal.** Two steps, the first is small and I will commission it unless you object: `Runs::stop` logs one line with the run, how it was stopped, and the caller's session and principal. The second needs your word because it adds to what is stored: the caller kept with the run (beside `stop`, or in the `done` event) so the run's page and `t` can say who stopped it. ## 22:43Z 11-17: the first step is on main (949d76c8) `Runs::stop` logs one line once a stop is allowed and recorded: ``` INFO t::runs: a run is stopped by a caller run=r… how=cancel run_session=… run_party=… by_session=… by_principal=… by_preset=… by_agent=… own=false ``` `how` is `cancel` or `interrupt`; `own` says whether the caller is the run's own session or another one using `cancel_any`; `by_agent` is there only when the caller names one. A refused stop logs nothing. Nothing is stored, no wire type and no rule of who may stop changed. Two tests capture the line. t's whole check set passed on testing for it (run re6a4ec2a6f). It is not on production yet: from the first promote that carries it, who stopped a head is one search of the server's log for "a run is stopped by a caller". The second step, the caller kept with the run so the page and `t` can say it, still waits for your word. **10:02Z 11-18 (production d748ed8d, which carries 949d76c8): the line's first use. A head of main was cancelled by another session 96 seconds after it was asked.** ``` 2026-11-18T09:56:58.244632Z INFO t::runs: a run is stopped by a caller run=r024836b7d6 how=cancel run_session=ci:tilo run_party=t by_session=claude:4a828a1b-9bc3-420d-bd67-897d43e46e0e by_principal=quinten by_preset=admin own=false ``` - r024836b7d6 was the head for tilo b2fa040e0a (ci seq 58471): asked 09:55:22Z, 1,048 checks planned, stopped 09:56:58Z. It is the only stop of a run of CI's in this server's log since its start at 08:17Z. The other 36 stops are sessions cancelling their own runs (33) or a run of another session of the same person (3). - What it left behind. The head before it, r0105ddd4f5 (9ea2d47158, asked 09:53:15Z, 390 planned), had left its unstarted checks to it at 09:55:22Z: of the 383 checks it has told, 335 are `skipped`, 28 passed and 20 failed. The next heads were asked at 10:00:16Z, 10:00:27Z and 10:00:36Z, for newer commits, and planned 772, 766 and 784 checks. So b2fa040e0a has no verdict, and from the counts I cannot tell whether everything the stopped head held, its own 1,048 and what older heads had left to it, is in the next heads' plans. - The priority check counts it as one head stopped by a caller with no verdict in the hour. The question this adds for you: when a caller stops a head, who answers the checks older heads had left to it? The second step above, the caller kept with the run so the page and `t` can say it, still waits for your word.
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
tilo/t#98
No description provided.