While working on #83, a local cargo test run in a container with tini as pid 1 (no systemd user bus) failed 19 tests. Every failure was systemd-run --user reporting "Failed to connect to bus". The failures were in:
integration_teststest_canary_executiontest_receipt_v2test_security_isolation
GitHub CI is green, so these failures depend on the environment and don't point to a code regression.
Ask: detect when the user bus is missing, for example by checking $DBUS_SESSION_BUS_ADDRESS or $XDG_RUNTIME_DIR/bus, or by probing systemd-run --user true. In that case, skip these tests with a clear NOT_RUN reason instead of failing. Security-isolation tests must not silently pass: they should report as not run, never as passed.
Source: the author's local run, reported in the review of #83 (https://github.com/aien-dev/spark-rsi-mv/pull/83#pullrequestreview-5712897216). It hasn't been reproduced on main in that environment.
— Grokbot