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

Two tests failing during build #47

Open
jhidding opened this issue Dec 17, 2017 · 4 comments
Open

Two tests failing during build #47

jhidding opened this issue Dec 17, 2017 · 4 comments

Comments

@jhidding
Copy link

Building on Ubuntu 16.04 LTS with OpenJDK 8.0 gives me this:

> Task :shadowJar
The SimpleWorkResult type has been deprecated and is scheduled to be removed in Gradle 5.0. Please use WorkResults.didWork() instead.

> Task :test

nl.esciencecenter.xenon.cli.MainExitTest > mainRootHelp FAILED
    java.lang.AssertionError at MainExitTest.java:32

nl.esciencecenter.xenon.cli.MainExitTest > run_argumentparserexception_usageinstdout FAILED
    java.lang.AssertionError at MainExitTest.java:44

58 tests completed, 2 failed


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///mnt/Kool/johannes/Code/NLeSC/xenon-cli/build/reports/tests/test/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
12 actionable tasks: 12 executed
@arnikz
Copy link

arnikz commented Jan 26, 2018

Similarly, the build fails also with Oracle JDK 8 on Linux Mint 18.3.

./gradlew build --debug

20:24:44.135 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:24:44.135 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
20:24:44.136 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:24:44.136 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
20:24:44.136 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':integrationTest'.
20:24:44.136 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > There were failing tests. See the report at: file:///home/arni/Downloads/gitrepos/xenon-cli/build/reports/tests/integrationTest/index.html
20:24:44.137 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:24:44.137 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
20:24:44.137 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 
20:24:44.137 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:24:44.138 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
20:24:44.138 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 
20:24:44.138 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 42s
20:24:44.139 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 15 actionable tasks: 2 executed, 13 up-to-date
20:24:44.142 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
20:24:44.143 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 2: released lock on root.1
20:24:44.143 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Run build'
20:24:44.146 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file content cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/fileContent)
20:24:44.146 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file content cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/fileContent).
20:24:44.147 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/buildOutputCleanup)
20:24:44.147 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFiles.bin (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/buildOutputCleanup/outputFiles.bin)
20:24:44.148 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/buildOutputCleanup).
20:24:44.149 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for task history cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/taskHistory)
20:24:44.149 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache taskHistory.bin (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/taskHistory/taskHistory.bin)
20:24:44.150 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshots.bin (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/taskHistory/fileSnapshots.bin)
20:24:44.153 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/taskHistory).
20:24:44.155 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 1 (avg: 0.002 secs, total: 0.002 secs)
20:24:44.155 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 18, disk reads: 6 (avg: 0.002 secs, total: 0.016 secs)
20:24:44.156 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 6 resolution results binary files in 0.001 secs
20:24:44.156 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Plugin Resolution Cache (/home/arni/.gradle/caches/4.2.1/plugin-resolution)
20:24:44.156 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache plugin-use-metadata.bin (/home/arni/.gradle/caches/4.2.1/plugin-resolution/plugin-use-metadata.bin)
20:24:44.157 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Plugin Resolution Cache (/home/arni/.gradle/caches/4.2.1/plugin-resolution).
20:24:44.160 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
20:24:44.160 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
20:24:44.161 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Artifact transforms cache (/home/arni/.gradle/caches/transforms-1)
20:24:44.162 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Artifact transforms cache (/home/arni/.gradle/caches/transforms-1).
20:24:44.162 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Generated Gradle JARs cache (/home/arni/.gradle/caches/4.2.1/generated-gradle-jars) was closed 0 times.
20:24:44.162 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/fileHashes)
20:24:44.163 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/fileHashes/fileHashes.bin)
20:24:44.163 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (/home/arni/Downloads/gitrepos/xenon-cli/.gradle/4.2.1/fileHashes).
20:24:44.164 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for artifact cache (/home/arni/.gradle/caches/modules-2)
20:24:44.164 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/home/arni/.gradle/caches/modules-2/metadata-2.24/module-metadata.bin)
20:24:44.164 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifacts.bin (/home/arni/.gradle/caches/modules-2/metadata-2.24/module-artifacts.bin)
20:24:44.165 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-versions.bin (/home/arni/.gradle/caches/modules-2/metadata-2.24/module-versions.bin)
20:24:44.165 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (/home/arni/.gradle/caches/modules-2/metadata-2.24/artifact-at-repository.bin)
20:24:44.166 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/home/arni/.gradle/caches/modules-2).
20:24:44.166 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
20:24:44.304 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@1e9d1ca5
20:24:44.305 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 13: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
20:24:44.308 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':integrationTest'.] from daemon DaemonInfo{pid=12395, address=[ff7dee60-d8d4-4af1-98d3-bbce40a720e5 port:37145, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1516994271444, context=DefaultDaemonContext[uid=c662e57d-2109-4f93-ac4f-e5e22d8232f9,javaHome=/usr/lib/jvm/java-8-oracle,daemonRegistryDir=/home/arni/.gradle/daemon,pid=12395,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
20:24:44.308 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
20:24:44.311 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop

@sverhoeven
Copy link
Member

Unable to reproduce locally or at Travis-CI or Appveyor.

Can you share the build/test-results/test/TEST-nl.esciencecenter.xenon.cli.MainExitTest.xml file?

@arnikz
Copy link

arnikz commented Jan 29, 2018

Here you go.

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="nl.esciencecenter.xenon.cli.MainExitTest" tests="2" skipped="0" failures="0" errors="0" timestamp="2018-01-26T19:19:21" hostname="E7240" time="0.088">
  <properties/>
  <testcase name="mainRootHelp" classname="nl.esciencecenter.xenon.cli.MainExitTest" time="0.055"/>
  <testcase name="run_argumentparserexception_usageinstdout" classname="nl.esciencecenter.xenon.cli.MainExitTest" time="0.033"/>
  <system-out><![CDATA[usage: xenon [-h] [--version] [--json] [--stacktrace] [--verbose]
             {filesystem,scheduler} ...

Operations on filesystems and schedulers with Xenon

positional arguments:
  {filesystem,scheduler}
    filesystem           Filesystem  represent  a  (possibly  remote)  file
                         system that can be used to access data.
    scheduler            Scheduler   represents    a    (possibly   remote)
                         scheduler that can  be  used  to  submit  jobs and
                         retrieve queue information.

named arguments:
  -h, --help             show this help message and exit
  --version              Prints version and exists
  --json                 Output in JSON format (default: false)
  --stacktrace           Print  out  the  stacktrace   for  all  exceptions
                         (default: false)
  --verbose, -v          Repeat for more verbose logging (default: 0)
]]></system-out>
  <system-err><![CDATA[usage: xenon filesystem [-h] {file,ftp,s3,sftp,webdav} ...
xenon: error: invalid choice: 'badadaptorname'  (choose from 'file', 'ftp',
's3', 'sftp', 'webdav')
]]></system-err>
</testsuite>

@sverhoeven
Copy link
Member

Those tests seem to run succefully, @arnikz your problem is with the integration tests,it will clarify the docker requirements for the integration tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants