Skip to content

test_ui_review_setup.cjs: the UI review eval's setup requires a Codex CLI the dev-tests job doesn't install #6868

Closed

Description

@leaf-agent

dev-tests's pnpm run test:evals step fails in dev/tests/node/test_ui_review_setup.cjs ("setup captures every candidate's frozen contrast into a packet") with click.exceptions.ClickException: Codex tasks require the Codex CLI; install it, raised by codex_program() in dev/leaf_dev/arms.py.

Runs: scheduled run 45159811021 on c8ab9ec1df44, the first scheduled run after #6752 fixed the Chromium build this step failed on in the Nov 21 and Nov 22 runs. Earlier failures of this step (#6597, the Chromium build) stopped before this point, so this cause was hidden rather than newly introduced.

Diagnosis so far: the smoke test's header says no model is invoked, but beforeAll in evals/ui-review-detection/hooks.mjs calls leaf_dev.screenshot_judge.screenshot_judge, which resolves codex_program() to fill codex_path_override. The dev-tests job (.github/workflows/ci.yaml) installs no Codex CLI, so the setup fails before any capture is checked. The fix either keeps the setup from resolving the judge's CLI until a judge runs, or installs Codex in the job. A change to the workflow needs the control-plane owner's approval (running-tend, Landing).

Cause of a failure tracked in #6867.

Activity

  1. added
    tend-ci-cause
    on Nov 23, 2026
  2. leaf-agent commented on Nov 23, 2026

    @leaf-agent
    CollaboratorAuthor

    I've opened a fix in #6873. The smoke test called the eval's full beforeAll, which ends by seeding the Codex judge: it resolves the CLI and links the host's auth.json. Installing Codex in the dev-tests job wouldn't have been enough, since that step also needs a login.

    The capture is now its own export, prepareCandidates. beforeAll still runs it before seeding the judge, and the smoke test runs only the capture, so no workflow change is needed.

    I confirmed the ClickException without Codex on PATH, and that the patched test reaches the browser launch without looking for Codex. The full test isn't verified yet. This sandbox can't start Chromium, and dev-tests runs only on the scheduled ci. The first scheduled run after #6873 merges is what verifies it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions