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

Test local::tests::test_list_root fails on main on macos #2174

Closed
alamb opened this issue Jul 26, 2022 · 0 comments · Fixed by #2195
Closed

Test local::tests::test_list_root fails on main on macos #2174

alamb opened this issue Jul 26, 2022 · 0 comments · Fixed by #2195
Labels
bug development-process Related to development process of arrow-rs object-store Object Store Interface

Comments

@alamb
Copy link
Contributor

alamb commented Jul 26, 2022

Ported from influxdata/object_store_rs#49 by @mkmik

Describe the bug

$ cargo test
...
---- local::tests::test_list_root stdout ----
thread 'local::tests::test_list_root' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidPath { source: Canonicalize { path: "/.VolumeIcon.icns", source: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }', src/local.rs:692:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    local::tests::test_list_root

test result: FAILED. 29 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.30s

same commit works on linux

Reproducer on Linux:

$ uname
Linux
$ sudo ln -s /foo /bad
$ cargo test
---- local::tests::test_list_root stdout ----
thread 'local::tests::test_list_root' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidPath { source: Canonicalize { path: "/bad", source: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }', src/local.rs:692:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    local::tests::test_list_root

test result: FAILED. 29 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.23s

error: test failed, to rerun pass '--lib'

basically the problem is that in my mac (and possibly other macs), there is a broken symlink in the root dir.

$ file /.VolumeIcon.icns
/.VolumeIcon.icns: broken symbolic link to System/Volumes/Data/.VolumeIcon.icns

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug development-process Related to development process of arrow-rs object-store Object Store Interface
Projects
None yet
2 participants