Remove xvfb as dependancy for plotting tests#401
Conversation
|
If tests pass with this (and Plots are able to build in makedocs) I think it's a great fix. If the second doesn't work we could probably just add the xvfb to the makedocs part. |
|
This is an automated message. |
1 similar comment
|
This is an automated message. |
Codecov Report
@@ Coverage Diff @@
## master #401 +/- ##
=======================================
Coverage 82.40% 82.40%
=======================================
Files 31 31
Lines 2824 2824
=======================================
Hits 2327 2327
Misses 497 497 Continue to review full report at Codecov.
|
|
I was also wondering if there is a reason for having these settings spread out over three files? Would it not be enough to set it in runtests.jl and we could skip the rest? If people want to run make.jl or test_plot.jl by itself I think it is fine to assume they can know enough to set the plotting environment themselves? And the one in .travis.yml seems like it is not really necessary at all if it is no matter set in the files where it matters anyway? What is |
Even though I know how to do it, it is nice to be able to run the scipts locally whithout editing them. But in general it is needed in test_plots.jl so you can run
This is read by Plots.jl. For example it is used in Plots.jl tests: https://github.com/JuliaPlots/Plots.jl/blob/2774b155b4c2b70db3fefd80bd623c34afed992f/test/runtests.jl#L100 |
This reverts commit 29bc209.
Okay, I was thinking that you might want to run it with other settings if you are not on a headless server but I realise that we probably prefer consistency in test/docs as the default and if you really want to run it in some other way you can dig in there and change it.
Okay, seems good as it is then. |
|
I also tried to run the tests without our travis settings on my headless workstation and it seems to work fine so hopefully this could solve the PkgEval problem. |
|
This was solved in #408 |
I noticed that PkgEval does not seem happy with ControlSystems, and after checking with @mfalt he thought this might be because there is tests that require plotting which will not run on a headless server if just running
test ControlSystems.ControlSystems CI pipeline seems to use
xvfbto emulate a virtual x environment to allow for some of the plot tests to run.I found this discourse thread discussing plotting on headless servers and thought I would check what the difference was using nul instad of 100 for GKSwstype.