Occasional integration test failure in Java 7 Travis build
See original GitHub issueHere are two examples:
https://travis-ci.org/census-instrumentation/opencensus-java/jobs/267052610 https://travis-ci.org/census-instrumentation/opencensus-java/jobs/265790708
Error message from the first link:
:opencensus-agent:integrationTestAug 22, 2017 5:45:08 AM io.opencensus.contrib.agent.AgentMain premain
INFO: Initializing.
Aug 22, 2017 5:45:09 AM io.opencensus.contrib.agent.AgentMain premain
INFO: Initialized.
io.grpc.Context: Storage override doesn't exist. Using default.
java.lang.ClassNotFoundException: io.grpc.override.ContextStorageOverride
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at io.grpc.Context.<clinit>(Context.java:132)
at io.opencensus.contrib.agent.instrumentation.ContextStrategyImpl.wrapInCurrentContext(ContextStrategyImpl.java:54)
at io.opencensus.contrib.agent.bootstrap.ContextManager.wrapInCurrentContext(ContextManager.java:71)
at org.gradle.internal.concurrent.StoppableExecutorImpl.execute(StoppableExecutorImpl.java:38)
at org.gradle.internal.remote.internal.hub.MessageHub.addHandler(MessageHub.java:131)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection.addIncoming(MessageHubBackedObjectConnection.java:80)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.startReceivingTests(TestWorker.java:95)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:66)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:45)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:76)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:34)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:111)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:60)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:62)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:67)
io.opencensus.contrib.agent.instrumentation.ExecutorInstrumentationTest > currentContextExecutor FAILED
java.lang.Exception at ExecutorInstrumentationTest.java:188
8 tests completed, 1 failed
:opencensus-agent:integrationTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':opencensus-agent:integrationTest'.
> There were failing tests. See the report at: file:///home/travis/build/census-instrumentation/opencensus-java/contrib/agent/build/reports/tests/integrationTest/index.html
/cc @ubschmidt2
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Travis CI fails occasionally due to GemFire sample integration ...
It's possible the GemFire server in the Travis CI environment is taking too long to startup. My default timeout is 20 seconds, which...
Read more >Common Build Problems - Travis CI Docs
A very common cause when a test is suddenly breaking without any major code changes involved is a change in upstream dependencies. This...
Read more >TravisCI is not failing my build when tests fail - Stack Overflow
I have used travis-ci for unit tests. If you want the test failures to represent a build failure, the command-line utility that invokes...
Read more >HibernateException only on TravisCI build - Deployment
I'm using the Travis CI for only build my Spring application, and after I developed my integration tests a weird problem started.
Read more >Improve the Performance of Gradle Builds
Optimize tests. Projects often spend much of their build time testing. These could be a mixture of unit and integration tests. Integration tests...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Reopening, since the error occurred again in #793.
I just noticed another failure in a PR that didn’t affect the agent code: https://travis-ci.org/census-instrumentation/opencensus-java/jobs/269796141
The error is a timeout: