package request: chrome-for-testing
Since recently, there exists a new version of chrome
, stripped down to an absolute minimum required for testing:
- announcement: https://developer.chrome.com/blog/chrome-for-testing/
- related repo on GitHub: https://github.com/GoogleChromeLabs/chrome-for-testing
It can be downloaded and installed like this:
apk add npm
npx --yes @puppeteer/browsers@1.7.0 install chrome-headless-shell@118
Running installed chrome-headless-shell
installed like this fails due to many missing runtime dependencies (as seen by ldd
):
./chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell
ash: ./chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: not found
Most of the missing dependencies can be installed like this:
apk add \
glib nss libatk-1.0 libexpat libx11 gcompat dbus-libs \
at-spi2-core alsa-lib libxkbcommon libdrm mesa-gbm libxrandr \
libxfixes libxcomposite libxdamage libc6-compat
However, running chrome-headless-shell
still fails, this time with what seems like issues related to libc6-compat
:
# ldd /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell
...bunch of correct dynamic links are skipped for brevity.
libXau.so.6 => /usr/lib/libXau.so.6 (0x7efe5e34d000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7efe5e345000)
libblkid.so.1 => /lib/libblkid.so.1 (0x7efe5e2fc000)
libbsd.so.0 => /usr/lib/libbsd.so.0 (0x7efe5e2e9000)
libmd.so.0 => /usr/lib/libmd.so.0 (0x7efe5e2dd000)
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __memcpy_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __memset_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __vsnprintf_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __vfprintf_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __res_ninit: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __res_nclose: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __mbrlen: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: strtoll_l: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: strtoull_l: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __sched_cpualloc: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __sched_cpufree: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __longjmp_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __fprintf_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __snprintf_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: initstate_r: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: random_r: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __fdelt_chk: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __register_atfork: symbol not found
Error relocating /chrome-headless-shell/linux-118.0.5993.3/chrome-headless-shell-linux64/chrome-headless-shell: __libc_stack_end: symbol not found
It would be great to have all the chrome-headless-shell
packaged with all dependencies as a community package.
Related issue: https://github.com/GoogleChromeLabs/chrome-for-testing/issues/50