Skip to content

refactor(ci): call the eval-dispatch leg scripts from the pull request path - #16037

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/r2-8-eval-leg-script-calls
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/r2-8-eval-leg-script-calls

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #16026

session: Simplify E2 A

Summary

Switches the eval-dispatch legs' pull request path steps onto the scripts R2-7 (#16025) added. That is 12 steps, four in each of eval, eval-subscription and eval-fallback, and each now runs one script from .base, main's checkout, which holds the scripts since #16025 merged.

Fix

  • In each leg, each run: becomes one line:
    • "Stop on an untrusted pull request trigger": bash .base/.github/scripts/plugin-eval/check-label-sender.sh.
    • "Choose the plugins": bash .base/.github/scripts/plugin-eval/choose-plugins.sh.
    • "Validate and stage the suites": bash .base/.github/scripts/plugin-eval/stage-suites.sh.
    • "Install ffmpeg for eval scaffolds": bash .base/.github/scripts/lib/install-pinned-ffmpeg.sh /opt/tools/bin. It drops its three FFMPEG_* env: entries, which the script holds. As the issue states, it now also checks that each tool is executable.
  • Names, ids, if:s, timeout-minutes and every other env: key are unchanged.
  • The key leg's ffmpeg comment says the script holds the pinned build.

Verification

  • Drift check, as agreed in R2-7's review: before switching, each of the nine label, choose and stage step bodies (three steps in three legs) was compared with its script's body at 5aff8ba548. All nine are byte-equal, so no drift needed folding in.
  • The pin now appears only in install-pinned-ffmpeg.sh and the demo-video cache key. The bodies' distinctive lines are gone from the workflow; the remaining mentions are comments and the separate dispatcher check.
  • actionlint: clean apart from the cache-mode job keys already on main. check-artifact-retention.mjs: 152 upload steps match.
  • node --test --test-concurrency=4 on the node test files that name this workflow or plugin-eval/ (including callers.test.mjs, which holds the three legs equal): 818/818 pass. scripts/eval-leg-scripts.test.sh: 13/13. test_merge_holds_sync.py: 21 passed.
  • Left to CI: the full .github suite (CI Status).

Related

Part of #15695 (R2). Follows #16025 (R2-7).

🤖 Generated with Claude Code

…t path

In each of the three eval legs, "Stop on an untrusted pull request
trigger", "Choose the plugins", "Validate and stage the suites" and
"Install ffmpeg for eval scaffolds" run the R2-7 scripts from .base
instead of their inline bodies; the ffmpeg steps drop their FFMPEG_*
env pin, which install-pinned-ffmpeg.sh holds.

Closes #16026

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 21:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T21:32:10.715852Z 7b749d1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 7b749d14d5c627cfd69bcea15e18dd4f0570767c: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

This PR changes one file, .github/workflows/eval-browser-dispatch.yml. In each of the three eval legs (eval, eval-subscription, eval-fallback), four steps that held their commands inline now each call a script. I read every hunk of the diff.

How the change was checked against the scripts

  • Same commands. check-label-sender.sh, choose-plugins.sh and stage-suites.sh hold the removed step bodies line for line, each with set -e added. install-pinned-ffmpeg.sh holds the same pin values (FFMPEG_RELEASE, FFMPEG_BUILD, FFMPEG_SHA256) and the same download, checksum, extract and version check. Its one addition is the executable check the issue calls for.
  • Same shell. The workflow sets no defaults.run.shell or shell:, so the old inline bodies ran under bash -e without pipefail. Running bash <script> with set -e gives the same exit behaviour. The only pipes (printf | node, echo | sha256sum, ffmpeg -version | sed) behave the same either way.
  • Inputs and paths. Every env: key a script reads is still set on its step. The scripts still use the same .head/.base paths relative to the workspace root, since no working-directory is set. .base is a full checkout of main's tip on pull_request, and of the dispatched commit otherwise (eval-browser-dispatch.yml L235-L241). So the scripts load from the trusted checkout, never from the PR head.
  • Order. The label check still runs before "Check the credential" and before any model step.

Closing issue #16026: acceptance criteria

  • All 12 steps call their script from .base, and none of the old bodies remain inline: met.
  • Step names, if:, timeout-minutes, ids and env: keys are unchanged, apart from the three FFMPEG_* entries removed in each leg: met.
  • The legs stay equal: met, because the same edits were made in all three. callers.test.mjs deep-compares the legs, so it would fail on any drift.
  • Behaviour is unchanged: met by reading the code, as described above. The executable check is the one addition, and the issue asks for it.
  • The diff is limited to the listed steps and stays well under 400 lines in one file: met.
  • ci-status green: left to CI. I did not run any command.

The author's results for actionlint, node --test and eval-leg-scripts.test.sh come from their own runs. I did not repeat them.

Spend: none. The change adds no model calls, runners or billing.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7b749d14d5c627cfd69bcea15e18dd4f0570767c: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16037 (head 7b749d1)

No security issues found.

.github/workflows/eval-browser-dispatch.yml is a trusted path. I read all of its change and the four scripts the changed steps now call. In each of the three legs (eval, eval-subscription, eval-fallback), the four inline run: bodies are replaced by bash .base/... calls.

Where the scripts come from. On a pull request, .base is checked out at main's tip. That tip is resolved through git ls-remote of refs/heads/<default_branch> (L220-L241). On a dispatch, the job's if: limits the ref to the default branch (L195-L201). So a pull request head cannot replace the script that runs. The PR head is checked out separately into .head with persist-credentials: false, and nothing in it is executed. This matches the trust model the inline bodies already used: they called .base/.github/scripts/plugin-eval/select-plugins.mjs and read .base/.../trusted-actors.json.

Trust check (label sender). check-label-sender.sh matches the removed inline body line for line, with set -e added. The step's env: still sets PROCEED, REASON, LIST and SENDER_ID. If the script is missing on main, bash exits non-zero and the step fails, so the check fails closed. This trust check is no wider than before.

Plugin selection and staging. choose-plugins.sh and stage-suites.sh match the removed bodies. That includes the plugins/<name> regex on the dispatch target input and the select-plugins.mjs allowlist refusal. The workflow sets no defaults.run.shell, so the inline steps ran under bash -e. The scripts' set -e gives the same error behavior, and in the selected=$(… | node …) || {…} pipeline the exit status is node's either way.

ffmpeg pin. install-pinned-ffmpeg.sh uses the same release tag, build and SHA-256 as the removed env: entries. It still checks the hash before extracting, and it adds an executable check for each tool. The pin is not loosened.

Unchanged. Job permissions: blocks, if: conditions, the kill-switch steps and check-trusted-trigger are all untouched. No token scope, trusted actor or untrusted-text path is widened. None of the owner's friction holds is touched.

Spend. No change to model credentials, cost caps or how often the eval runs.

Protected-class register: not needed, because the diff removes no standing instruction.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit b42a175 Nov 13, 2026
83 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/r2-8-eval-leg-script-calls branch November 13, 2026 21:45
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Call the eval-dispatch leg scripts from the pull request path

1 participant