Repository navigation
Description
Agent Brief
Type: Task
Summary: Switch the eval-dispatch legs' pull request path steps onto the scripts R2-7 adds (part of restructuring pass #15695). That is 12 steps: four steps in each of the three legs. They are "Choose the plugins", "Validate and stage the suites", "Install ffmpeg for eval scaffolds" and "Stop on an untrusted pull request trigger".
Current behavior:
Line numbers are at 0bcb603a9b, before R2-7. R2-7 edits the same workflow and moves these lines, so find each step by its name in each leg. The legs are the jobs eval, eval-subscription and eval-fallback (eval-browser-dispatch.yml:192, :1057, :1744). Each step's body is byte-identical in the three legs:
- "Stop on an untrusted pull request trigger" (8-line body):
eval-browser-dispatch.yml:323-338,:1172-1187,:1854-1869. - "Choose the plugins" (27 lines):
eval-browser-dispatch.yml:367-402,:1210-1245,:1891-1926. - "Validate and stage the suites" (35 lines):
eval-browser-dispatch.yml:407-449,:1247-1289,:1928-1970. - "Install ffmpeg for eval scaffolds" (15 lines plus a three-value
env:pin):eval-browser-dispatch.yml:532-557,:1346-1371,:2027-2052.
R2-7 adds these scripts, each holding that body verbatim:
.github/scripts/plugin-eval/check-label-sender.sh.github/scripts/plugin-eval/choose-plugins.sh.github/scripts/plugin-eval/stage-suites.sh.github/scripts/lib/install-pinned-ffmpeg.sh <bin-dir> [cache-dir], which holds the ffmpeg pin.
All four steps run on pull_request. There the workflow file is the PR's, but .base is main's tip (eval-browser-dispatch.yml:235-241, ref at :239), so these calls can switch only after R2-7 is on main.
Other facts that hold at 0bcb603a9b:
- Each of the 12 steps runs before the leg's model steps: before "Probe that the policy denies those reads" and "Run the plugin eval" (
eval-browser-dispatch.yml:606,:714in the key leg). - The label check also runs before the credential step (
:343). - No step holds a
${{ }}expression in its body. - No test reads the bodies.
.github/actions/resolve-config/callers.test.mjs:9791-9801deep-compares the legs' steps, so equal edits keep them equal.
Desired behavior:
In each of the three legs, each step keeps its name, if:, timeout-minutes and the env: keys its body reads. Its run: becomes one line that calls the script from .base, main's checkout:
- "Stop on an untrusted pull request trigger":
bash .base/.github/scripts/plugin-eval/check-label-sender.sh. It runs before the credential step and any model step. - "Choose the plugins":
bash .base/.github/scripts/plugin-eval/choose-plugins.sh. It runs before any model step. It reads the PR head at.headwithgit -Cand runs nothing from it. - "Validate and stage the suites":
bash .base/.github/scripts/plugin-eval/stage-suites.sh. It runs before any model step. - "Install ffmpeg for eval scaffolds":
bash .base/.github/scripts/lib/install-pinned-ffmpeg.sh /opt/tools/bin, before any model step.- It drops its three
FFMPEG_*env:entries, whichinstall-pinned-ffmpeg.shnow holds, and keepstimeout-minutes: 3. - This is the one
env:change. R2-7 made the same change to the demo-video install. - The key leg's comment above it no longer lists pin values. R2-7 already pointed that comment at the lib script.
- It drops its three
Files:
- the four named steps in each of the three eval-dispatch legs (
eval-browser-dispatch.yml:323,:367,:407,:532;:1172,:1210,:1247,:1346;:1854,:1891,:1928,:2027at0bcb603a9b)
Key interfaces:
- Each step's outputs (
go,list,suites), error lines, exit codes and installed files: identical for the same inputs. - One addition: the ffmpeg install now also checks each tool is executable, a check
install-pinned-ffmpeg.shadds. - Token scope and log shape: each step stays one
runstep reading main's checkout, before any model step, with no new token, permission or composite action.
Acceptance criteria:
- Each of the 12 steps calls its R2-7 script from main's checkout, and no leg still holds those bodies inline.
- Every step name,
if:,timeout-minutes, job id, trigger, permission and workflow file name is unchanged. Everyenv:key is unchanged except the three ffmpeg pin entries per leg. - The three eval legs stay equal under the existing leg-shape check.
- Behavior is unchanged: the same outputs, exit codes and installed files for the same inputs.
- The diff edits only the listed steps and the lines of a test that assert on them when the change breaks that assertion.
- The pull request stays within 400 changed lines and 15 hand-edited files.
- ci-status is green.
Out of scope:
- The scripts' contents (R2-7), "Judge the leg", "Print Bash error excerpts", the three-leg structure, other duplication, eval cases, fixtures, and skill and agent text.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity