Skip to content

TEST-56-EXIT-TYPE is flaky #21480

@mrc0mmand

Description

@mrc0mmand

systemd version the issue has been seen with

latest main

Used distribution

Arch Linux

After re-introducing TEST-56 (and the respective functionality) in #20813 I've noticed a couple of random fails in various PRs, which make the test a bit unstable:

[    9.646864] testsuite-56.sh[226]: + systemd-analyze log-level debug
[    9.656400] systemd[1]: Reached target Login Prompts.
[    9.727537] systemd-logind[224]: Watching system buttons on /dev/input/event0 (Power Button)
[    9.728113] systemd-logind[224]: Watching system buttons on /dev/input/event1 (AT Translated Set 2 keyboard)
[    9.728633] systemd-logind[224]: New seat seat0.
[    9.745663] systemd[1]: Started D-Bus System Message Bus.
[    9.769374] systemd[1]: Setting log level to debug.
[    9.771228] testsuite-56.sh[226]: + cat
[    9.787120] testsuite-56.sh[226]: + chmod +x /tmp/test56-exit-cgroup.sh
[    9.799320] testsuite-56.sh[226]: + systemd-run --wait --unit=one -p Type=notify -p ExitType=cgroup -p 'ExecStartPost=bash -c "systemctl stop one &"' /tmp/test56-exit-cgroup.sh
[    9.917018] systemd[1]: Started User Login Management.
[    9.924796] systemd[1]: Reached target Multi-User System.
[    9.933681] dbus-daemon[229]: [system] Successfully activated service 'org.freedesktop.systemd1'
[    9.942264] systemd[1]: Starting Record Runlevel Change in UTMP...
[    9.984707] test56-exit-cgroup.sh[234]: + disown
[    9.985737] test56-exit-cgroup.sh[235]: + sleep infinity
[    9.988313] test56-exit-cgroup.sh[234]: + systemd-notify --ready
[    9.996744] test56-exit-cgroup.sh[238]: + sleep infinity
[   10.013322] systemd[1]: Starting /tmp/test56-exit-cgroup.sh...
[   10.019846] systemd[1]: systemd-update-utmp-runlevel.service: Deactivated successfully.
[   10.036639] systemd[1]: Finished Record Runlevel Change in UTMP.
[   10.056952] test56-exit-cgroup.sh[234]: + sleep infinity
[   10.132911] testsuite-56.sh[232]: Job for one.service canceled.
[   10.138704] systemd[1]: testsuite-56.service: Main process exited, code=exited, status=1/FAILURE
[   10.138845] systemd[1]: testsuite-56.service: Failed with result 'exit-code'.
[   10.170346] systemd[1]: Failed to start TEST-56-EXIT-TYPE.
[   10.182877] systemd[1]: one.service: Control process exited, code=killed, status=15/TERM
[   10.183105] systemd[1]: one.service: Failed with result 'signal'.

Full journal: system.journal.tar.gz

/cc @unusual-thoughts

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingtests

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions