Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some unit tests fail for root user #209

Open
ekulno opened this issue Sep 8, 2022 · 0 comments
Open

Some unit tests fail for root user #209

ekulno opened this issue Sep 8, 2022 · 0 comments

Comments

@ekulno
Copy link

ekulno commented Sep 8, 2022

Problem

4 unit tests fail when running as the root user on Ubuntu 20.04. This may be acceptable, but it may be helpful to document this.

Excerpt of the unit test logs:

// ...
⨯ test throw error reading read-only database
  not ok 1541 should get error reading read only database
  // ...
  not ok 1542 should get io error
  // ...
✓ test read from a read-only database if readOnly is true
⨯ test throw error reading read-only database if readOnly is false
  not ok 1546 should get error reading read only database
  // ...
  not ok 1547 should get io error
  // ...
# tests 1637
# pass  1633
⨯ fail  4

Impact

I am not sure whether the failing unit tests indicate that this library is not supported for the root user, or whether it is only an issue with the unit tests.

Dockerfiles use the root user by default. As a consequence, third parties who build and test this library through a Dockerfile such as myself may encounter the failing tests and be confused.

Reproduction steps

The following will succeed if running as a regular user, but four tests will fail if running as the root user (sudo su)

cd /tmp
git clone --recurse-submodules https://github.com/Level/rocksdb.git
cd rocksdb
yarn
yarn test
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

No branches or pull requests

1 participant