Skip to content

perf(ci): cut the explainer-video stills render time and close the suite-budget gaps #16211 left #16217

Description

@kyle-sexton

Problem

plugins/explainer-video/scripts/explainer-video.test.sh ran 302 s, 318 s, 319 s and 322 s in CI on 2026-11-14 against its 300 s per-suite ceiling, failing two whole-tree main runs (43624597608, 43628488147) and ejecting #16189 and #16199 from the merge queue. #16211 raised its ceiling to 480 s under the documented exception rule. That stops the failures and leaves the cost: one suite takes over five minutes of a leg.

What is left

  1. Cut the suite's render time. The time is in class Renders of plugins/explainer-video/scripts/test_explainer_video_stills.py (line 115), which asserts 3840x2160 output and runs the stills renderer in setUpClass and again inside three tests. UNVERIFIED how the 300+ s splits across those renders: the builder of fix(ci): give the explainer-video suite its measured time and its 480 s row #16211 measured the suite's other 89 tests at about 7 s locally, and no per-test CI timing was read. Options to weigh: render once in setUpClass and reuse it, or render at a small size for the tests that only check structure and keep one 4K render for the test that asserts resolution.
  2. Remove the 480 s row for this suite from scripts/suite-budget-exceptions.txt and refresh its scripts/suite-seconds.txt row once its median is under 150 s (the file's own rule).
  3. plugins/guardrails/hooks/block-root-delete-target.test.sh is listed at 202 s (scripts/suite-seconds.txt:272) and has no exception row, although scripts/suite-budget-exceptions.txt:9-11 says every shell suite over 150 s has one. Either add the row or re-measure the suite after its split and correct the seconds.
  4. lib/media-render/media-render.test.sh has no scripts/suite-seconds.txt row. It arrived with the same change as the stills tests (feat(explainer-video): render a storyboard to a narrated 4K stills video on a shared media library #16090) and gets the same media toolchain (scripts/plan-test-lanes.sh:402). Measure it on a whole-tree run and add its row. UNVERIFIED whether it is slow.
  5. Stale counts in the docs. scripts/README.md "Per-suite time budget in CI" says "Twelve shell suites are over it" and "The ten suites with a median over 150 s"; the exceptions file holds 6 rows. .github/workflows/pr-require-checks.yml:175 calls a 241 s suite the longest. Point the README at the file instead of a count, and correct the workflow comment.

Done when

  • explainer-video.test.sh has a median under 150 s over three whole-tree main runs, with the same assertions still made at least once.
  • Its 480 s exception row is removed and its suite-seconds.txt row holds the new median.
  • Every shell suite over 150 s in suite-seconds.txt has an exception row, or its seconds are corrected from a current run.
  • lib/media-render/media-render.test.sh has a measured suite-seconds.txt row.
  • scripts/README.md and pr-require-checks.yml:175 no longer state a count or a longest suite that the files contradict.

Related

Activity

  1. added
    needs-triage
    on Nov 14, 2026
  2. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none

    Understood: #16211 raised the explainer-video suite's ceiling to 480 s. This issue asks to cut the stills render time in test_explainer_video_stills.py, drop the 480 s exception row, and refresh suite-seconds.txt. It also covers the guardrails suite at 202 s with no exception row, the missing media-render.test.sh row, and the stale suite counts in scripts/README.md and pr-require-checks.yml:175.

    Nothing is missing that blocks the work. Per-test CI timing would settle how the 300+ s splits across renders, so reading it first is a sensible step. The "three whole-tree main runs" and the media-render measurement need a CI run and can't be done in this lane. I found no duplicate and no merged pull request that already does this. #16155 and #16211 are related context.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 14, 2026
  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"db32bc94a6fec48b619e3ffe6d713afbd86c6232cabd0c7541c68263fe9e349d","body_sha256":"3cb3eb0197f06364611a2db98d621dba0b6c6a7d3e89286f6b0fb7d1729e041f"}

  5. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor
    No description provided.
  6. added
    host-run
    on Nov 14, 2026
  7. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (patch-protected-path): the change needs a path the issue lane may not push, which a maintainer session builds by hand.
    It added host-run and set Work status to confirmed: an agent run on a host builds it, and it waits on no decision from a person.

    In the run's words:

    The run stopped early (patch-protected-path): its change needs a path the issue lane may not push, which a person changes instead. In the run's words: patch-protected-path: .github/workflows/pr-require-checks.yml (the issue's done-when item 5 requires correcting the comment at line 175, which calls engine.test.sh at 241 s the longest suite; this lane cannot push a change under /.github/workflows/**). Done-when item 1 also needs medians from three whole-tree main runs, which this lane cannot produce.

    What the run says it did not do:

    • All five items of the issue: nothing was edited, because one required change is under a protected path (.github/workflows/pr-require-checks.yml). A person, or a lane allowed to change workflows, has to make that edit. The other items (stills render cut in…
    • Repository checks (check-changelog-fragments, check-changed-skills, check-affected) were not run, because the working tree is unchanged.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43629891493

    To hand it back to the lane, remove host-run and set Work status to agent-ready again.

  8. removed
    host-run
    on Nov 15, 2026
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

    No labels
    No labels

    Type

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions