Skip to content

fix: launch the UI review eval on the Chromium build Python's Playwright installs - #6752

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ui-review-eval-chromium-build
Nov 22, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ui-review-eval-chromium-build

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The scheduled dev-tests job's pnpm run test:evals has failed since the Nov 21 run with browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium-1254/chrome-linux64/chrome (run 45014446027, job dev-tests). leaf-dev setup installs browsers only through Python's Playwright, which #6530 moved to 1.65.2 and Chromium build 1255. Node's Playwright is pinned at 1.65.0 (npm has no 1.65.2), so its chromium.launch({ channel: "chromium" }) looks for build 1254, which nothing installs. #6600 expected the CI job to have Node's browser, but it never had it.

The UI review eval's setup hook and provider now launch the chromium executable that Python's Playwright registry names. shell_executable in dev/leaf_dev/browser.py becomes playwright_executable(name), and shell_executable() now calls it with the headless shell. So the eval's captures and its live browser tool run on the build that setup installed, whichever version Node's Playwright pins. This is the same way the arrangement eval already hands its judge Python's headless shell.

Verification. Locally on main, pnpm run test:evals fails with the same chromium-1254 error. On this branch the launch goes to ~/.cache/ms-playwright/chromium-1255/chrome-linux64/chrome. This sandbox can't run full Chromium: Python's own chromium.launch(channel="chromium") aborts here with the same socket() failed: Address family not supported. So the end-to-end pass has to come from CI. dev-tests runs only on schedule, so the next scheduled ci run on main is the first one that exercises this change. The PR's own test job covers the shell_executable refactor, because tests/conftest.py and the eval modules call it.

Refs #6751 — automated triage

…ght installs

`leaf-dev setup` installs browsers only through Python's Playwright, which #6530
moved to 1.65.2 and Chromium build 1255. Node's Playwright stays at 1.65.0
(npm has no 1.65.2) and looks for build 1254, so the scheduled `dev-tests`
job's `pnpm run test:evals` failed with "Executable doesn't exist at
.../chromium-1254" since the Nov 21 run.

The UI review eval's setup hook and provider now launch the executable Python's
Playwright registry names for `chromium` (`playwright_executable`, the
generalised `shell_executable`), so the eval's captures and its live browser tool
use the build setup installed whichever version Node's Playwright pins.

Refs #6751
@leaf-agent
leaf-agent merged commit f1c7db1 into main Nov 22, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/ui-review-eval-chromium-build branch November 22, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant