ci: Checkout never pages -- git log in the runner pty hung every job (runs 18819-18822) #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/fnsc-ci-no-pager"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Runs 18819-18822 (the first forge-native runs, PR #11) were picked up but every job hung right after Checkout printed the commit line, then died ~19 min later (
this step has been cancelled: ctx canceledon the medium lane, stuckrunningforever on the arm64 one-job lane).Root cause: the forgejo-runner host executor runs each
run:step in a pty (forgejo/acthost_environment.go:if true /* allocate Terminal */) and writes a 0x04 keepalive into it every second.git log -1 --onelinesees a tty, starts the default pager (pager->moreon the Debian base image), and the keepalive Ctrl-D pages it forever -- the blank lines after the commit line in every task log aremorerepainting. Reproduced byte-for-byte in debian:12-slim with a pty + 1 Hz 0x04 writer.Fix:
GIT_PAGER=cat/PAGER=cat/GIT_TERMINAL_PROMPT=0+git --no-pager log,git fetch -q;timeout-minutesbackstops under the lane TTLs;workflow_dispatchon both workflows; header comment documenting the pty/keepalive constraint.🤖 Generated with Claude Code
git login the runner pty hung every job (runs 18819-18822)