I maintain a test that downloads a content_shell from http://commondatastorage.googleapis.com/chromium-browser-snapshots and runs run_web_tests.py web tests against the latest development version of Lighthouse (a third party library used in DevTools). This all runs in GitHub Actions. This test has been running successfully for nearly two years now, and it's been pretty useful to us in catching regressions.
We had no choice but to run these tests on Mac (Ubuntu would have been preferred) because the Ubuntu content_shell wouldn't work with web tests. Recently I started to look at this again, and this is what I found:
- These tests work fine using a locally built Linux content_shell, but not with a content_shell from the data storage repository. The error logged by the web test runner is very explicit: GL is required for it to work, and GL is not working.
- The locally built content_shell has webgl enabled (according to https://webglreport.com/), but the downloaded content_shell does not. I tried various flags but nothing worked- On start up, the downloaded content_shell logs that it cannot initialize GL. I noticed that the Mac content_shell zip that can be downloaded from this repository comes with swiftshader and GL libraries, but the Linux one doesn't.--
Is lack of GL expected for these Linux content_shells? I believe that if only GL worked, then run_web_tests.py would work too.Here's our setup, in case anyone is interested how one can run web tests on GitHub Actions: https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/test/chromium-web-tests/README.md
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/6b2a9ad3-1d77-4597-a3d2-01b3bbc84603n%40chromium.org.
Puppeteer doesn't update often enough for our use case: we use this test to successfully prevent regressions in our tool very early, and we can't do that without tracking ToT. Another problem is that the webtests runner simply doesn't work with full chrome, it only works for content shell.
> Are you expecting hardware-accelerated WebGL inside content_shell, or are you looking for SwiftShader fallback?
I think any webgl support would do: our tests aren't graphics intensive so I don't think the performance hit of swiftshader would matter.
Is there a particular reason why the Linux content shell available in the chromium-browser-snapshots bucket isn't built with webgl but MacOS is? Wondering if we can just flip a switch...