Skip to content

ci: Allow user namespaces so real-sandbox tests run on Ubuntu - #69

Merged
Pavel Zwerschke (pavelzw) merged 1 commit into
mainfrom
ci-enable-userns-for-sandbox-tests
Nov 2, 2026
Merged

Pavel Zwerschke (pavelzw) merged 1 commit into
mainfrom
ci-enable-userns-for-sandbox-tests

Conversation

@ytausch

@ytausch Yannik Tausch (ytausch) commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Motivation

tests/test_pixi_update_isolation.py runs the real rattler-sandbox, but skips itself when the sandbox cannot start. On GitHub-hosted Ubuntu runners, AppArmor blocks unprivileged user namespaces, so this test has been silently skipped on Linux (both on ubuntu-24.04 and ubuntu-26.04) and the Linux sandbox was never exercised in CI.

Changes

  • Set kernel.apparmor_restrict_unprivileged_userns=0 on Linux runners before running pytest, as already documented in docs/contents/built-in-updaters/pixi.md and done in examples/plugin/.github/workflows/updater.yml.

@github-actions github-actions Bot added the ci label Nov 2, 2026
@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (504396a) to head (3320e94).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #69   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           50        50           
  Lines         3148      3148           
=========================================
  Hits          3148      3148           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pavelzw
Pavel Zwerschke (pavelzw) merged commit 877ad7e into main Nov 2, 2026
12 of 13 checks passed
@pavelzw
Pavel Zwerschke (pavelzw) deleted the ci-enable-userns-for-sandbox-tests branch November 2, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants