Repository navigation
fix: fetch the UI review eval's historical timeline commit in a shallow clone - #6600
Merged
Merged
Conversation
…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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
stageSitein the UI review eval's setup reads the recorded viewer's timeline library withgit show <commit>:<path>. It takes both fromfixtures/private/provenance.json. The scheduleddev-testsjob checks out at depth 1, so that commit isn't in the clone, andpnpm run test:evalsfailed withfatal: path … does not exist in 'a8ed7ff…'. When the clone lacks the commit,stageSitenow fetches it withgit fetch --depth=1 origin <commit>and then runs the samegit 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=1with origin set to GitHub. Before the change,node --test dev/tests/node/*.cjsfailed instageSitewith the error the scheduled run logged. After it, the clone fetched the commit and staged the full 450,406-bytetimeline.esm.js. In that sandbox the test then stopped atchromium.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 scheduleddev-testsrun is the first full pass.Closes #6597 — automated triage