Repository navigation
Description
Filed by lane openRepoTools-3 on Brett Heap's word of 2026-10-21T12:0xZ: "yes, file the 26.04 issue in v1.2.0". Line numbers are at main acc89ea.
What happens
GitHub is moving ubuntu-latest to Ubuntu 26.04 (actions/runner-images#14748, rolled out from 2026-10-19 to 2026-11-19). This repository's jobs first ran there at 04:33Z on 2026-10-21; a run at 03:59Z still got 24.04.
Main's nightly run 39544671103, at a42946e, failed on 26.04 in three jobs:
package: setup-python says "The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04." The release workflow's install check has the same 3.9 leg, so a tag's release run would fail the same way.testsandtests-no-submodule: each fails one test,tests/test_claude_current.py::test_a_command_that_ignores_term_is_killed_after_the_grace[host], with "KILL never came: 30.0s". The[watchdog]case passes.
#296 pins every Ubuntu runner in tests.yml and release.yml to ubuntu-24.04, so CI no longer sees either problem. This issue is for supporting 26.04 itself.
Why the kill test fails: 26.04's timeout is uutils, and its -k KILL never reaches the process group
The binary. On ubuntu:26.04 (26.04.1), timeout --version prints timeout (uutils coreutils) 0.10.0.
/usr/bin/timeoutbelongs tocoreutils-from-uutils, and links torust-coreutils0.10.0-1ubuntu2~26.04.1.- 0.8.0, the version 26.04 shipped with, behaves the same.
- The runner image lists the same coreutils metapackage, and its failure signature is identical.
What it does. uutils timeout makes itself a process-group leader, and at the bound it sends TERM to its child and to its group, as GNU does. But its -k KILL goes to the direct child only.
uucore::process::ChildExt::send_signal_group(src/uucore/src/lib/features/process/unix.rs) first callssignal(sig, SIG_IGN), so thattimeoutdoes not signal itself.- For SIGKILL that call fails with EINVAL, and the
?returns beforekill(0, SIGKILL). platform::send_signal(src/uu/timeout/src/platform/unix.rs) then discards the error withlet _ =.- The code is the same in 0.10.0, 0.11.0, 0.12.0 and
main(read on 2026-10-21). No upstream issue for it was found.
strace of timeout -k 2 1 bash -c 'trap "" TERM; sleep 20; :', with its output captured:
uutils: T+1.045 kill(2951,SIGTERM); kill(0,SIGTERM); kill(2951,SIGCONT); kill(0,SIGCONT)
T+3.048 kill(2951,SIGKILL) <- only the child; exit_group(137) at T+3.050
rt_sigaction(SIGKILL,{SIG_IGN}) = -1 EINVAL <- no kill(0,SIGKILL) follows
T+20.157 pid 2952 (the sleep) exit_group(0); the $(...) returned at 20.166
GNU 9.7: T+3.025 kill(2965,SIGKILL); kill(0,SIGKILL) <- group KILL, so everything dies
In the test. The fake npm does trap '' TERM, so its sleep 30 inherits the ignored TERM and the group TERM does nothing. At 6 s the KILL ends only the bash child. The orphaned sleep still holds the pipe's write end, so view_out="$(…)" reads until EOF, at 30 s.
Measured, in seconds, on Eagle (Ubuntu 24.04, GNU 9.4) and in ubuntu:26.04 (uutils 0.10.0):
| shape | GNU 9.4 | uutils 0.10.0 |
|---|---|---|
the test's fake npm, TERM ignored, -k 5, 1 s bound, output captured |
6.003 | 30.010 |
claude-current's run_bounded, host-timeout branch, TERM ignored |
6.003 | 30.024 |
run_bounded, plain TERM |
1.003 | 1.008 |
run_bounded, watchdog branch, TERM ignored |
6.020 | 6.035 |
real npm view (npm 12.0.2) against a stalled registry, 3 s bound |
3.014 | 3.016 |
the real test, [host] |
passes | fails, 30.1 s |
With timeout pointed at GNU's gnutimeout first on PATH, the real test passes on 26.04 (2 passed in 12.48s).
Who it affects
-
On a 26.04 host,
claude-currentgives the right answer, late. It still reportsunverifiedwith "npm view took longer than 1s". But the launch sits silent for as long as a descendant that survives TERM and holds stdout stays alive. -
A plain TERM at the bound behaves as before, and a single process that ignores TERM is still ended by the direct KILL.
-
Real
npm viewis one process, and a stalled registry still ends at the bound. Default setups are unlikely to see this. ACLAUDE_CURRENT_NPMwrapper with a TERM trap would. -
The same
timeout -kpattern is used at three more places:lanes-edit.sh:2022(git);lanes-edit.sh:2610(an export);lane-start:4240(git).
They have the same gap. Only the
claude-currenttest is known to fail.
What to do
claude-current'srun_bounded(:231-233) picks its bound by what it can do. It takestimeoutonly when the first line oftimeout --versionsays GNU coreutils, thengtimeout, thengnutimeout, then the existing watchdog. It caches the answer once per run.- An allow-list is safer than a "not uutils" deny-list.
- Every uutils host has
/usr/bin/gnutimeout:coreutils-from-uutilspre-depends ongnu-coreutils(9.7 on 26.04).
- The three other call sites get the same choice, ideally from one shared helper.
- A test fakes a
timeoutwhose--versionsays uutils, and asserts that the GNU or the watchdog path is taken. - Python 3.9 on 26.04. setup-python has none there. Decide whether the 3.9 legs stay on 24.04 or move to a runner that has 3.9.
requires-pythonstays as it is unless Brett Heap decides otherwise. - CI runs on both 24.04 and 26.04, so that a
-latestmove cannot hide this again. Then decide which pins to keep. - CI and the release workflow run on ubuntu-24.04, because ubuntu-latest is now Ubuntu 26.04, where setup-python has no Python 3.9 and the TERM-ignoring kill test fails #296's review follow-ups (CI and the release workflow run on ubuntu-24.04, because ubuntu-latest is now Ubuntu 26.04, where setup-python has no Python 3.9 and the TERM-ignoring kill test fails #296 6315434254):
- R1:
specs/006-release-pypi/contracts/workflows.md:40and:360, and the docstring attests/test_tests_workflow.py:852-853, still say the existing jobs keep their runner. - R2: no test pins the
runs-onofrelease.yml'sbuild,testpypiandpypi. - R3: the comments say
ubuntu-latest"became Ubuntu 26.04 on 2026-10-21". Cite #14748's window, and give 10-21 as this repository's first run there. - R4:
release.yml's comment should give its own reasons for the pin: the 3.9 install leg, and building on the image its gate and rc1 ran on.
- R1:
- Optional: the watchdog costs 5 s extra on a plain hang, because
wait "$dog"waits out the grace. It could end as soon as the group is gone. - Optional, only on Brett Heap's word: report the one-line bug to uutils upstream. The fix is to skip the SIG_IGN step for SIGKILL.
Related
- Lane openRepoTools-1's cutover patch:
specs/004-migrate-to-triad/patches/t010-assembly-exact-pin-job.patch:63gives the assembly'scomposedjobruns-on: ubuntu-latest. That job runs the whole suite, so on 26.04 it meets the same[host]failure (Triad migration (feature 004-migrate-to-triad): execution tracking under Brett Heap's word of 2026-10-07 #186 6315105746). - openRepoShape at
190133dhas its 3.9packagejob and 3.9 install leg onubuntu-latesttoo (Every register write goes through its lane's own checkout <W>-lanes/<lane>/, where lane-start and lane-end read the lane's row; a LANES_REPO naming W refuses; locks name their holder's container; refresh-workspace fast-forwards W (Amendment 23) (#198) #282 6315438693). - The evidence is on Eagle, at
/workspace/projects/.lane-worktrees/openRepoTools-3/briefs/u2604-work/and/tmp/lane3-u2604-20261021/: the shape scripts, the timings, thepssamples and the three strace files.
Lane: openRepoTools-3
Activity
CI and the release workflow run on ubuntu-24.04, because ubuntu-lates…