SyntaxNet Bazel Test Fail
I've executed the following command:
bazel test syntaxnet/... util/utf8/...
And I've got this output:
//syntaxnet:beam_reader_ops_test FAILED in 1 out of 2 in 4.2s
/home/amir/.cache/bazel/_bazel_amir/7cae739dd7ef8545aa4a0f83ff6a72a9/execroot/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/beam_reader_ops_test/test.log
//syntaxnet:graph_builder_test FAILED in 1 out of 2 in 4.3s
/home/amir/.cache/bazel/_bazel_amir/7cae739dd7ef8545aa4a0f83ff6a72a9/execroot/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/graph_builder_test/test.log
//syntaxnet:lexicon_builder_test FAILED in 1 out of 2 in 0.6s
/home/amir/.cache/bazel/_bazel_amir/7cae739dd7ef8545aa4a0f83ff6a72a9/execroot/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/lexicon_builder_test/test.log
//syntaxnet:parser_trainer_test FAILED in 1 out of 2 in 4.2s
/home/amir/.cache/bazel/_bazel_amir/7cae739dd7ef8545aa4a0f83ff6a72a9/execroot/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/parser_trainer_test/test.log
//syntaxnet:reader_ops_test FAILED in 1 out of 2 in 0.7s
/home/amir/.cache/bazel/_bazel_amir/7cae739dd7ef8545aa4a0f83ff6a72a9/execroot/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/reader_ops_test/test.log
//syntaxnet:text_formats_test FAILED in 1 out of 2 in 0.6s
/home/amir/.cache/bazel/_bazel_amir/7cae739dd7ef8545aa4a0f83ff6a72a9/execroot/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/text_formats_test/test.log
Executed 17 out of 17 tests: 11 tests pass and 6 fail locally.
I guess, the problem is caused by the wrong version of Bazel (0.4.4). So I decided to update tensorflow manually (git submodule update --remote -f tensorflow), and then, after running tests again, I get this:
ERROR: Failed to load Skylark extension '@io_bazel_rules_closure//closure/private:java_import_external.bzl'.
It usually happens when the repository is not defined prior to being used.
Maybe repository 'io_bazel_rules_closure' was defined later in your WORKSPACE file?
ERROR: cycles detected during target parsing.
INFO: Elapsed time: 5.722s
ERROR: Couldn't start the build. Unable to run tests.
What causes this error?
Try this https://github.com/tensorflow/models/issues/1077
Thanks for the reply. I tried your solution with rules_closure.git, and I have the same error:
The build will work but with error:
Executed 0 out of 17 tests: 1 fails to build and 16 were skipped.
I've also downgraded Bazel to 0.4.3 manually, cleared the cache and run tests again. I still have an error:
Executed 17 out of 17 tests: 11 tests pass and 6 fail locally.
That's strange.
Try syncing to the latest code and re-running. If that doesn't help, the actual errors are in the logfiles like /home/amir/.cache/bazel/_bazel_amir/7cae739dd7ef8545aa4a0f83ff6a72a9/execroot/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/beam_reader_ops_test/test.log
@bogatyy here my test log. pls tell me whats the error?
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
2017-05-10 14:07:45.963248: W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. 2017-05-10 14:07:45.963311: W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 2017-05-10 14:07:45.963329: W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-05-10 14:07:45.963334: W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 2017-05-10 14:07:45.963337: W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. .......
Ran 7 tests in 0.118s