Use session reboot directly in Core acceptance without sudo prompt

This commit is contained in:
Pavel Isaev 2026-11-09 22:51:50 +03:00
parent 5d5b537974
commit 8a0ad520ae
2 changed files with 23 additions and 2 deletions

19
CORE-20261109.md Normal file
View file

@ -0,0 +1,19 @@
# Core acceptance 20261109T160658Z
The test failed at 19:16:39 UTC after waiting 300 seconds for `login:` following
the second extension reboot. The serial buffer instead contained
`[sudo] password for coretest:`. Adding `tree` took over five minutes, expiring
sudo's timestamp; `reboot()` bypassed the normal command authentication helper.
No second reboot happened. Prior boot/login, cumulative extensions, failed-request
preservation, CLI formats and kernel-argument retention checks had passed.
Per the user's explicit correction, local-session reboot/poweroff now use
`systemctl reboot` / `systemctl poweroff` directly through logind, without sudo.
This avoids a second privileged prompt after long composition. The correction
still needs its next normal VM run; syntax validation is not VM evidence.
The user separately authorized continuation of these exact Core/GNOME/KDE images
without remaining VM acceptance. Record a new hash-bound waiver for this run;
do not describe the failed Core test or skipped Desktop checks as passing.
Evidence is retained on terra under
`data/private/pipeline-monitor/20261109T160658Z/retained/worker/core/`.

View file

@ -133,7 +133,9 @@ journalctl -u archipelagod.service -n 80 --no-pager
def reboot():
event("explicit-reboot")
child.sendline("sudo systemctl reboot")
# The local login session can request reboot through logind directly.
# Do not introduce a sudo password prompt after lengthy composition.
child.sendline("systemctl reboot")
login()
def keyboard_setup(login_only=False):
@ -356,7 +358,7 @@ journalctl -u archipelagod.service -n 80 --no-pager
reboot()
command("strace --version; modprobe v4l2loopback; test -c /dev/video0; "
"modprobe -r v4l2loopback; archipelago self-check; archipelago status", True)
child.sendline("sudo systemctl poweroff")
child.sendline("systemctl poweroff")
child.expect(pexpect.EOF, timeout=180)
results["passed"] = True
event("acceptance-passed")