- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Include xz as a dependency for extracting firefox builds #26
Comments
Hi @albertyw, thanks for reporting. Cold you give me an example of The thing is that there are quite a few builds which will be affected, and I would like to investigate a possible fix with lower impact. |
I'm using webdriverIO so I can give: FROM satantime/puppeteer-node:23-bookworm-slim
WORKDIR /root
# Skipping this line will cause `wdio repl firefox` to fail with "spawn xz ENOENT"
# RUN apt-get update && apt-get install -y xz-utils
RUN npm init --yes wdio@latest . -- --yes
RUN npx wdio repl firefox Running with
Running without
This is because webdriverIO attempts to download the firefox tar.xz and fails to unpack it. |
Hi @albertyw, thank you for the details. Should work well now. However, if you need older versions, it might take a week or two until all of them have been updated to provide |
Firefox recently switched their nightly builds to .tar.xz compression: https://blog.nightly.mozilla.org/2024/11/28/announcing-faster-lighter-firefox-downloads-for-linux-with-tar-xz-packaging/
Newer versions of puppeteer-browsers (specifically >2.6.1) support unpacking tar.xz. However, it works by streaming contents through the
xz
process.I was therefore able to fix puppeteer builds off of satantime/puppeteer-node by installing xz into the docker container before use:
apt-get update && apt-get install -y xz-utils
The text was updated successfully, but these errors were encountered: