Skip to content

fix(ci): ship ffmpeg in the eval image so the marathon design-motion case can run (#3687) - #3724

Closed
garrytan wants to merge 1 commit into
mainfrom
garrytan/gsta-211-marathon-ffmpeg
Closed

garrytan wants to merge 1 commit into
mainfrom
garrytan/gsta-211-marathon-ffmpeg

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3724,
  "head": "a4a51d96cef46b1f43df39c2102b1fda8e604ec4",
  "version": "1.91.376.0",
  "base": "main",
  "gate": {
    "ci-image-pin": {
      "pass": 20,
      "fail": 0,
      "skip": 0
    },
    "motion-pipeline": {
      "pass": 8,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "c13f8942985dc249560f43282ee7d34ee7ec028b",
  "product_patch_id": "0187a540dd66438b9c76c727c1b811958f44141a",
  "gstack_version": "1.91.376.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 15,
    "rules": "150435b0a543019a",
    "base": "3bfe5667fb02a45378fa930d5f498a48d9764155",
    "registry": "3bfe5667fb02a45378fa930d5f498a48d9764155",
    "gate_scan": {
      "tagged": 0,
      "head": "a4a51d96cef46b1f43df39c2102b1fda8e604ec4"
    },
    "reasons": [
      "runtime=15<=50"
    ]
  },
  "pregate": "requires-remote cleared @c13f8942985d (7 checks, current for a4a51d96cef4)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41230690480",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41230690633",
    "pregate.json/remote_gate: remote-gate tree=c13f8942985d tests=3221 receipt=/home/user/.gstack/projects/garrytan-gstack/pregate/runs/20261031T183224Z-82192-244f/remote/remote.log sha256=78bde04c71bc"
  ],
  "issues": {
    "fixes": [
      3687
    ],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, CONTRIBUTING.md, AGENTS.md, CLAUDE.md, docs/ (base 5ba425a to head a4a51d9)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "dispatches": {
      "specialist": 1
    }
  }
}

What changed

The new ffmpeg checks in test/ci-image-cli-pin.test.ts fail on main's Dockerfile.ci and pass with this PR

The new ffmpeg checks in test/ci-image-cli-pin.test.ts fail on main's Dockerfile.ci and pass with this PR.

Before/after as text: The new ffmpeg checks in test/ci-image-cli-pin.test.ts fail on main's Dockerfile.ci and pass with this PR
--- Before · before2.txt · captured output
+++ After · after2.txt · captured output
+(pass) ci image ffmpeg for the design-motion evals (#3687) > apt installs ffmpeg, which the marathon design-motion-showcase case needs [0.06ms]
+(pass) ci image ffmpeg for the design-motion evals (#3687) > the build fails when that ffmpeg cannot run the motion checks and exports [0.25ms]
+Ran 20 tests across 1 file. [26.00ms]
-(fail) ci image ffmpeg for the design-motion evals (#3687) > apt installs ffmpeg, which the marathon design-motion-showcase case needs [0.22ms]
-(fail) ci image ffmpeg for the design-motion evals (#3687) > the build fails when that ffmpeg cannot run the motion checks and exports [0.09ms]
-Ran 20 tests across 1 file. [27.00ms]
 

The CI eval image (.github/docker/Dockerfile.ci) now installs Ubuntu's ffmpeg (6.1.1, with ffprobe). The image build fails if that ffmpeg lacks a filter or encoder that /design-motion's checks and exports use. A new free test block in test/ci-image-cli-pin.test.ts fails if the image stops installing ffmpeg or stops checking it.

Why

The weekly marathon case design-motion-showcase failed 0/3 in Actions run 41200316994 (main @ 088bfc5). Every trial built and captured the page, then stopped at FFMPEG_MISSING, because the eval image had no ffmpeg. With ffmpeg in the image, the case can reach its checks and exports again.

Proof: in run 41200316994 (main @ 088bfc5), all 3 trial transcripts print NO_FFMPEG and then FFMPEG_MISSING. The free test block in test/ci-image-cli-pin.test.ts failed two of its tests before the Dockerfile edit, and the whole file passes after it.

Paid verification: marathon dispatch 41229494484 at a4a51d9 rebuilt the image, and design-motion-showcase passed in all three trials (trial costs $0.74, $0.56 and $0.62). The run was red on one other case, office-hours-section-loading (rule). That case also passed on main in run 41200316994 and this diff doesn't touch it; its one flaky rerun at a4a51d9 passed and is logged in the flaky ledger.

Blast radius

Every eval job runs in this image, so every eval job now has ffmpeg and pulls a somewhat larger image (the size was not measured). That is safe because the image tag hashes Dockerfile.ci, so the next run builds a fresh image instead of reusing a stale one, and the missing-ffmpeg tests force that case through GSTACK_FFMPEG rather than PATH, so they do not flip (both read in source by the review). The whole free tier passed on a Ubicloud VM at this tree: 3221 tests, 0 failed.

Security read: this adds one dependency, Ubuntu's own ffmpeg package from the image's existing apt sources, because /design-motion's checks and exports cannot run without it. It adds no network call outside the image build's apt fetch, reads no secrets or environment variables, widens no file or shell permissions, and touches no .github/workflows file, setup, install or upgrade script. No outside contributor code is involved.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-30 Skip the plan step for an already-diagnosed red-main fix (GSTA-211, #3687) “Do it” (Garry (via GStack Minder)) standing approval S1 emergencies (red main) and fixes to an already-diagnosed, audited problem list skip the autoplan step none
2026-10-16 Merge gstack PRs when green “yes merge when green” (Garry) standing approval GStack Minder merges through a train once every required check passes at the exact head; lanes never merge none

Source: gstack-approvals record for garrytan/gsta-211-marathon-ffmpeg (display only; not an approval citation).

Summary

The eval image gains ffmpeg plus a build-time check of the filters and encoders /design-motion needs, and a free test pins both.

Test Coverage

Coverage: deterministic (the one changed runtime file, .github/docker/Dockerfile.ci, has a changed test naming it).
Regression proof: the new block fails at main's Dockerfile.ci and passes after the fix.
Tests ran: ci-image-pin 20
Tests ran: motion-pipeline 8

Pre-Landing Review

No issues found in the specialist pass.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen dispatches=1
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review (openai/gpt-6.1-sol): approve, no findings.
Adversarial review (in-host, Claude): "Nothing here blocks the merge." It rated all five findings Low and not blocking. Three were tagged for fixing and were skipped instead, because a Dockerfile.ci edit changes the eval image hash and would move this PR off the paid verification run:

  • The comment says the build checks every filter the motion code uses; it checks only the non-core ones (trim, scale, crop and the rest ship in every libavfilter build).
  • The check greps the whole -filters listing rather than the name column, so a missing filter could pass if another filter's description used its name.
  • The comment implies the motion code calls ffprobe; it does not. command -v ffprobe only proves the package installed.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL test/helpers/touchfiles-data.ts:881 coverage
  • INFORMATIONAL .github/docker/Dockerfile.ci:186 performance

Eval Results

No prompt-related files changed, so PR evals were skipped. Marathon dispatch 41229494484 at a4a51d9: design-motion-showcase passed in all three trials; office-hours-section-loading was red, then passed on its one flaky rerun at the same head (see Why).

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is an exempt red-main fix (see Approvals).

Issues

Fixes #3687

Documentation

Status: current. No documentation changes needed.

Scope: base 5ba425a to head a4a51d9: .github/docker/Dockerfile.ci (installs ffmpeg and ffprobe and fails the build if a required filter or encoder is missing), test/ci-image-cli-pin.test.ts (ffmpeg pin tests) and the changelog fragment. Nothing staged, unstaged or untracked. This is CI infrastructure with no new user-facing surface.

Documentation health:

  • README.md: Current (the /design-motion row already says it needs ffmpeg)
  • CONTRIBUTING.md: Current (fork-PR CI image text still accurate)
  • docs/TESTING_INTERNALS.md: Current (the CI image pin text is still accurate)
  • docs/PROJECT_STRUCTURE.md: Current
  • design-motion/SKILL.md: Current (ffmpeg install guidance unchanged)

Coverage debt: none critical. docs/TESTING_INTERNALS.md could add that test/ci-image-cli-pin.test.ts now also checks the CI image's ffmpeg (reference only, optional).

Diagram drift: none.

Test plan

  • bun test test/ci-image-cli-pin.test.ts: 20 pass, 0 fail
  • bun test test/motion-pipeline.test.ts: 8 pass, 0 fail (ffmpeg 6.1.1-3ubuntu5)
  • Remote pregate (Ubicloud, tree c13f8942985d): 3221 tests, 0 failed

…case can run (#3687)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 31, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Frozen in wave github-99ae73c79d3c (branch wave/github-99ae73c79d3c) at a4a51d9. Push nothing here: a moved head drops this PR from the wave. Fixes go on the wave branch through its integrator.

@garrytan garrytan mentioned this pull request Nov 2, 2026
4 of 5 tasks
capy-ai Bot added a commit that referenced this pull request Nov 2, 2026
* test-free-shards: --ci-run --jobs k sub-shards inside one CI job (k=1 default), per-file JUnit counts (GSTA-203 PR 2)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(ci): ship ffmpeg in the eval image so the marathon design-motion case can run (#3687)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* shard-jobs: serial sub-shard gets what is left of the shard wall; register shard-jobs.ts in ship-measure touchfiles

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* shard-jobs: validate every sub-shard summary, bounded JUnit read, stricter --ci-verify records, unique count paths, no serial launch without wall

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* shard-jobs tests: non-hex plan id fixture; harness-version: shard-jobs FREE_ONLY entry is non-behavioral

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(test:free): exact root-bound JUnit path matching; serial timeout text names the wall the parallel phase left

Adversarial pass 2 (GSTA-203 PR 2): a plain relative path now matches a planned
file exactly, and an absolute or ../-prefixed path matches only when its prefix is
the child's root, so an unplanned browse/test/x.test.ts is never credited to
test/x.test.ts. The serial sub-shard's FREE_SUBSHARD_TIMEOUT text says how much of
the shard wall the parallel phase left it.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(testing): real-home tripwire covers --jobs k>1 parallel sub-shards (docs audit docs-203-1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* ci(free): per-shard sub-shard k in the CI plan (--shard-jobs), free_jobs and windows_jobs dispatch inputs (k=1 defaults)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* ci(free-tests): 10 x ubicloud-standard-8 at 4 sub-shards per shard (GSTA-203 PR 3 A/B winner); Windows stays at k=1

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (changelog names main's 20 x standard-4 baseline and the unchanged 80 vCPUs)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(testing): sub-shard default is the plan's per-shard k (docs audit docs-pr3-2)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* ci(free): run the #3680/#3679 BSD-userland regression on macos-named-regressions

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* changelog: macos-named-regressions runs the BSD-userland ubi-runner regression (#3680)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: Windows k=1 applies to the nightly suite since #3806 (docs re-audit after the main merge)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Landed in wave #3846 as v1.92.77.0 (4bbad24), merged from this PR's pin a4a51d9. Integrator changes touching this PR's files: none.

@capy-ai capy-ai Bot closed this Nov 2, 2026
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.

Weekly marathon evals: red lane needs triage

1 participant