Bug 1240056 - Disable anti-aliasing on desktop-test image. DONTBUILD. r=dustin
In
bug 1239301 we noticed that the fonts on the releng Linux hosts versus the
docker image were slightly different and caused some test failures.
The difference is that on the releng hosts we have anti-aliasing disabled and
many tests (reftests mainly) had adapted for this configuration, hence, failing if enabled.
In this bug we're going to disable anti-aliasing for the desktop-test image in
order to pass the tests.
See the difference between the two pushes:
https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&revision=3c9a54d68c95,1d3078c86e52
We went from failing over 200 tests across jobs to less than 10-20 tests in total.
In the future we will have to consider if we want to fix this configuration.
--- a/testing/docker/desktop-test/Dockerfile
+++ b/testing/docker/desktop-test/Dockerfile
@@ -51,10 +51,14 @@ EXPOSE 5900
# This helps not forgetting setting DISPLAY=:0 when running
# tests outside of test.sh
ENV DISPLAY :0
# Disable apport (Ubuntu app crash reporter) to avoid stealing focus from test runs
ADD apport /etc/default/apport
+# Disable antialiasing for now to match releng's setup
+# Once we switch over we can disable it and fix the tests for it
+ADD fonts.conf /home/worker/.fonts.conf
+
# Set a default command useful for debugging
CMD ["/bin/bash", "--login"]
--- a/testing/docker/desktop-test/VERSION
+++ b/testing/docker/desktop-test/VERSION
@@ -1,1 +1,1 @@
-0.5.5
+0.5.6
new file mode 100644
--- /dev/null
+++ b/testing/docker/desktop-test/fonts.conf
@@ -0,0 +1,5 @@
+<match target="font">
+ <edit name="antialias" mode="assign">
+ <bool>false</bool>
+ </edit>
+</match>