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

Doc tests fail to run in from-source build #25

Open
abrown opened this issue Jun 17, 2021 · 0 comments
Open

Doc tests fail to run in from-source build #25

abrown opened this issue Jun 17, 2021 · 0 comments
Labels
wontfix This will not be worked on

Comments

@abrown
Copy link
Contributor

abrown commented Jun 17, 2021

While investigating failures such as this one, I discovered that the library path is not set up correctly in the doc tests for the "build from source" option, a change introduced in 68d5a48. This means that the system linker can't find the openvino libraries and so the test fails with:

/tmp/rustdoctestT9kb6s/rust_out: error while loading shared libraries: libinference_engine_c_api.so: cannot open shared object file: No such file or directory

What is interesting is that the other tests (--lib and --tests) both work correctly. I'm unsure what is different when running the doc tests so I have disabled them for the time being in the from-source build (they are enabled for all of the rest of the CI tasks).

Here is a Dockerfile that should reproduce the failure:

FROM ubuntu
WORKDIR /usr/src
# Install packages as in .github/workflows/main.yml
RUN apt update && apt install -y clang cmake libclang-dev gnupg2 libdrm2 libglib2.0-0 libusb-1.0-0-dev lsb-release libgtk-3-0 libtool udev unzip dos2unix
# Install other necessary packages (apparently present on GitHub runners)
RUN apt install -y git git-lfs curl python
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Pull and build the project
RUN git clone --depth 1 --recursive --branch finder https://github.com/abrown/openvino-rs
WORKDIR /usr/src/openvino-rs
RUN source $HOME/.cargo/env && cargo test -vv --features openvino-sys/from-source
abrown added a commit to abrown/openvino-rs that referenced this issue Jun 17, 2021
Due to the issue described in intel#25, the from-source build is limited to
not running the doc tests.
abrown added a commit that referenced this issue Jun 17, 2021
Due to the issue described in #25, the from-source build is limited to
not running the doc tests.
@abrown abrown added the wontfix This will not be worked on label Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant