Skip to content

Commit abadf38

Browse files
committed
Disable sandboxed mode in bazel and use --spawn_strategy standalone
Encountered quite some issues with ``` Use --sandbox_debug to see verbose messages from the sandbox /usr/bin/ld.gold: error: cannot find libavformat.so.57 /usr/bin/ld.gold: error: cannot find libavcodec.so.57 /usr/bin/ld.gold: error: cannot find libavutil.so.55 /usr/bin/ld.gold: error: cannot find libswscale.so.4 collect2: error: ld returned 1 exit status Target //tensorflow_io/video:video_py_test failed to build ``` Believe it is related to (or similiar): https://stackoverflow.com/questions/52386530/linker-fails-in-sandbox-when-running-through-bazel-but-works-when-sandboxed-comm?rq=1 Signed-off-by: Yong Tang <[email protected]>
1 parent bf7087f commit abadf38

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,37 @@ matrix:
2121
before_install:
2222
- bash -x ${TRAVIS_BUILD_DIR}/.travis/python.configure.sh
2323
script:
24-
- bazel test -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
24+
- bazel test --spawn_strategy standalone -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
2525
- name: "Ubuntu 14.04 Python 3.4"
2626
language: python
2727
python:
2828
- 3.4
2929
before_install:
3030
- bash -x ${TRAVIS_BUILD_DIR}/.travis/python.configure.sh
3131
script:
32-
- bazel test -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
32+
- bazel test --spawn_strategy standalone -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
3333
- name: "Ubuntu 14.04 Python 3.5"
3434
language: python
3535
python:
3636
- 3.5
3737
before_install:
3838
- bash -x ${TRAVIS_BUILD_DIR}/.travis/python.configure.sh
3939
script:
40-
- bazel test -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
40+
- bazel test --spawn_strategy standalone -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
4141
- name: "Ubuntu 14.04 Python 3.6"
4242
language: python
4343
python:
4444
- 3.6
4545
before_install:
4646
- bash -x ${TRAVIS_BUILD_DIR}/.travis/python.configure.sh
4747
script:
48-
- bazel test -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
48+
- bazel test --spawn_strategy standalone -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test -//tensorflow_io/video:video_py_test
4949
- name: "Ubuntu 18.04 Python 2.7"
5050
script:
51-
- docker run -i -t -e PYTHON_VERSION= -e BAZEL_VERSION=0.20.0 -e BAZEL_OS=linux --rm -v $PWD:/workspace -w /workspace --net=host ubuntu:18.04 bash -x -c ".travis/python.ubuntu.18.04.sh && apt-get -y -qq install libavformat57 libavcodec57 libavutil55 libswscale4 && bazel test -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test"
51+
- docker run -i -t -e PYTHON_VERSION= -e BAZEL_VERSION=0.20.0 -e BAZEL_OS=linux --rm -v $PWD:/workspace -w /workspace --net=host ubuntu:18.04 bash -x -c ".travis/python.ubuntu.18.04.sh && apt-get -y -qq install libavformat57 libavcodec57 libavutil55 libswscale4 && bazel test --spawn_strategy standalone -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test"
5252
- name: "Ubuntu 18.04 Python 3.6"
5353
script:
54-
- docker run -i -t -e PYTHON_VERSION=3 -e BAZEL_VERSION=0.20.0 -e BAZEL_OS=linux --rm -v $PWD:/workspace -w /workspace --net=host ubuntu:18.04 bash -x -c ".travis/python.ubuntu.18.04.sh && apt-get -y -qq install libavformat57 libavcodec57 libavutil55 libswscale4 && bazel test -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test"
54+
- docker run -i -t -e PYTHON_VERSION=3 -e BAZEL_VERSION=0.20.0 -e BAZEL_OS=linux --rm -v $PWD:/workspace -w /workspace --net=host ubuntu:18.04 bash -x -c ".travis/python.ubuntu.18.04.sh && apt-get -y -qq install libavformat57 libavcodec57 libavutil55 libswscale4 && bazel test --spawn_strategy standalone -s --verbose_failures -- //tensorflow_io/... -//tensorflow_io/ignite:ignite_py_test"
5555
- name: "Ubuntu 14.04 R 3.2"
5656
language: r
5757
r:

0 commit comments

Comments
 (0)