fix: workflows set GIT_PAGER=cat #2

Merged
navigator merged 3 commits from fix/pager into main 2026-09-30 03:25:04 -03:00
Owner

The runner gives jobs a terminal; git log in the template checkout started a pager and hung the first CI run of deb/pyzbar until the pager was killed by hand. All three workflows set GIT_PAGER/PAGER to cat, and the runner user now has core.pager=cat as well. The selftest runs git log too; with the runner setting in place it would not catch a workflow that loses the variable, so both layers stay.

The runner gives jobs a terminal; `git log` in the template checkout started a pager and hung the first CI run of deb/pyzbar until the pager was killed by hand. All three workflows set `GIT_PAGER`/`PAGER` to `cat`, and the runner user now has `core.pager=cat` as well. The selftest runs `git log` too; with the runner setting in place it would not catch a workflow that loses the variable, so both layers stay.
fix: workflows set GIT_PAGER=cat, git log hung a job on the runner
Some checks are pending
lint / shellcheck (pull_request) Waiting to run
selftest / deb-ci (pull_request) Waiting to run
596c708dff
The runner gives each job a terminal, so git log in the template's
checkout step started a pager and waited for a key: the first CI run of
deb/pyzbar hung. The selftest now calls git log too, so a regression
shows up here first.
fix: workflows never wait on the terminal
All checks were successful
lint / shellcheck (pull_request) Successful in 1s
selftest / deb-ci (pull_request) Successful in 2m21s
47e34fdc7c
Review of the pager fix: with a controlling terminal git can also ask
for credentials, and any command reading stdin would block until the
job timeout. The jobs now set GIT_TERMINAL_PROMPT=0 and
DEBIAN_FRONTEND=noninteractive, and every run block reads stdin from
/dev/null. The lint job checks that the package template keeps these
settings, since the selftest cannot notice their loss.
fix: anchor the template checks in lint
All checks were successful
lint / shellcheck (pull_request) Successful in 1s
selftest / deb-ci (pull_request) Successful in 2m18s
c5afb6f852
PAGER: cat matched inside GIT_PAGER: cat, so its loss went unnoticed;
every check is now a whole line, and the build step's </dev/null is
checked too. The step itself reads stdin from /dev/null like the
others.
Sign in to join this conversation.
No reviewers
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
deb/ci!2
No description provided.