-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Configure auto logon for macos to support non-headless tests #211
Comments
Thanks @sxa555, appreciated! |
Try XQuartz |
@sxa555 I don't have experience running via jenkins on osx, so I can't help there. But that comment leads me to believe that if you ran manually and not through a jenkins agent/environment that it was working?? |
I think so yeah but it was a while ago :-) The xquartz server is probably still on the box I was using for testing |
I'm not convinced it helps, but I found this conversation in another community that talks about this issue. I'll keep digging. |
So I just typed |
@geraintwjones No idea -you tell us - does it work? ;-) I don't mind whether it's called Xvfb or xvfb |
@smlambert A thought - do we require remote access to your mac GUI display to be able to run GUI tests? (Ref: #267 which I've raised for JCK purposes) |
@Haroon-Khel We never managed to get this to a solution - since you looked at the Xvfb stuff on other platforms and are familiar with running the tests can you see if you can make an equivalent work on macos? |
I've tried to use the Xvfb jenkins plugin, like we do with Linux, but I couldn't quite get it to work. I tested this in this grinder on According to https://stackoverflow.com/questions/31857203/jenkins-cannot-run-program-xvfb-java-io-ioexception-no-such-file-or-director, the error in that grinder suggests that Xvfb isn't added to the PATH variable, but it certainly is on the machine; running |
My plan now is to use the test scripts to use bash commands to setup an Xvfb server and export DISPLAY accordingly, during a test run, and then shut down the server after the run sort of how we do with aix. However to implement this in the test scripts, I first need to achieve this locally on the machine, using I'm using
which sort of suggests that more than just an Xvfb process needs to be running. Has anyone here managed to get an X11 based test to run locally on a mac? |
@Haroon-Khel looking at that grinder run it appears that
I've kicked off this grinder with the PATH updated - let's see how it goes:
|
From grinder launched above: |
Is xquartz installed on the mac machine that Grinder is being run on, I am presuming not as I do not think that is in any ansible playbook or regular config setup at present. As I mentioned in #1450 (closed as dup of this issue), there were some attempts internally to enable, and eventual success on a machine (referenced in internal backlog/280 issue). |
It's there:
|
I created a link between
This suggests that more than simply an Xvfb session needs to be running for these tests to work |
just tried running this on the mac in question as the Jenkins user: bash-3.2$ Xvfb
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) this could well be the issue, just investigating |
Suggest not using the first display i.e. try |
That doesn't stop the reviewer from decrypting it locally and making sure it hasn't corrupted the content, which has happened in the past |
I don't see DISPLAY in machine configuration environment variables or added in a playbook. Is DISPLAY set somewhere I am missing? |
@jdekonin https://github.com/adoptium/aqa-tests/blob/master/buildenv/jenkins/JenkinsfileBase#L582 |
@Haroon-Khel did you change the script for testing Mac? Currently, the test scripts turn on Xvfb for AIX and Linux, not Mac. |
I believe Andreas's findings were that that xvfb is not used for Mac (just as its not needed for other 'windowed' systems like Windows). Main part that is required for Mac is that the machines do need their configuration to be updated (as per #2062) to disable screen lock). |
I've got here following a path of closed issues trying to find out if there is still an open issue for what is causing the openjdk test failures described here, which are still occurring: adoptium/aqa-tests#135 |
re: #211 (comment) - yes, we should always attempt to identify the root cause of test failures, create the issue in the appropriate repository, and then exclude the tests under the root cause issue. In this case, jdk_awt and jdk_swing and several other test cases from other test targets fail on mac with errors There are a couple of jck test targets on mac that are also affected. Without this issue being fixed, the few jck targets will have to be added to the list of manual tests, as automated runs will fail with DISPLAY issues. |
We've been working to solve a similar issue for Corretto, and the information on this thread has been very helpful. The exception By setting |
Thanks, Ben, really good of you to chime in and help us out! |
Feels this can be closed @sxa or @Haroon-Khel ? |
I am not sure the mac machines attached to the public Jenkins servers have been configured (or that the openjdk tests that require it have been re-enabled), differs from the temurin-compliance and jck test targets. |
Extracted from #184
@smlambert I'm splitting this out because the solution is different
The text was updated successfully, but these errors were encountered: