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
Run ubuntu checks through xvfb #1454
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1454 +/- ##
============================================
- Coverage 34.22% 34.22% -0.01%
Complexity 17123 17123
============================================
Files 1057 1057
Lines 163046 163046
Branches 34921 34921
============================================
- Hits 55801 55798 -3
- Misses 97825 97828 +3
Partials 9420 9420
Continue to review full report at Codecov.
|
I merged this into #1441 and the failing test now runs and passes on Ubuntu. |
So can we get this made a non-draft and therefore open for review? |
My question is, what about non-Ubuntu platforms? Do we need to mark tests that depend on this as disabled for Mac and Windows? If so, how? And what can we do about it? |
This was proposed as an environmental change to fix a failing test in #1441, It works. Locally Windows tests have passed with and without this. It would be reassuring to have someone confirm that this works locally on non-Windows systems. For reference xvfb implements an X11 display server virtually. https://en.wikipedia.org/wiki/Xvfb |
This works on Windows. It is a change to the environment and I don't have any expectation that code or tests would have to be enabled or disabled because of this change. Before this GitHub ubuntu made no provisions for an X11 display in a test environment. Now code that uses an X11 display (i.e. creating some top level Swing components) can be run and tested. |
I'm happy to approve and merge but I would like some confirmation that @Veracity0 's concerns have been addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can see that this works for Windows and Mac already because it was used to run a Swing test on #1441, where the Windows and Mac tests already passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go for it.
This should allow headless ubuntu to run tests in swing components