Closed Bloke-Bloke closed 3 months ago
runs-on: ebf-pod-ubuntu-2004-slim@${{ github.run_id }}-playright-sand
The problem is likely in the image you use to run the tests. Try running on ubuntu-20.04
instead.
It is still failing please share a github project with that failing action and minimal reproduction project.
Our company locks down the runners we can use. That being said it is using Ubuntu 20.04.6 LTS just with some preinstalled software.
Attached is the repo, if the action doesn't copy over properly it is as follows
/sandbox/.github/workflows/playwright.yml
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ebf-pod-ubuntu-2004-slim@${{ github.run_id }}-playright-sand-s
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test --workers 4
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
I'll reach out to the owners of our elasticfarm to see if they can repo the issue as well.
Could you set the DEBUG=pw:browser
env var while running the tests? This might yield more helpful output.
Could you set the
DEBUG=pw:browser
env var while running the tests? This might yield more helpful output.
Run DEBUG=pw:browser npx playwright test --workers 4
Running [4](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:5) tests using 4 workers
pw:browser <launching> /home/runner/.cache/ms-playwright/firefox-1447/firefox/firefox -no-remote -headless -profile /tmp/playwright_firefoxdev_profile-XXXXXXDyi[5](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:6)H3 -juggler-pipe -silent +0ms
pw:browser <launching> /home/runner/.cache/ms-playwright/chromium-1112/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-XXXXXXi3ymBy --remote-debugging-pipe --no-startup-window +0ms
pw:browser <launched> pid=4484 +40ms
pw:browser <launched> pid=448[6](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:7) +40ms
pw:browser <launching> /home/runner/.cache/ms-playwright/chromium-1112/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-XXXXXXBoUbCv --remote-debugging-pipe --no-startup-window +0ms
pw:browser <launched> pid=4488 +4ms
pw:browser <launching> /home/runner/.cache/ms-playwright/firefox-144[7](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:8)/firefox/firefox -no-remote -headless -profile /tmp/playwright_firefoxdev_profile-XXXXXXqKF9cE -juggler-pipe -silent +0ms
pw:browser <launched> pid=4489 +3ms
pw:browser [pid=4484][err] *** You are running in headless mode. +20ms
pw:browser [pid=4489][err] *** You are running in headless mode. +20ms
pw:browser [pid=4488][err] [0415/203731.071703:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +49ms
pw:browser [pid=4488][err] [0415/203731.072665:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +0ms
pw:browser [pid=4488][err] [0415/203731.072705:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +0ms
pw:browser [pid=4486][err] [0415/203731.084555:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +68ms
pw:browser [pid=4486][err] [0415/203731.085483:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +0ms
pw:browser [pid=4486][err] [0415/203731.085516:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +1ms
pw:browser [pid=4484][err] JavaScript warning: resource://services-settings/Utils.sys.mjs, line 114: unreachable code after return statement +62ms
pw:browser [pid=44[8](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:9)4][out] console.warn: services.settings: Ignoring preference override of remote settings server +18ms
pw:browser [pid=4484][out] console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment +1ms
pw:browser [pid=4488][err] [0415/203731.116170:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 455[9](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:10): Permission denied (13) +43ms
pw:browser [pid=4489][err] JavaScript warning: resource://services-settings/Utils.sys.mjs, line 114: unreachable code after return statement +81ms
pw:browser [pid=4488][err] [0415/203731.132257:WARNING:sandbox_linux.cc(420)] InitializeSandbox() called with multiple threads in process gpu-process. +16ms
pw:browser [pid=4489][out] console.warn: services.settings: Ignoring preference override of remote settings server +2ms
pw:browser [pid=4489][out] console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment +1ms
pw:browser [pid=4486][err] [0415/203731.144500:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 4596: Permission denied (13) +58ms
pw:browser [pid=4488][err] [0415/203731.158212:INFO:config_dir_policy_loader.cc(118)] Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed +26ms
pw:browser [pid=4488][err] [0415/203731.158238:INFO:config_dir_policy_loader.cc(118)] Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended +0ms
pw:browser [pid=4486][err] [0415/203731.159505:INFO:config_dir_policy_loader.cc(118)] Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed +15ms
pw:browser [pid=4486][err] [0415/203731.159532:INFO:config_dir_policy_loader.cc(118)] Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended +0ms
pw:browser [pid=4486][err] [0415/203731.161391:WARNING:sandbox_linux.cc(420)] InitializeSandbox() called with multiple threads in process gpu-process. +2ms
pw:browser [pid=4488][err] [0415/203731.163155:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. +5ms
pw:browser [pid=4486][err] [0415/203731.164026:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. +3ms
pw:browser [pid=4488][err] [0415/203731.227649:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 4655: Permission denied (13) +64ms
pw:browser [pid=4486][err] [0415/203731.232350:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 4658: Permission denied (13) +68ms
pw:browser [pid=4488][err] [0415/203731.234199:WARNING:runtime_features.cc(730)] AttributionReportingCrossAppWeb cannot be enabled in this configuration. Use --enable-features=ConversionMeasurement,AttributionReportingCrossAppWeb in addition. +[10](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:11)ms
pw:browser [pid=4486][err] [0415/203731.237793:WARNING:runtime_features.cc(730)] AttributionReportingCrossAppWeb cannot be enabled in this configuration. Use --enable-features=ConversionMeasurement,AttributionReportingCrossAppWeb in addition. +8ms
pw:browser [pid=4484][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.406756) [GFX1-]: glxtest: libpci missing +267ms
pw:browser [pid=4484][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.406756) |[1][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.406756) [GFX1-]: glxtest: Unable to open a connection to the X server +0ms
pw:browser [pid=4484][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.406756) |[1][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.406756) |[2][GFX1-]: No GPUs detected via PCI +0ms
pw:browser [pid=4484][out] (t=0.406756) [GFX1-]: No GPUs detected via PCI +0ms
pw:browser [pid=4484][out] +0ms
pw:browser [pid=4489][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.354806) [GFX1-]: glxtest: libpci missing +256ms
pw:browser [pid=4489][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.354806) |[1][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.354806) [GFX1-]: glxtest: Unable to open a connection to the X server +0ms
pw:browser [pid=4489][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.354806) |[1][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.354806) |[2][GFX1-]: No GPUs detected via PCI +0ms
pw:browser [pid=4489][out] (t=0.354806) [GFX1-]: No GPUs detected via PCI +1ms
pw:browser [pid=4489][out] +0ms
pw:browser [pid=4484][out] console.error: ({}) +28ms
pw:browser [pid=4489][out] console.error: ({}) +25ms
pw:browser [pid=4484][out] +22ms
pw:browser [pid=4484][out] Juggler listening to the pipe +0ms
pw:browser [pid=4489][out] +20ms
pw:browser [pid=4489][out] Juggler listening to the pipe +1ms
pw:browser [pid=4484][out] console.error: ({}) +564ms
pw:browser [pid=4489][out] console.error: ({}) +593ms
pw:browser [pid=4484][out] console.error: SearchEngineSelector: "Received empty search configuration!" +472ms
pw:browser [pid=4484][out] console.error: SearchEngineSelector: "Received empty search configuration!" +43ms
pw:browser [pid=4484][out] console.error: SearchService: "#init: failure initializing search:" ({}) +0ms
pw:browser [pid=4484][out] console.error: WebExtensions: +0ms
pw:browser [pid=4484][out] Message: [Exception... "Failed to get engine data from Remote Settings" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: resource://gre/modules/SearchEngineSelectorOld.sys.mjs :: getEngineConfiguration :: line [11](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:12)8" data: no] +0ms
pw:browser [pid=4484][out] Stack: +0ms
pw:browser [pid=4484][out] getEngineConfiguration@resource://gre/modules/SearchEngineSelectorOld.sys.mjs:118:24 +0ms
pw:browser [pid=4484][out] +0ms
pw:browser [pid=4484][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +1ms
pw:browser [pid=4484][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +0ms
pw:browser [pid=4484][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +0ms
pw:browser [pid=4489][out] console.error: SearchEngineSelector: "Received empty search configuration!" +498ms
pw:browser [pid=4489][out] console.error: SearchEngineSelector: "Received empty search configuration!" +[12](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:13)ms
pw:browser [pid=4489][out] console.error: SearchService: "#init: failure initializing search:" ({}) +0ms
pw:browser [pid=4489][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +6ms
pw:browser [pid=4489][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +0ms
pw:browser [pid=4489][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +1ms
pw:browser [pid=4489][out] console.error: WebExtensions: +3ms
pw:browser [pid=4489][out] Message: [Exception... "Failed to get engine data from Remote Settings" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: resource://gre/modules/SearchEngineSelectorOld.sys.mjs :: getEngineConfiguration :: line 118" data: no] +0ms
pw:browser [pid=4489][out] Stack: +0ms
pw:browser [pid=4489][out] getEngineConfiguration@resource://gre/modules/SearchEngineSelectorOld.sys.mjs:118:24 +0ms
pw:browser [pid=4489][out] +0ms
pw:browser [pid=4484][out] console.error: "Received empty top sites configuration!" +627ms
pw:browser [pid=4484][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +3ms
pw:browser [pid=4484][out] console.error: "Received empty top sites configuration!" +11ms
pw:browser [pid=4489][out] console.error: "Received empty top sites configuration!" +627ms
pw:browser [pid=4489][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +1ms
pw:browser [pid=4489][out] console.error: "Received empty top sites configuration!" +11ms
pw:browser [pid=4484][out] console.error: SearchSettings: "_write: Could not write to settings file:" (new Error("cannot write without any engine.", "resource://gre/modules/SearchSettings.sys.mjs", 277)) +45ms
pw:browser [pid=4489][out] console.error: SearchSettings: "_write: Could not write to settings file:" (new Error("cannot write without any engine.", "resource://gre/modules/SearchSettings.sys.mjs", 277)) +79ms
pw:browser [pid=4484][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +19s
pw:browser [pid=4489][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +19s
pw:browser [pid=4486] <gracefully close start> +30s
pw:browser [pid=4488] <gracefully close start> +30s
pw:browser [pid=4488] <process did exit: exitCode=0, signal=null> +[13](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:14)ms
pw:browser [pid=4488] starting temporary directories cleanup +1ms
pw:browser [pid=4488] finished temporary directories cleanup +4ms
pw:browser [pid=4488] <gracefully close end> +0ms
pw:browser [pid=4486] <process did exit: exitCode=0, signal=null> +32ms
pw:browser [pid=4486] starting temporary directories cleanup +0ms
pw:browser [pid=4486] finished temporary directories cleanup +4ms
pw:browser [pid=4486] <gracefully close end> +0ms
pw:browser [pid=4489] <gracefully close start> +9s
pw:browser [pid=4484] <gracefully close start> +9s
pw:browser [pid=4489][err] JavaScript warning: resource://gre/modules/UpdateService.sys.mjs, line 3857: unreachable code after return statement +393ms
pw:browser [pid=4489][out] 1713213481886 addons.xpi ERROR System addon update list error Error: Failed downloading XML, status: 0, channelStatus: 2[14](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:15)7500036, errorCode: 2, reason: error +10ms
pw:browser [pid=4484][err] JavaScript warning: resource://gre/modules/UpdateService.sys.mjs, line 3857: unreachable code after return statement +399ms
pw:browser [pid=4484][out] 1713213481921 addons.xpi ERROR System addon update list error Error: Failed downloading XML, status: 0, channelStatus: 2147500036, errorCode: 2, reason: error +9ms
pw:browser [pid=4489] <process did exit: exitCode=0, signal=null> +1[15](https://xxx.github.com/Cloud-ASRM/sandbox/actions/runs/3810929/job/10556577#step:6:16)ms
pw:browser [pid=4489] starting temporary directories cleanup +0ms
pw:browser [pid=4489] finished temporary directories cleanup +6ms
pw:browser [pid=4489] <gracefully close end> +0ms
pw:browser [pid=4484] <process did exit: exitCode=0, signal=null> +118ms
pw:browser [pid=4484] starting temporary directories cleanup +0ms
pw:browser [pid=4484] finished temporary directories cleanup +5ms
pw:browser [pid=4484] <gracefully close end> +0ms
I uploaded your project to https://github.com/yury-s/bug-30377 and it runs without issues on the standard ubuntu image: https://github.com/yury-s/bug-30377/actions/runs/8695638205/job/23847098232, so it definitely has something to do with the custom image that you run on.
Thank you, our security team recently added firewalls that threw me off with the errors and blocked playwright.dev, cheers.
Version
1.43.1
Steps to reproduce
This may be an issue with our runners in github actions but this has not been an issue in the past.. and our current playwright implementation is working as intended.. So I'd like to see if its a new issue.
Here is an example of the files (mostly default) package.json
playwright config
github workflow:
Expected behavior
Expect tests to pass
Actual behavior
Additional context
Note tests run and pass locally
Environment