question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Occasional integration test failure in Java 7 Travis build

See original GitHub issue

Here 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:closed
  • Created 6 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
sebrightcommented, Nov 9, 2017

Reopening, since the error occurred again in #793.

1reaction
sebrightcommented, Aug 30, 2017

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:

io.opencensus.contrib.agent.instrumentation.ExecutorInstrumentationIT > currentContextExecutor FAILED
    java.lang.Exception: test timed out after 60000 milliseconds
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:503)
        at io.opencensus.contrib.agent.instrumentation.ExecutorInstrumentationIT.currentContextExecutor(ExecutorInstrumentationIT.java:192)
8 tests completed, 1 failed
:opencensus-contrib-agent:integrationTest FAILED
FAILURE: Build failed with an exception.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found