Tests fail due to daemon's `--enable-prometheus` argument despite `GKFS_ENABLE_PROMETHEUS` being OFF
While reconfiguring my build and running the tests I noticed that the following failed:
Total Test time (real) = 135.57 sec
The following tests FAILED:
1 - test_directories (Failed)
2 - test_status (Failed)
3 - test_operations (Failed)
4 - test_lseek (Failed)
6 - test_data (Failed)
7 - test_syscalls (Failed)
Further inspection of the logs showed the following:
7: syscalls/test_syscalls.py::test_syscalls[gkfs_daemon_rocksdb]
7: /home/amiranda/var/projects/gekkofs/source/build.gcc-debug/tests/integration/pytest-venv/lib/python3.8/site-packages/_pytest/threadexception.py:75: PytestUnhandledThreadExceptionWarning: Exception in thread background thread for pid 1218141
7:
7: Traceback (most recent call last):
7: File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
7: self.run()
7: File "/usr/lib/python3.8/threading.py", line 870, in run
7: self._target(*self._args, **self._kwargs)
7: File "/home/amiranda/var/projects/gekkofs/source/build.gcc-debug/tests/integration/pytest-venv/lib/python3.8/site-packages/sh.py", line 1540, in wrap
7: fn(*args, **kwargs)
7: File "/home/amiranda/var/projects/gekkofs/source/build.gcc-debug/tests/integration/pytest-venv/lib/python3.8/site-packages/sh.py", line 2459, in background_thread
7: handle_exit_code(exit_code)
7: File "/home/amiranda/var/projects/gekkofs/source/build.gcc-debug/tests/integration/pytest-venv/lib/python3.8/site-packages/sh.py", line 2157, in fn
7: return self.command.handle_command_exit_code(exit_code)
7: File "/home/amiranda/var/projects/gekkofs/source/build.gcc-debug/tests/integration/pytest-venv/lib/python3.8/site-packages/sh.py", line 815, in handle_command_exit_code
7: raise exc
7: sh.ErrorReturnCode_109:
7:
7: RAN: /home/amiranda/var/projects/gekkofs/source/build.gcc-debug/src/daemon/gkfs_daemon --mountdir /tmp/pytest-of-amiranda/pytest-5/test_syscalls_gkfs_daemon_rock0/mnt --rootdir /tmp/pytest-of-amiranda/pytest-5/test_syscalls_gkfs_daemon_rock0/root -l lo:18282 --metadir /tmp/pytest-of-amiranda/pytest-5/test_syscalls_gkfs_daemon_rock0/root --dbbackend rocksdb --output-stats /tmp/pytest-of-amiranda/pytest-5/test_syscalls_gkfs_daemon_rock0/logs/stats.log --enable-collection --enable-chunkstats --enable-prometheus
7:
7: STDOUT:
7:
7:
7: STDERR:
7: The following argument was not expected: --enable-prometheus
7: Run with --help for more information.
My guess is that the --enable-prometheus
option is hardcoded in the tests.