Open codefromthecrypt opened 5 years ago
Good thinking. FWIW, we might want to be sparing - there are only 6 Windows nodes under ASF Jenkins (https://cwiki.apache.org/confluence/display/INFRA/Jenkins+node+labels), so we probably shouldn't run everything on Windows too.
@adriancole Interesting fact, I accidentally run the ITTracingSession tests with JDK1.8 (should be at least JDK11) and they passed green, no issues. Switching to 11 brought the failures back.
linking some related issues..
https://github.com/jsevellec/cassandra-unit/issues/283 https://discuss.lightbend.com/t/cassandra-error-while-starting-application/2614/3
probably least time would be spent switching to docker, just an issue of adding the tracing stuff to docker container classpath.. this might end up taking longer. @bsideup do you have an example of adding local classes to testcontainers java container?
@adriancole
GenericContainer#withCopyFileToContainer
can be used to copy files from tests' host into a container.
Then it is only a matter of having a reference to the file with classes using your build system.
Here is an example of how I did it for Gradle:
https://github.com/bsideup/javaagent-boilerplate/blob/57e30bd7504e683d8df9ab935bc3e3a169e72828/build.gradle#L45
https://github.com/bsideup/javaagent-boilerplate/blob/57e30bd7504e683d8df9ab935bc3e3a169e72828/src/test/java/support/GroovyTestApp.java#L13
There are also libraries which help to extract .class
files from classloaders.
I hope this helps!
@prashantbhardwaj this is not the CassandraCQLUnit or cassandra project. We are users of cassandra.. and also we don't do troubleshooting via github issues even if we did. I would recommend finding the owners of CassandraCQLUnit or any other cassandra support channel to troubleshoot your issue.
no use of this git hub discussions.
Thanks @reta for reporting
We might want to setup jenkins windows to know we are failing here (cc @abesto)
If we used docker, probably we could avoid windows related glitches. This would imply shipping the tracing driver to the docker container though. cc @bsideup