A platform for community discussion. Free, open, simple.
DEV: Improve Chrome output (#39528)
Jarek Radosz47f178cda6c4
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 04783a11b17..1143116d4d1 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -295,6 +295,14 @@ jobs:if: matrix.build_type == 'system' || matrix.build_type == 'frontend'run: script/assemble_ember_build.rb+ - name: Prepare Chrome environment for QUnit+ if: matrix.build_type == 'frontend'+ run: |+ mkdir -p "$HOME/.pki/nssdb" "$HOME/.local/share/pki/nssdb"+ dbus-daemon --system --fork 2>/dev/null || true+ bus_addr=$(dbus-daemon --session --fork --print-address 2>/dev/null)+ echo "DBUS_SESSION_BUS_ADDRESS=$bus_addr" >> "$GITHUB_ENV"+- name: Core QUnitif: matrix.build_type == 'frontend' && matrix.target == 'core'run: QUNIT_WRITE_EXECUTION_FILE=1 bin/rake qunit:testdiff --git a/frontend/discourse/testem.js b/frontend/discourse/testem.jsindex 0e6ebee74a2..2962f401ed5 100644--- a/frontend/discourse/testem.js+++ b/frontend/discourse/testem.js@@ -278,10 +278,11 @@ module.exports = {"--disable-software-rasterizer","--disable-search-engine-choice-screen","--mute-audio",- "--remote-debugging-port=4201",+ `--remote-debugging-port=${process.env.CI ? 0 : 4201}`,"--window-size=1440,900","--enable-precise-memory-info","--js-flags=--max_old_space_size=4096",+ "--disable-background-networking",].filter(Boolean),Chrome: [// --no-sandbox is needed when running Chrome inside a container or when explicitly requested@@ -291,10 +292,11 @@ module.exports = {"--disable-software-rasterizer","--disable-search-engine-choice-screen","--mute-audio",- "--remote-debugging-port=4201",+ `--remote-debugging-port=${process.env.CI ? 0 : 4201}`,"--window-size=1440,900","--enable-precise-memory-info","--js-flags=--max_old_space_size=4096",+ "--disable-background-networking",].filter(Boolean),Firefox: ["-headless", "--width=1440", "--height=900"],},