On 13/11/2017 20:00, Andreas Jaeger wrote: > The linked bug contains a log > https://bugs.launchpad.net/horizon/+bug/1731421 > > I didn't look into using. Keep in mind that a few other repos using that > job would need it as well. > > Btw. I was not happy that my change only works on Ubuntu and installs > xvfb/chromium using apt.
Hello Andreas, After all the reviews and useful comments you did for me, there is finally a time I think I can help. For Wikimedia/MediaWiki we do use npm/Karma/Xvfb/Chromium. The tldr is: export CHROME_BIN=/usr/bin/chromium-browser https://github.com/karma-runner/karma-chrome-launcher/pull/41 The forensic version: The log being: | ubuntu-xenial | No binary for Chrome browser on your platform. | Please, set "CHROME_BIN" env variable. Assuming your image has the chromium-browser package installed, the binary is /usr/bin/chromium-browser karma-chrome-launcher should support chromium (instead of chrome) since 0.1.8. And on Windows/Mac since 2.0.0. The fault is most probably that Karma is configured for "Chrome", that would be what is configured in the Horizon source repository. But it most definitely is NOT available in Ubuntu: * Chrome is the Google browser with their "features" * Chromium is the pure open source one. That is the one in Debian/Ubuntu. Since developers usually have Chrome but you can't get it on the CI machine, you gotta to do some usurpation. For MediaWiki/Wikimedia, what we ended doing is to set CHROME_BIN ourselves: export CHROME_BIN=`which chromium-browser || which chromium` https://gerrit.wikimedia.org/r/#/c/331110/1/bin/global-set-env.sh (credits to Timo "Krinkle" Tijhof) Or really just /usr/bin/chromium-browser When Karma is configured to use Chrome, it would use CHROME_BIN if indicated, else try to find eg /usr/bin/chrome. By pointing Chrome to Chromium, the source repo is still configured for Chrome which makes developers happy. And on CI you trick it in using Chromium. Hope that helps! (copy pasted the above on #1731421) -- Antoine "hashar" Musso _______________________________________________ OpenStack-Infra mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra
