Skip to content
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

taskcluster: use Firefox from Mozilla PPA in docker image #51185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mukilan
Copy link
Contributor

@mukilan mukilan commented Mar 7, 2025

The default apt package for Firefox in Ubuntu 22.04 is just a reference to a snap package and requires explicitly installing firefox using snap install firefox. However, snap doesn't work inside docker containers as it requires other services like systemd and snapd to be enabled and running.

After moving to 22.04 in #51161, the missing firefox package causes failure in CI integration tests, specifically 'tests/test_wpt.py':

/usr/lib/python3.8/subprocess.py: CalledProcessError
----------------------------- Captured stderr call -----------------------------

Command '/usr/bin/firefox' requires the firefox snap to be installed.
Please install it with:

snap install firefox

As a workaround, this patch adds Mozilla's PPA as an apt source and gives it higher priority than the default package. This has been tested locally and the integration test now passes with this patch.

@mukilan
Copy link
Contributor Author

mukilan commented Mar 17, 2025

@jgraham : just a ping to move to see if this can move foward. I was on vacation the last week and couldn't follow up.

The default apt package for Firefox in Ubuntu 22.04 is just a
reference to a snap package and requires explicitly installing
firefox using `snap install firefox`. However, snap doesn't work
inside docker containers as it requires other services like systemd
and snapd to be enabled and running.

After moving to 22.04 in web-platform-tests#51161, the missing firefox package causes
failure in CI integration tests, specifically 'tests/test_wpt.py':

```
/usr/lib/python3.8/subprocess.py: CalledProcessError
----------------------------- Captured stderr call -----------------------------

Command '/usr/bin/firefox' requires the firefox snap to be installed.
Please install it with:

snap install firefox
```

As a workaround, this patch adds Mozilla's PPA as an apt source and
gives it higher priority than the default package. This has been tested
locally and the integration test now passes with this patch.

Signed-off-by: Mukilan Thiyagarajan <[email protected]>
@mukilan mukilan force-pushed the taskcluster-docker-install-firefox-from-ppa branch from a5d2aed to aefbbf1 Compare March 19, 2025 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants