Repository navigation
refactor(ci): add scripts for the eval-dispatch leg steps and pinned ffmpeg - #16025
Conversation
…ffmpeg Five scripts hold step bodies the workflows repeat: check-bwrap.sh, choose-plugins.sh, stage-suites.sh and check-label-sender.sh (each its eval-dispatch step's body verbatim) and lib/install-pinned-ffmpeg.sh (the BtbN release, build and SHA-256, with an optional download cache). The three dispatch-only bwrap checks call check-bwrap.sh from .base, and the demo-video ffmpeg install calls install-pinned-ffmpeg.sh from its root checkout. The other scripts get their pull request path callers in R2-8. scripts/eval-leg-scripts.test.sh runs each script. Closes #16021 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Code review: PR #16025, refactor(ci): add scripts for the eval-dispatch leg steps and pinned ffmpegI read all 8 changed files in full in
Findings (summary-only: neither can sit on a changed line)
Other notes
I fanned out no hunter or verifier subagents; each candidate was checked directly against the workflow and repository files at head. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #16025 (head b3ac229)No security issues found. I read the whole diff for all 8 changed files. critical-findings: 0 What I checked
Trust controlsNo trust control is widened:
Spend: none beyond the existing CI legs. The demo-video leg's work is unchanged, and the new test suite adds a few seconds to a Bash leg. The PR description held no embedded instructions to the review lane. |
Post-merge mutation testingKilled 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #16021
session: Simplify E2 A
Summary
Adds five scripts under
.github/scripts/for the eval-dispatch leg steps and the pinned ffmpeg install (R2-7, part of #15695). Only the call sites that are safe before this merges switch here: the three bwrap checks and the required-checks ffmpeg install. As the issue says,choose-plugins.sh,stage-suites.shandcheck-label-sender.shget their pull request path callers in R2-8.Scope exception: the issue owner allowed
scripts/eval-leg-scripts.test.shbeyond the issue's file list (#16021 comment).Fix
#!/usr/bin/env bashandset -e, with no pipefail:plugin-eval/check-bwrap.sh,choose-plugins.sh,stage-suites.sh,check-label-sender.sh: each holds its step'srun:body verbatim (18, 27, 35 and 8 lines) and reads the same environment names. They keep[ ]tests to stay verbatim, so each carries a file-levelshellcheck disablefor SC2292 and for SC2154, the env the step sets, as other.github/scriptsfiles do.lib/install-pinned-ffmpeg.sh <bin-dir> [cache-dir]: holds the release, build and SHA-256. With a cache dir it keeps the archive there and downloads only when missing. Without one it downloads toRUNNER_TEMPand removes the archive after extracting. Both forms check each tool is executable and reports the pinned build. Error lines are the steps' own.if:. They runbash .base/.github/scripts/plugin-eval/check-bwrap.sh. Checkout: the step'sif:holds it toworkflow_dispatch, the jobif:holds a dispatch to the default branch, and.baseis thengithub.sha(eval-browser-dispatch.yml:235-241), the commit the YAML comes from.timeout-minutesandLEG_PLANgate lines. It drops itsenv:pin and runsbash .github/scripts/lib/install-pinned-ffmpeg.sh "$HOME/.local/bin" "$HOME/.cache/ci-tools-ffmpeg". Checkout:test-bashchecks out the PR tree at the workspace root (pr-require-checks.yml:3537-3540), which holds the new script. The cache key is unchanged.install-pinned-ffmpeg.shas the pin's home. The demo-video comment says the script installs both tools.scripts/eval-leg-scripts.test.sh, a behavior test that runs each script. Without it nothing runs three of the scripts until R2-8, and review asked the same of R2-1's scripts (refactor(ci): move the lane-token revoke and pinned PyYAML install into lib scripts #15970).Verification
install-pinned-ffmpeg.shagainst the real release: the cache form downloaded and verified the archive, the cache-hit form reused it, the temp form left nothing inRUNNER_TEMP, and each printedffmpeg version n8.1.3-9-g29e619e767-20260930and the ffprobe line. No argument is a usage error.scripts/eval-leg-scripts.test.sh: 13/13, covering each refusal line and exit code,choose-plugins.shandstage-suites.shoutputs, the SHA-256 refusal on a downloaded and a cached archive, and no download on a cache hit.shellcheck --rcfile .shellcheckrcandshfmt -d(v3.14.1) on the six shell files: clean.node --test --test-concurrency=4on the node test files that name either workflow orplugin-eval/(includingcallers.test.mjs, which holds the three legs equal): 3728/3728 pass.test_merge_holds_sync.py: 21 passed.check-artifact-retention.mjs: 152 upload steps match.actionlint(local) reports onlycache-modejob keys that are already on main, not in this diff..githubsuite (ci-status).Related
Part of #15695 (R2). Follow-on: R2-8 calls the three remaining scripts and
install-pinned-ffmpeg.shfrom the eval-dispatch pull request path.🤖 Generated with Claude Code