Bug 1240056 - Disable anti-aliasing on desktop-test image. DONTBUILD. r=dustin draft
authorArmen Zambrano Gasparnian <armenzg@mozilla.com>
Fri, 15 Jan 2016 09:27:45 -0500
changeset 322016 978f028562ea81c1dd244f6ba197c498680b70db
parent 321926 349d3d8a41d9ef387919f02d82174ae50ce7c3bd
child 513017 eed2cc966e59a0202a269e8099ebfed20c9c6357
push id9512
push userarmenzg@mozilla.com
push dateFri, 15 Jan 2016 16:24:21 +0000
reviewersdustin
bugs1240056, 1239301
milestone46.0a1
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.
testing/docker/desktop-test/Dockerfile
testing/docker/desktop-test/VERSION
testing/docker/desktop-test/fonts.conf
--- 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>