hyperledger-iroha / iroha-dco

Iroha - A simple, decentralized ledger
http://iroha.tech
Apache License 2.0
988 stars 296 forks source link

Java bindings test suite never finishes #1342

Closed bakhtin closed 6 years ago

bakhtin commented 6 years ago

There is an issue with the test suite for Java bindings. I tried running it multiple times but it always hangs right after tests compilation. Last log lines just before tests hang:

+ cmake -Hshared_model -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/c/Users/Administrator/Downloads/vcpkg-master/vcpkg-master/scripts/buildsystems/vcpkg.cmake -G 'NMake Makefiles' -DSWIG_JAVA=ON
-- Boost version: 1.67.0
-- Could NOT find ed25519 (missing: ed25519_INCLUDE_DIR ed25519_LIBRARY) 
-- Configuring done
-- Generating done
-- Build files have been written to: C:/J/workspace/msvc106da0dd/build
[Pipeline] sh
[C:\J\workspace\msvc106da0dd] Running shell script
+ cmake --build build --target irohajava
[ 16%] Built target hyperledger_ed25519
[ 20%] Built target iroha_amount
[ 20%] Built target gen_irohajava_bindingsJAVA_wrap
[ 34%] Built target shared_model_cryptography_model
[ 37%] Built target hash
[ 39%] Built target ed25519_crypto
[ 46%] Built target shared_model_cryptography
[ 48%] Built target shared_model_interfaces
[ 76%] Built target schema
[ 81%] Built target shared_model_proto_backend
[ 86%] Built target shared_model_stateless_validation
[ 90%] Built target generator
[ 97%] Built target bindings
[100%] Built target irohajava
[Pipeline] sh
[C:\J\workspace\msvc106da0dd] Running shell script
+ cd build
+ ctest -R java --output-on-failure -V
UpdateCTestConfiguration  from :C:/J/workspace/msvc106da0dd/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :C:/J/workspace/msvc106da0dd/build/DartConfiguration.tcl
Test project C:/J/workspace/msvc106da0dd/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 14
    Start 14: java_builders_test

14: Test command: C:\ProgramData\chocolatey\bin\gradle.exe "test" "-PSWIG_BUILD_DIR=C:/J/workspace/msvc106da0dd/build/bindings" "-PSCHEMA_DIR=C:/J/workspace/msvc106da0dd/shared_model/../schema"
14: Test timeout computed to be: 10000000
14: Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
14: > Task :extractIncludeProto UP-TO-DATE
14: > Task :extractProto UP-TO-DATE
14: > Task :generateProto NO-SOURCE
14: > Task :compileJava NO-SOURCE
14: > Task :processResources NO-SOURCE
14: > Task :classes UP-TO-DATE
14: > Task :extractIncludeTestProto UP-TO-DATE
14: > Task :extractTestProto UP-TO-DATE
14: > Task :generateTestProto UP-TO-DATE
14: 
14: > Task :compileTestJava
14: Note: C:\J\workspace\msvc106da0dd\build\bindings\gen\test\java\iroha\protocol\Commands.java uses or overrides a deprecated API.
14: Note: Recompile with -Xlint:deprecation for details.
14: 
14: > Task :processTestResources UP-TO-DATE
14: > Task :testClasses
14: > Task :junitPlatformTest UP-TO-DATE
14: > Task :test SKIPPED
14: 
14: Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
14: See https://docs.gradle.org/4.7/userguide/command_line_interface.html#sec:command_line_warnings
14: 
14: BUILD SUCCESSFUL in 16s
14: 8 actionable tasks: 1 executed, 7 up-to-date

I'm testing this on Jenkins CI running on Windows Server 2016 using the pipeline script which is why log may look a bit strange.

Environment info:

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Administrator\AppData\Roaming
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=Wed May 16 13:27:50 2018
CLASSPATH=.;
CLIENTNAME=hornstation
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=BUILD-SERVER-WI
ComSpec=C:\Windows\system32\cmd.exe
GRADLE_HOME=C:\ProgramData\chocolatey\lib\gradle\tools\gradle-4.7
HOMEDRIVE=C:
HOMEPATH=\Users\Administrator
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_172
LOCALAPPDATA=C:\Users\Administrator\AppData\Local
LOGONSERVER=\\BUILD-SERVER-WI
NUMBER_OF_PROCESSORS=4
OriginalArchitecture=AMD64
OriginalUserName=Administrator
OS=Windows_NT
Path=C:\Python36\Scripts\;C:\Python36\;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\swigwin-3.0.12;C:\ProgramData\chocolatey\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\cmd;C:\Program Files\Java\jdk1.8.0_172\bin;C:\Users\Administrator\Downloads\vcpkg-master\vcpkg-master\buildtrees\protobuf\x64-windows-rel;C:\Users\Administrator\Downloads\vcpkg-master\vcpkg-master\buildtrees\protobuf\src\protobuf-3.5.1-win32\include;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
Path_HKCU=C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps
Path_HKLM=C:\Python36\Scripts\;C:\Python36\;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\swigwin-3.0.12;C:\ProgramData\chocolatey\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\cmd;C:\Program Files\Java\jdk1.8.0_172\bin;C:\Users\Administrator\Downloads\vcpkg-master\vcpkg-master\buildtrees\protobuf\x64-windows-rel;C:\Users\Administrator\Downloads\vcpkg-master\vcpkg-master\buildtrees\protobuf\src\protobuf-3.5.1-win32\include
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=5504
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
PYTHONHOME=C:\Python27
SESSIONNAME=RDP-Tcp#36
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Administrator\AppData\Local\Temp
TMP=C:\Users\Administrator\AppData\Local\Temp
USERDOMAIN=BUILD-SERVER-WI
USERDOMAIN_ROAMINGPROFILE=BUILD-SERVER-WI
USERNAME=Administrator
USERPROFILE=C:\Users\Administrator
windir=C:\Windows
l4l commented 6 years ago

Does the issue still persist?

l4l commented 6 years ago

Plz reopen if the issue is still there