Closed
Description
Context:
- Playwright Version: 1.10.0
- Operating System: docker image mcr.microsoft.com/playwright:bionic
- Node.js version: as in the image
- Browser: [Chromium, Firefox]
- Extra:
- Playwright is running using jest, jest-playwright and jest-playwright-preset
jest-playwright config
module.exports = {
launchOptions: {
headless: false,
slowMo: 100,
},
contextOptions: {
viewport: {
width: 1920,
height: 1080,
},
},
browsers: ["chromium", "firefox"],
exitOnPageError: false,
};
GitLab pipeline
stages:
- test
tests:
stage: test
image: mcr.microsoft.com/playwright:bionic
script:
- echo "build"
- npm ci
- ls
- echo "Test starting"
- xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" npm test
Describe the bug
When pipeline job will get to the point, where browser are started, I will get following error (using DEBUG=pw:browser*):
Test starting
$ xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" --listen-tcp npm test
> easy_poc@1.0.0 test /builds/radekBednarik/easy_poc
> DEBUG=pw:browser* jest --runInBand
2021-05-05T10:44:45.990Z pw:browser <launching> /ms-playwright/chromium-857950/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --user-data-dir=/tmp/playwright_chromiumdev_profile-ml9VaE --remote-debugging-pipe --no-sandbox --no-sandbox --no-startup-window
2021-05-05T10:44:45.992Z pw:browser <launched> pid=82
2021-05-05T10:44:46.332Z pw:browser [pid=82][err] [82:94:0505/104446.331277:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2021-05-05T10:44:46.403Z pw:browser [pid=82][err] [82:108:0505/104446.402206:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2021-05-05T10:44:46.403Z pw:browser [pid=82][err] [82:108:0505/104446.402237:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2021-05-05T10:44:46.447Z pw:browser [pid=82][err] [82:121:0505/104446.447286:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2021-05-05T10:44:46.448Z pw:browser [pid=82][err] [82:121:0505/104446.448038:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2021-05-05T10:44:46.448Z pw:browser [pid=82][err] [82:121:0505/104446.448478:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2021-05-05T10:44:46.448Z pw:browser [pid=82][err] [82:121:0505/104446.448892:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2021-05-05T10:44:46.449Z pw:browser [pid=82][err] [82:121:0505/104446.449245:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2021-05-05T10:44:46.473Z pw:browser <launching> /ms-playwright/firefox-1238/firefox/firefox -no-remote -wait-for-browser -foreground -profile /tmp/playwright_firefoxdev_profile-s840a4 -juggler-pipe --no-sandbox -silent
2021-05-05T10:44:46.473Z pw:browser <launched> pid=122
2021-05-05T10:44:46.581Z pw:browser [pid=82][err] libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
2021-05-05T10:44:46.589Z pw:browser [pid=82][err] [106:106:0505/104446.589206:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
2021-05-05T10:44:46.630Z pw:browser [pid=82][err] [132:132:0505/104446.630157:ERROR:vaapi_wrapper.cc(594)] Could not get a valid VA display
2021-05-05T10:44:46.631Z pw:browser [pid=82][err] [132:132:0505/104446.631081:ERROR:gpu_init.cc(426)] Passthrough is not supported, GL is egl
2021-05-05T10:44:47.404Z pw:browser [pid=122][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.935859) [GFX1-]: glxtest: libpci missing
2021-05-05T10:44:47.404Z pw:browser [pid=122][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.935859) |[1][GFX1-]: No GPUs detected via PCI (t=0.93701) [GFX1-]: No GPUs detected via PCI
2021-05-05T10:44:47.549Z pw:browser [pid=122][out]
2021-05-05T10:44:47.549Z pw:browser [pid=122][out] Juggler listening to the pipe
2021-05-05T10:44:47.769Z pw:browser [pid=122][out] console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
2021-05-05T10:44:48.570Z pw:browser [pid=82][err] [82:108:0505/104448.569869:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2021-05-05T10:44:48.572Z pw:browser [pid=82][err] [82:108:0505/104448.569907:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
If there is something, I should do regarding CI or test runner setup, I am at loss what it is.
Pls help :)
Best
RB
Metadata
Metadata
Assignees
Labels
No labels