Skip to content

ci: unload host mosquitto AppArmor profile on Ubuntu 26.04 runners - #60

Merged
reubenmiller merged 2 commits into
mainfrom
fix/ci-unload-mosquitto-apparmor
Nov 18, 2026
Merged

reubenmiller merged 2 commits into
mainfrom
fix/ci-unload-mosquitto-apparmor

Conversation

@reubenmiller

@reubenmiller reubenmiller commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Ubuntu 26.04 runners (now ubuntu-latest) enforce a host AppArmor profile for mosquitto. Because the test container is privileged, the profile also applies inside it. It blocks mosquitto from reading /etc/tedge/mosquitto-conf/, so connecting to Cumulocity fails during test setup.

  • Unload the runner's mosquitto AppArmor profile before running the tests.
  • Run the lint job with Python 3.11, since actions/setup-python has no Python 3.9 build for Ubuntu 26.04.

🤖 Generated with Claude Code

Ubuntu 26.04 runners (now ubuntu-latest) load /etc/apparmor.d/mosquitto in
enforce mode. Containers share the host's AppArmor, so the profile also
confines mosquitto in the privileged test container and denies it access to
/etc/tedge/mosquitto-conf/, which makes `tedge reconnect c8y` fail.

Unload that profile on the runner before running the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Python 3.9 is not available for Ubuntu 26.04 in actions/setup-python.
Use 3.11, which the system tests already use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
24 0 0 24 100 1m1.149365s

@reubenmiller
reubenmiller added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 2e6b416 Nov 18, 2026
9 checks passed
@reubenmiller
reubenmiller deleted the fix/ci-unload-mosquitto-apparmor branch November 18, 2026 06:34

This branch was previously deployed

1 inactive deployment
Test Auto — 73dd04d6 Deployed Nov 18, 2026 by reubenmiller via Test debian-systemd #332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant