From df02a71c038e6247cc79699359c6faf2f3dcc5c3 Mon Sep 17 00:00:00 2001 From: oqyude Date: Mon, 12 Oct 2026 15:16:57 +0300 Subject: [PATCH] fix(vtimeline): drop dead PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH export Playwright never reads this variable. Verified: no reference to it anywhere in playwright-core, unsetting it leaves the suite green, and pointing PLAYWRIGHT_BROWSERS_PATH at an empty directory fails the suite even while the variable is set. The browsers.json-derived symlink farm is the only mechanism that selects the nixpkgs chromium. The old comment claimed the variable was "honoured by older Playwright and the channel code path", which is false. That claim risked a future editor deciding the symlink farm was secondary and breaking a working setup. Replaced it with a note recording why the export must not come back. Suite re-verified after the change: 15/15 passed. --- devshells/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/devshells/default.nix b/devshells/default.nix index 5833187..8571c0c 100644 --- a/devshells/default.nix +++ b/devshells/default.nix @@ -40,9 +40,12 @@ shellHook = '' export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 export NIX_CHROMIUM=${pkgs.chromium}/bin/chromium - # Direct executable-path override (honoured by older Playwright and - # the `channel: "chromium"` code path). - export PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH="$NIX_CHROMIUM" + # NOTE: there is deliberately no PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH + # export. Playwright never reads that variable — verified 2026-10-12: + # no reference to it anywhere in playwright-core, and pointing + # PLAYWRIGHT_BROWSERS_PATH at an empty directory fails the suite even + # while the variable is set. The symlink farm below is the only thing + # that makes Playwright use the nixpkgs chromium. Don't re-add it. export PLAYWRIGHT_BROWSERS_PATH="$HOME/.cache/vtimeline-pw-browsers" mkdir -p "$PLAYWRIGHT_BROWSERS_PATH"