Skip to content

Conversation

@jkloetzke
Copy link
Member

Detect Ubuntu restrictions...

On Ubuntu, the usage of mount namespaces is apparently restricted in
unprivileged user namespaces. In particular, if
/proc/sys/kernel/apparmor_restrict_unprivileged_userns_complain is
enabled, the clone() or unshare() call succeeds but the following
mount() call to make the mount namespace private is rejected.
Make sure the namespace-sandbox binary is up-to-date before any of the
test runs. Some of the blackbox tests call it directly and they could
accidentally call an outdated version.
Add the Ubuntu procfs knob and actually test for the current value to
give a more precise hint of what is going on.
@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.26%. Comparing base (954d5a2) to head (95f1f7d).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
pym/bob/invoker.py 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #689      +/-   ##
==========================================
- Coverage   89.38%   89.26%   -0.12%     
==========================================
  Files          50       50              
  Lines       16404    16417      +13     
==========================================
- Hits        14662    14655       -7     
- Misses       1742     1762      +20     

☔ View full report in Codecov by Sentry.
📢 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.

@jkloetzke jkloetzke merged commit 1df4a26 into BobBuildTool:master Dec 31, 2025
9 of 11 checks passed
@jkloetzke jkloetzke deleted the improve-namespace-detection branch December 31, 2025 08:41
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