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
Using Docker images of Jenkins for unit tests #230
Comments
Shoot, so close:
Would it be possible to have docker installed on the server? |
Please have a look at https://wiki.eclipse.org/Jenkins |
:( Doesn't sound promising
It had such promise |
I think we should ask Helpdesk the following thinks.
If not possible we should ask if there is an other way to host Test instances for Jenkins and Bugzilla on the Eclipse infastructure and access over an internal url. |
Do the servers on mylyn.org talk to each other? If not, why do we need a network? How does this sound @BeckerFrank @sddavis @ruspl-afed : === One possible solution to this is run the unit test against services running on Docker images. I've implemented a Proof Of Concept of this using TestContainers that runs on fine my local machine against a Jenkins server docker image, but when the Jenkins server on https://ci.eclipse.org/mylyn ran the code it complained with:
When I look at https://wiki.eclipse.org/Jenkins I see:
This note was added to the page in 2018. So I'm wondering if the docker engine could be installed on the Jenkins server to be used as a possible replacement for mylyn.org? If this is not possible, is there any other way a Test instance for the servers could be set up on the Eclipse infrastructure that can be accessed by the Mylyn build? Thanks |
Great. |
No they do not talk to each other. But the all register to a list of available services.
We need to run the entire build in a Docker image and the container running the unit test must have access to the newly created Jenkins/Bugzilla test instance.
I don't know if there is a place for a virtual infrastructure that can be accessed from https://ci.eclipse.org/mylyn where we can have custom Docker images with our Bugzilla/Jenkins instances.
|
I've created a helpdesk issue at https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/3432 Sounds like docker images are out of the question, but if someone else with some knowledge on how Eclipse infrastructure could jump since I'm now out of my depth as to what would fulfill our needs. Thanks |
@BeckerFrank @ruspl-afed Could someone jump in on the GitLab issue https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/3432? |
@gnl42: What was the solution? |
@BeckerFrank Sorry, I thought you were working on it |
I have created a POC of a Mylyn Multipass setup and a subdomain but need a tester to verify that we can access this from outside of my network. If this works I can implement this when I have a new Server for hosting this. The POC use my Laptop . |
How can I test it? |
With https://mylyn.local/mylyn_idx/service I can access the services from within my network and get the json String as a result and with https://mylyn.local/mylyn_idx I get a http page with the human more readable output instead of the json String. In a first step please test if you get a response from the following url's When this works we know that I can share the content from a multipass vm. Next you can change org.eclipse.mylyn.commons.sdk.util.TestConfiguration.discover(Class, String, boolean) in /org.eclipse.mylyn.commons.sdk.util/src/org/eclipse/mylyn/commons/sdk/util/TestConfiguration.java and If it not work please ping me so that we can make sure that my MacBook is not in sleep mode. |
Browser issue with the certificate:
Once I accept the risk, I'm in. Needed to change URL_SERVICES_DEFAULT as well in TestConfiguration. 9 Errors, 2 Failures. Basically two types of errors:
|
@gnl42: Thanks for testing. I think the problems you are experiencing are due to the multipass setup being designed for the mylyn.local domain. This domain is the one I can access from my home network and used in the the bugzilla.conf. From within my home network I can not access the public domain because of the config in my router. I have changed the bugzilla setup so please try it again Do you think we need to change the Certificate? |
@gnl42: Did you have found time to test this again? |
@BeckerFrank Sorry, battling guava. Not being able to connect to the server at the moment. |
OK, maybe my Notebook was in sleep mode. Can you try again? |
Much better. Just one error now. Looks like missing data?:
The test is looking for |
Thanks, this looks like a setup error but not a connection error. Now we know that I can set up a server with a multipass instance for all others, but not for an access from my internal network . So I will plan when and how I replace my old internal with a new one that can host her needed Multipass Instance. |
Following some comments in #203 regarding the state of our current Jenkins server used for the unit tests I wondered if Docker images could be used during the Mylyn build.
I've come up with a working PoC using TestContainer to launch Jenkins as docker container and using that container to run a couple of of JUnit tests successfully.
It runs fine under Eclipse but when I try build Mylyn with Maven the build blows up on the modified target file.
[ERROR] Failed to resolve target definition file:/E:/workspaces/eclipse-mylyn/mylyn-main/git/org.eclipse.mylyn/org.eclipse.mylyn-target/mylyn-e4.28.target: Artifact MavenArtifactFacade [...], IncludeDependencyScope = [compile, runtime, test], MissingManifestStrategy = GENERATE, IncludeSource = true is not a valid jar file
Also I don't know if it will run using the Mylyn Jenkins instance used for the builds?
Is this something worth exploring more? Or is it just a wild idea?
George
Originally posted by @gnl42 in #203 (comment)
The text was updated successfully, but these errors were encountered: