Closed Bug 1977858 Opened 1 year ago Closed 2 months ago

Remove the Ahem font from the system images used in CI

Categories

(Taskcluster :: Workers, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jfkthame, Assigned: rcurran)

References

(Blocks 1 open bug)

Details

Tests that use the Ahem font are supposed to load it explicitly as a webfont resource, not rely on it being installed in the local environment.

We should remove the font from our test images so that we're running a more standard configuration, and any tests that inadvertently depend on a locally-installed copy of the font will be detected as failures.

Hi Joel, not sure if TaskCluster : Workers is the right component for this, but we basically need the Ahem font removed from all the workers. So we most likely have to update the docker images, and Puppet for MacOS (CC'ing Ryan).

Component: web-platform-tests → Workers
Product: Testing → Taskcluster

windows and android emulators as well? I know Ryan is looking at a small patch update for the 14.7.5 workers, it might be possible to get this added in.

Which workers/images have it?

Basically on the desktop workers only. wpt installs Ahem.ttf during startup and should remove it, but fails doing so. On bug 1965482 we are no longer installing it, but we don't have a chance to get it removed on those machines that we do not completely reset. At least on mac we have this issue. I cannot say something about Windows - it might be good to inspect a worker manually if the font is installed.

(In reply to Joel Maher ( :jmaher ) (UTC -8) from comment #2)

windows and android emulators as well? I know Ryan is looking at a small patch update for the 14.7.5 workers, it might be possible to get this added in.

Ryan, I wonder if by any chance you were aware of this bug when working on this script. Do we already make sure that we remove the ahem font if it is present on mac workers? If not could we please get it added to the files to be removed when the machine is restored? Thanks.

Flags: needinfo?(rcurran)

Looking at the Ubuntu 18.04 hardware workers, the Ahem fonts are all in the Taskcluster caches directoies (no system paths)... so I think we're OK there?

root@t-linux64-ms-182:/# nice ionice find . -name '*Ahem*'
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/layout/reftests/font-face/CAhem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/layout/reftests/writing-mode/abspos/support/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/layout/reftests/fonts/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/layout/base/tests/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/layout/style/test/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/devtools/client/debugger/test/mochitest/examples/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/devtools/client/inspector/flexbox/test/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/dom/security/test/csp/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/dom/base/test/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/gfx/tests/reftest/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/gfx/wr/wrench/reftests/text/Ahem.ttf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/accessible/tests/browser/e10s/fonts/Ahem.sjs
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/testing/web-platform/tests/css/css-fonts/matching/resources/AhemCrossmarkSupport.otf
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/testing/web-platform/tests/fonts/Ahem.ttf.headers
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/testing/web-platform/tests/fonts/ahem-extra/AHEM_Ahem!.TTF
./home/cltbld/caches/C8S7N7TkQ_WtcwP7WyQEfA/gecko/testing/web-platform/tests/fonts/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/layout/reftests/font-face/CAhem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/layout/reftests/writing-mode/abspos/support/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/layout/reftests/fonts/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/layout/base/tests/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/layout/style/test/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/devtools/client/debugger/test/mochitest/examples/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/devtools/client/inspector/flexbox/test/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/dom/security/test/csp/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/dom/base/test/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/gfx/tests/reftest/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/gfx/wr/wrench/reftests/text/Ahem.ttf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/accessible/tests/browser/e10s/fonts/Ahem.sjs
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/testing/web-platform/tests/css/css-fonts/matching/resources/AhemCrossmarkSupport.otf
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/testing/web-platform/tests/fonts/Ahem.ttf.headers
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/testing/web-platform/tests/fonts/ahem-extra/AHEM_Ahem!.TTF
./home/cltbld/caches/FI27__9mTeeXloNSrAEQWg/gecko/testing/web-platform/tests/fonts/Ahem.ttf

Looks like the story might be similar on macOS 14 hardware workers

[root@macmini-r8-156.test.releng.mdc1.mozilla.com /]# find . -name '*Ahem*'
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/reftests/writing-mode/abspos/support/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/reftests/font-face/CAhem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/reftests/fonts/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/style/test/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/base/tests/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/css/css-fonts/matching/resources/AhemCrossmarkSupport.otf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/fonts/ahem-extra/AHEM_Ahem!.TTF
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/fonts/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/fonts/Ahem.ttf.headers
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/devtools/client/inspector/flexbox/test/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/devtools/client/debugger/test/mochitest/examples/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/dom/security/test/csp/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/dom/base/test/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/accessible/tests/browser/e10s/fonts/Ahem.sjs
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/gfx/tests/reftest/Ahem.ttf
./System/Volumes/Data/opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/gfx/wr/wrench/reftests/text/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/reftests/writing-mode/abspos/support/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/reftests/font-face/CAhem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/reftests/fonts/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/style/test/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/layout/base/tests/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/css/css-fonts/matching/resources/AhemCrossmarkSupport.otf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/fonts/ahem-extra/AHEM_Ahem!.TTF
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/fonts/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/testing/web-platform/tests/fonts/Ahem.ttf.headers
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/devtools/client/inspector/flexbox/test/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/devtools/client/debugger/test/mochitest/examples/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/dom/security/test/csp/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/dom/base/test/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/accessible/tests/browser/e10s/fonts/Ahem.sjs
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/gfx/tests/reftest/Ahem.ttf
./opt/worker/cache/Y_02jeIqToisKLkl3FmacA/gecko/gfx/wr/wrench/reftests/text/Ahem.ttfd
Flags: needinfo?(rcurran)

Jonathan, I think that the above clarifies that our workers shouldn't have the font installed anymore in the system font directory. Is there anything missing or can we close the bug?

Flags: needinfo?(jfkthame)

It sounds like we should be OK here.

It would be nice to have a test (e.g. a simple reftest) that asserts that Ahem is not locally installed, to confirm tests are running in the expected environment. Is that something we could put in WPT, or would other vendors disagree with making such an assertion about the test environment? I guess if nothing else we could do a traditional Firefox reftest... wdyt?

Flags: needinfo?(jfkthame)

(In reply to Jonathan Kew [:jfkthame] from comment #9)

It would be nice to have a test (e.g. a simple reftest) that asserts that Ahem is not locally installed, to confirm tests are running in the expected environment. Is that something we could put in WPT, or would other vendors disagree with making such an assertion about the test environment? I guess if nothing else we could do a traditional Firefox reftest... wdyt?

James, what do you think about that? Would we have to create an upstream PR for that?

Flags: needinfo?(james)

We could consider adding an infrastructure test, but the RFC for using Ahem as a webfont doesn't say that it can't be available locally, so it's not clear that everyone would agree with that: https://github.com/web-platform-tests/rfcs/blob/4ad1c79803301f2c9197136d65fd633a3179bcfe/rfcs/ahem_webfont.md

That said, we could make the PR and see if there are any objections. I think an infrastructure testing failing on people's local systems (if they have Ahem installed) wouldn't be too problematic; the point of those tests is really to validate things about the CI environment and infrastructure.

Flags: needinfo?(james)

Live check: zero Ahem in /Library/Fonts, /System/Library/Fonts and both user font dirs on an M4 (15.3) and r8 (14.70). Bug 1965482 (wpt install) is FIXED; jfkthame already said "we should be OK here".

Assignee: nobody → rcurran
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.