Repository navigation
POSIX e2e: start mosquitto without a config file; run on ubuntu-latest again - #35
Merged
Merged
Conversation
…t again
Ubuntu 26.04's apparmor package confines /usr/sbin/mosquitto to config files
under /etc/mosquitto, so the file the harness wrote in its work directory
could not be read ("Unable to open config file") and every end-to-end test
failed at port_open. Without a config file mosquitto 2.x listens on loopback
only, allows anonymous clients and keeps no persistence, which is what the
tests set. The harness now also prints mosquitto.log when the broker does not
listen. This undoes the ubuntu-24.04 pin from #33.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUQ6asqTe3tYwnZR7GW2dn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ubuntu 26.04's
apparmorpackage ships/etc/apparmor.d/mosquitto, which confines/usr/sbin/mosquittoto config files under/etc/mosquitto. The harness wrote itsmosquitto.confin the test's work directory, so mosquitto loggedError: Unable to open config fileand every end-to-end test failed atport_open. The 24.04 package has no profile, which is why #33's pin worked. A plainubuntu:26.04container does not enforce the profile, so it does not reproduce there.The harness now starts
mosquitto -p <port>with no config file. In that mode mosquitto 2.x:which is what the config file set. It also prints
mosquitto.logwhen the broker does not listen, since a CI runner's work directory is gone afterwards. This puts the POSIX job back onubuntu-latest, undoing #33.Checked:
ubuntu:26.04container;🤖 Generated with Claude Code
https://claude.ai/code/session_01VUQ6asqTe3tYwnZR7GW2dn