From e108bfb4f5c3ba1991f3da1c7ce9c27aab9736d2 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 10 May 2022 16:12:55 -0700 Subject: [PATCH] Meta: switch headless chromium installation I use a different installation for headless tests since dev snapshots were too slow. --- Makefile.online | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.online b/Makefile.online index c9196e6..acea491 100644 --- a/Makefile.online +++ b/Makefile.online @@ -5,17 +5,18 @@ PAGE_PATH = / SCHEME=https:// URL = $(SCHEME)$(DOMAIN)$(PAGE_PATH) # latest bleeding-edge chromium snapshot -CHROME_PATH = /home/rkumar/Executables/ghq/github.com/chromium-unofficial-latest-linux/chromium-latest-linux/latest/chrome-linux/chrome +CHROME_PATH = /home/rkumar/Downloads/chromium/thorium/latest/chrome CHROME_PROFILE = /tmp/chrome-lighthouse -CHROME_FLAGS += --headless --disable-extensions --no-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --no-first-run --disable-component-update --disable-background-networking --enable-features='EmbeddingRequiresOptIn,EnableDrDc,HttpsOnlyMode,PdfUnseasoned,StrictOriginIsolation,StrictExtensionIsolation,WebRtcHideLocalIpsWithMdns,ThrottleDisplayNoneAndVisibilityHiddenCrossOriginIframes,UseOzonePlatform' --user-data-dir=$(CHROME_PROFILE) --enable-quic --origin-to-force-quic-on=seirdy.one:443 -CPU_SLOWDOWN=2.4 +JS_FLAGS='' +CHROME_FLAGS += --disable-extensions --no-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --no-first-run --disable-component-update --disable-background-networking --user-data-dir=$(CHROME_PROFILE) --enable-quic --origin-to-force-quic-on=seirdy.one:443 +CPU_SLOWDOWN=2.9 LIGHTHOUSE_ARGS += --budget-path budget.json --output html --output json --output-file lighthouse-results --throttling.cpuSlowdownMultiplier=$(CPU_SLOWDOWN) --chrome-flags="$(CHROME_FLAGS)" hint-online: pnpx hint --config .hintrc -f codeframe $(URL) lighthouse: mkdir -p $(CHROME_PROFILE) - CHROME_PATH=$(CHROME_PATH) lighthouse $(URL) $(LIGHTHOUSE_ARGS) + CHROME_PATH=$(CHROME_PATH) CHROME_PROFILE=$(CHROME_PROFILE) JS_FLAGS='' lighthouse $(URL) $(LIGHTHOUSE_ARGS) rm -rf $(CHROME_PROFILE) redbot: redbot_cli -a $(URL)