Skip to content

fix: fetch the UI review eval's historical timeline commit in a shallow clone - #6600

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6597
Nov 20, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6597

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

stageSite in the UI review eval's setup reads the recorded viewer's timeline library with git show <commit>:<path>. It takes both from fixtures/private/provenance.json. The scheduled dev-tests job checks out at depth 1, so that commit isn't in the clone, and pnpm run test:evals failed with fatal: path … does not exist in 'a8ed7ff…'. When the clone lacks the commit, stageSite now fetches it with git fetch --depth=1 origin <commit> and then runs the same git show. A full clone takes no extra step, and the workflow's checkout depth is unchanged.

I checked it in a fresh git clone --depth=1 with origin set to GitHub. Before the change, node --test dev/tests/node/*.cjs failed in stageSite with the error the scheduled run logged. After it, the clone fetched the commit and staged the full 450,406-byte timeline.esm.js. In that sandbox the test then stopped at chromium.launch, because Node's Playwright wants a browser build (chromium-1254) the sandbox doesn't have. The CI job installs its own browsers, so the next scheduled dev-tests run is the first full pass.

Closes #6597 — automated triage

…ow clone

stageSite read the recorded viewer's timeline library with git show at a
commit from provenance.json, which the dev-tests job's depth-1 checkout
lacks. It now fetches that one commit when the clone doesn't hold it.

Closes #6597
@leaf-agent
leaf-agent merged commit 7cac8f5 into main Nov 20, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6597 branch November 20, 2026 15:38
leaf-agent added a commit that referenced this pull request Nov 22, 2026
…ght installs (#6752)

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](https://github.com/max-sixty/leaf/actions/runs/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

Co-authored-by: leaf-agent <[email protected]>
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.

test_ui_review_setup.cjs: the eval setup reads a historical commit the dev-tests job's depth-1 checkout lacks

1 participant