Skip to content

fix: run the UI review eval's smoke test without seeding the Codex judge - #6873

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6868
Nov 23, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

dev/tests/node/test_ui_review_setup.cjs called the eval's whole beforeAll. The last step of beforeAll seeds the judge's home: screenshot_judge resolves codex_program() and symlinks the host's Codex auth.json. The dev-tests job has no Codex CLI and no login, so the smoke test failed at the seed after the captures had already run, and none of its packet assertions ran (run 45159811021). Installing Codex in the job would not have been enough, because the seed also needs a login.

This PR moves the site staging and candidate capture into an exported prepareCandidates(suite). beforeAll runs it and then seeds the judge, so a real eval run behaves as before. The smoke test calls only prepareCandidates, so it checks the same packets without needing Codex. The test no longer calls afterAll: that only removed the judge seed and wrote a grading summary, and the test never created a seed.

Verification so far

  • Before the change: with no codex on PATH, the judge seed fails with the same ClickException as the CI run.
  • After the change: the smoke test now goes straight from prepareCandidates to launchChromium, with no Codex lookup in between.
  • Not yet run: the full test. This sandbox can't start Chromium, which aborts because socket() is refused for AF_UNIX sockets. dev-tests runs only on schedule, so this PR's own CI won't run the test either. It counts as fixed only once the next scheduled ci run on main after this merges shows test:evals passing.
  • oxfmt is clean on both changed JS files.

Cause of the failure reported in #6867.

Closes #6868 — automated triage

The smoke test called the eval's whole `beforeAll`, whose last step seeds the
judge's home: `screenshot_judge` resolves the Codex CLI and links the host's
Codex login. The dev-tests job has neither, so the test failed on that step
before it checked any capture. The capture now lives in `prepareCandidates`.
`beforeAll` runs it before seeding the judge, and the smoke test runs it alone,
so the test checks the same packets without needing Codex. A real eval run
still seeds the judge as before.

Closes #6868
@leaf-agent
leaf-agent merged commit 44e864a into main Nov 23, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6868 branch November 23, 2026 15:40
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 UI review eval's setup requires a Codex CLI the dev-tests job doesn't install

1 participant