← Back to issue list

Mosquitto example exits after a single message is received

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1577867
Type
issue
State
closed
Author
~kyrofa
Labels
bitesize tests
Created
Updated
Closed

Current evaluation

Mosquitto demo now keeps listening until sent an explicit quit message; fixed in snapcore/snapcraft#1173 via commit b118810fa.

Resolution: closed resolved

Reason: The issue was resolved by snapcore/snapcraft#1173, which added an explicit quit message for the Mosquitto subscriber. The resolving commit is b118810fa.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The mosquitto example was modified to exit after receiving a single message in order to work around a difficulty in killing the service in tests. This fixes the tests but makes for an example that is not very useful as such-- services aren't typically written that exit after a single message is received. We should be careful about our examples being more focused on being a test infrastructure than they are on being actual examples. Perhaps the example could be updated to quit upon a given message and otherwise continue running so people can play with it without it quitting immediately?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Mosquitto demo now keeps listening until sent an explicit quit message; fixed in snapcore/snapcraft#1173 via commit b118810fa.
stealth/space-bunny-alpha — closed resolved Maintainer kyrofa flagged the mosquitto demo/test exiting after one message; resolved by merged PR #1173 (commit b118810fa), which added a specific 'exit' message so the subscriber keeps running, fixing LP #1577867.
stealth/space-bunny-alpha — closed stale The proposal to make the Mosquitto example run until a designated message was closed without a documented resolution; no implementing PR or commit was found.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The mosquitto example remains modified to exit after a single message to satisfy test constraints. No fix or follow-up PR was implemented, effectively abandoning the suggested improvement.
qwen/qwen3.6-35b-a3b — — Closed without implementation, likely abandoned due to inactivity. The suggested update to keep the mosquitto example running continuously while supporting test-specific termination was never applied.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The test workaround causing premature exit was never reverted, leaving the mosquitto example unupdated and effectively abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The mosquitto example retains the test workaround that exits after a single message. No code updates were implemented to restore standard example behavior.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#1173 (confidence 99%)

    The linked PR and matching commit changed the demo to exit only when instructed.

Related issues

Issue Project State Summary Similarity
#1173 demos, tests: add a message to exit the mosquitto subscriber snapcraft merged Merged PR #1173 as commit b118810fa, adding a dedicated exit message to the Mosquitto subscriber demo/test and resolving LP #1577867.
71%