dev-*/*: enable fuse tests

I haven't been able to test them because:
- In (unprivileged) bubblewrap container setuid binaries
  (fuse3) get disabled[1]
- Inside a normal chroot bubblewrap can't run[2]
  (which these packages use)
- Inside bubblewrap running as root the bwrap that buildbox
  invokes for some reason doesn't get permissions to make
  use of user-namespaces (even tho I can make nested bwrap container
  via `bwrap --bind /somerootfs / --dev /dev --proc /proc bash`)
- Inside a lxc container is the same story as above

The only real way to test (for me) is to install on host BUT
buildbox doesn't compile on musl libc (which I'm using) and
I can't report that to them because they use gitlab and for
making an account there you need to give them a credit card :s

[1]: https://github.com/containers/bubblewrap/issues/132
[2]: https://github.com/containers/bubblewrap/issues/689#issuecomment-2940775396

Signed-off-by: zyxhere💭 <zyx@envs.net>
This commit is contained in:
zyxhere💭 committed 2026-07-30 17:58:32 +00:00
1 parent 998486c6f8
commit 148ad21886
4 files changed
-37

No files matched your search

@@ -60,14 +60,8 @@ python_test() {
# fuse: failed to open /dev/fuse: Permission denied
addwrite "/dev/fuse"
# still fails inside a bubblewrap container :/
# fusermount3: mount failed: Operation not permitted
EPYTEST_DESELECT=(
# fuse tests
tests/sources/bazel.py::test_basic
tests/sources/bazel.py::test_multi_url
tests/sources/bazel.py::test_no_sha
# tests using network
tests/sources/bazel_file.py::test_basic
tests/sources/bazel_file.py::test_multi_url
@@ -48,18 +48,8 @@ python_test() {
# fuse: failed to open /dev/fuse: Permission denied
addwrite "/dev/fuse"
# still fails inside a bubblewrap container :/
# fusermount3: mount failed: Operation not permitted
local EPYTEST_DESELECT=(
# fuse tests
tests/sources/cargo.py::test_cargo_track_fetch_build
tests/sources/patch.py::test_stage_and_patch
tests/sources/patch.py::test_stage_file_nonexistent_dir
tests/sources/patch.py::test_stage_file_empty_dir
tests/sources/patch.py::test_stage_separate_patch_dir
tests/sources/patch.py::test_stage_multiple_patches
tests/sources/patch.py::test_patch_strip_level
# tests using network
tests/sources/docker.py::test_docker_fetch
tests/sources/docker.py::test_docker_source_checkout
@@ -140,11 +140,6 @@ python_test() {
tests/frontend/workspace.py::test_build[workspace-no-guess-strict-zip]
tests/frontend/workspace.py::test_build[workspace-no-guess-non-strict-git_tag]
tests/frontend/workspace.py::test_build[workspace-no-guess-non-strict-zip]
# fuse tests
# "std::runtime_error exception thrown at [buildboxcommon_fusestager.cpp:149], errMsg = "The FUSE stager child process unexpectedly died with exit code 2""
# TODO: test on host instead of container with /dev/fuse mounted
tests/sourcecache
tests/sources
)
# to not pollute the source directory and make grepping hard.
-16
View File
@@ -113,22 +113,6 @@ src_test() {
if use fuse; then
# fuse: failed to open /dev/fuse: Permission denied
addwrite "/dev/fuse"
# fusermount3: mount failed: Operation not permitted
# NOTE: only tested inside container with /dev/fuse mounted
# FIXME: test on host
CMAKE_SKIP_TESTS+=(
casd_local_service_static_instance_tests
casd_local_service_dynamic_instance_tests
casd_local_service_remote_server_dynamic_instance_tests
casd_local_service_remote_server_static_instance_tests
casd_local_execution_service_tests
casd_hybrid_execution_service_tests
casd_hybrid_fallback_execution_service_tests_1
casd_hybrid_fallback_execution_service_tests_2
casd_hybrid_fallback_execution_service_tests_3
fuse_*
)
fi
cmake_src_test