Assert zeroconf registration in the flatpak smoke test
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
The flatpak smoke test should fail when Kolibri, started by kolibri-daemon, never registers on zeroconf.
Complexity: Low Target branch: develop
Context
- Before #15349 the daemon stopped the process bus at
START, soZeroConfPlugin.RUNnever ran. RUNlogsRegistering ourselves to zeroconf networktokolibri.txtbefore touching the network._search_leaves_kolibri_stoppedasserts the inverse case, with no zeroconf after a search-only activation.
The Change
- Add a check to the
checksdict inphase_learnthat waits forRegistering ourselves to zeroconf networkinkolibri.txt.
Acceptance Criteria
- [ ]
smoke_test.pypasses on develop. - [ ]
smoke_test.pyfails when_DBusPlugin.startinkolibri_daemon/kolibri_process.pyrequestsSTARTinstead ofRUN.
AI usage
Diagnosed against a live flatpak install and drafted with Claude Code.
Plan: smoke_test.py fails when Kolibri, started by kolibri-daemon, never logs its zeroconf registration.
- [ ] Assert zeroconf registration in
phase_learn - [ ] Self-review the produced code
Assumptions — the issue did not settle these; say so if one is wrong.
- Zeroconf socket setup succeeds on
ubuntu-latest. If it doesn't,Zeroconf()raises before the log line (zeroconf_transport.py:196) and the check fails on develop. - Only the first start's registration is asserted. If restarts must register too, the check also belongs in
_kolibri_restarts'settledpredicate. - The
STARTmutation passes every existing check. If the baseline run fails, the new check is redundant for AC2.
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
- Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
- Ran the project's full test suite and linter before committing
- For UI changes: captured live screenshots to verify rendering
- For backend changes: verified with example API/CLI output
@rtibbles Blocked on CI evidence for the ACs: the bot's token can't open PRs on rtibblesbot/kolibri (createPullRequest 403), and pr_build_kolibri.yml only runs the flatpak smoke test on pull_request.
The throwaway branches are already pushed to the fork. Which should I do?
- Open three draft PRs from
verify-15336-baseline,verify-15336-mutatedandverify-15336-cleanintorelease-v0-verify-15336onrtibblesbot/kolibri(or give the token PR-write access). - Or let the throwaway commits add a
pushtrigger forverify-15336-*topr_build_kolibri.yml. - Or skip the fork runs: the real PR's CI covers AC1, and AC2 (
STARTmutation fails) goes unproven.
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
Should be able to now.