kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Assert zeroconf registration in the flatpak smoke test

Open jamalexbot opened this issue 4 months ago • 3 comments

❌ 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

The Change

  • Add a check to the checks dict in phase_learn that waits for Registering ourselves to zeroconf network in kolibri.txt.

Acceptance Criteria

  • [ ] smoke_test.py passes on develop.
  • [ ] smoke_test.py fails when _DBusPlugin.start in kolibri_daemon/kolibri_process.py requests START instead of RUN.

AI usage

Diagnosed against a live flatpak install and drafted with Claude Code.

jamalexbot avatar Jul 22 '26 18:07 jamalexbot

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' settled predicate.
  • The START mutation 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

rtibblesbot avatar Sep 25 '26 16:09 rtibblesbot

@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-mutated and verify-15336-clean into release-v0-verify-15336 on rtibblesbot/kolibri (or give the token PR-write access).
  • Or let the throwaway commits add a push trigger for verify-15336-* to pr_build_kolibri.yml.
  • Or skip the fork runs: the real PR's CI covers AC1, and AC2 (START mutation fails) goes unproven.

@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly

rtibblesbot avatar Sep 25 '26 16:09 rtibblesbot

Should be able to now.

rtibbles avatar Sep 25 '26 20:09 rtibbles