Tests failiing for t4_fuse::TestFuse::test

22 views
Skip to first unread message

Adammo

unread,
Sep 16, 2020, 11:28:20 PM9/16/20
to s3ql

Hello, I recently came across this project and it's awesome!

Downloaded the 3.5.1 release today and tried it on WSL2 and an ubuntu 20.04 machine

The build seemed to go fine with `python3 setup.py build_ext --inplace`. I ran the unit tests with `python3 -m pytest tests/` and got this result


============================================= FAILURES ==============================================
___________________________________________ TestFuse.test ___________________________________________
Traceback (most recent call last):
  File "/home/adammo/s3ql-3.5.1/tests/t4_fuse.py", line 166, in test
    self.mount()
  File "/home/adammo/s3ql-3.5.1/tests/t4_fuse.py", line 101, in mount
    retry(10, poll)
  File "/home/adammo/s3ql-3.5.1/tests/common.py", line 69, in retry
    ret = fn(*a, **kw)
  File "/home/adammo/s3ql-3.5.1/tests/t4_fuse.py", line 100, in poll
    assert self.mount_process.poll() is None
AssertionError: assert 39 is None
 +  where 39 = <bound method Popen.poll of <subprocess.Popen object at 0x7fe680e44400>>()
 +    where <bound method Popen.poll of <subprocess.Popen object at 0x7fe680e44400>> = <subprocess.Popen object at 0x7fe680e44400>.poll
 +      where <subprocess.Popen object at 0x7fe680e44400> = <t4_fuse.TestFuse object at 0x7fe680e33160>.mount_process
--------------------------------------- Captured stdout call ----------------------------------------
Please store the following master key in a safe location. It allows
decryption of the S3QL file system in case the storage objects holding
this information get corrupted:
---BEGIN MASTER KEY---
8GRW N66h ckmG ThGa Lt8O AHjU sdJd IZaO 52rU jzLY K2w=
---END MASTER KEY---
--------------------------------------- Captured stderr call ----------------------------------------
WARNING: Maximum object sizes less than 1 MiB will degrade performance.
fuse: failed to exec fusermount3: No such file or directory
ERROR: fuse_session_mount failed
========================= 1 failed, 294 passed, 6 skipped in 41.14 seconds ==========================

adammo@soup:~/s3ql-3.5.1$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:    focal
adammo@soup:~/s3ql-3.5.1$ uname -r
5.4.0-47-generic
adammo@soup:~/s3ql-3.5.1$ python3 --version
Python 3.8.2

I can post the dep versions too if that would help.

Thanks!
Adammo



Daniel Jagszent

unread,
Sep 17, 2020, 7:09:11 AM9/17/20
to Adammo, s3ql
Hello Adammo,

fuse: failed to exec fusermount3: No such file or directory
ERROR: fuse_session_mount failed
the temporary directory where S3QL tries to mount the test filesystem to does not exist. (but it could be created – that's kinda strange)
Do you do something strange/unusual with your TMP directory?

from Python docs:

Python searches a standard list of directories to find one which the calling user can create files in. The list is:

  1. The directory named by the TMPDIR environment variable.

  2. The directory named by the TEMP environment variable.

  3. The directory named by the TMP environment variable.

  4. A platform-specific location:

    • On Windows, the directories C:\TEMP, C:\TMP, \TEMP, and \TMP, in that order.

    • On all other platforms, the directories /tmp, /var/tmp, and /usr/tmp, in that order.

  5. As a last resort, the current working directory.


Maybe try to explicitly define TMPDIR before calling the tests:
`TMPDIR=/tmp python3 -m pytest tests/`
or
```
mkdir ~/tmp
TMPDIR=~/tmp python3 -m pytest tests/
```

Adammo

unread,
Sep 17, 2020, 9:45:46 AM9/17/20
to s3ql
Nothings special about my tmp directory, though now that I've looked at it with fresh eyes I see the problem.


fuse: failed to exec fusermount3: No such file or directory


I just ran through the deps in the docs and installed what was needed. I had to `apt-get install fuse3` as well since that has the fusermount3 binary.

Tests look good now,  thanks for the quick response.
Reply all
Reply to author
Forward
0 new messages