Products › lamco-dbus-tools › Interfaces
JUnit and SARIF from D-Bus checks: Drift, timing and policy in CI
JUnit and SARIF reports from D-Bus checks let CI fail on interface drift, timing limits and policy findings, and lamco-dbus-tools writes both from its captures.
JUnit XML and SARIF 2.1.0 are the two report formats continuous integration and security tooling already read. JUnit is the test-result format most CI systems show as passed and failed cases. SARIF, the Static Analysis Results Interchange Format, is the OASIS standard that code-scanning dashboards take findings in. lamco-dbus-tools writes both, so a D-Bus check can fail a build or appear beside other findings: An interface change that breaks old clients, a method whose slow tail grew, a policy file that opened the system bus.
What it is
JUnit XML has no single formal standard. It's the shape test runners write and CI systems read: A <testsuite> of <testcase> elements, each passing, or holding a <failure> with a message. CI marks the job failed when any case failed, and lists each case by name.
SARIF 2.1.0 is specified by OASIS. A log holds runs, each naming its tool and that tool's rules, and a list of results. A result names its rule, a level such as error or note, a message, and where it applies, a file and line. partialFingerprints let a consumer recognise the same result across runs even when lines move, and baselineState says whether a result is new, unchanged or absent against an earlier run.
Each format suits a different question. JUnit answers "did this pass?" in a build. SARIF answers "what's wrong, where, and is it new?" in a security review, and keeps a finding the same finding as files change around it.
How lamco-dbus-tools reads it
dbussee and dbusdo take the captures the reports are written from: dbussee introspect and record, dbussee audit collect, and dbusdo call with --repeat. dbusdo call --max-p99 fails a chain when the 99th percentile at the caller is over a limit, and a failure marked soft is still written to the JUnit file, marked as allowed. dbustell writes the reports:
- JUnit:
dbustell drift --junit, each change a case and a breaking one failing;timing --max-p99 --junit, a case for each group with answered calls;health --junitandfindings --junit, a case for each finding, a problem failing and a notice not;compare --junit, each difference a failing case. - SARIF 2.1.0:
dbustell audit --sarif, one result for eachPOL-andAUD-finding,levelerrorfor a problem andnotefor a notice, the file and line where it has them, apartialFingerprintsentrylamcoDbusTools/v1built from what the finding is about and never from a line number, and with--baselineitsbaselineState.
dbussee introspect com.example.Catalog --out live.json # what the service exposes now
dbustell drift interfaces/com.example.Catalog.xml live.json --junit drift.xml # breaking changes fail the build
dbustell timing rec.json --max-p99 5 --junit timing.xml # each group's 99th percentile at the bus, against 5 ms
dbustell audit now.json --baseline last-month.json --sarif audit.sarif # policy findings, new or unchanged
Where it has been run
The README's run record lists the policy audit of a whole machine on Debian 13 and Fedora 45, one policy file changed on purpose giving one new finding, on 2026-11-30, and interface drift of systemd's services from 257 to 262, 14 changes and none breaking, on the same date. The use cases "A client broken by a changed signature" and "A slow D-Bus call's tail caught in CI" were each run from their own recordings among the use cases run between 2026-11-30 and 2026-12-02. The record doesn't say which CI system read the reports.
Findings
DRIFT-005: A method's or signal's arguments changed.POL-001: An allow with no destination opens an interface to every service.AUD-001: A root service every user may call, with little hardening.