Skip to content

fix(ci): give the explainer-video suite its measured time and its 480 s row - #16211

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/split-explainer-video-suite
Nov 14, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/split-explainer-video-suite

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Closes #16198

Summary

Main's full CI run 43624597608 failed at Test Bash (1):

plugins/explainer-video/scripts/explainer-video.test.sh took 318s, over its 300s per-suite ceiling (scripts/README.md, Per-suite time budget in CI)

No assertion failed: the log shows Ran 95 tests in 317.866s and PASS. Merge-queue run 43621221444 failed the same way at 322 s, and merge-queue run 43625920814 at 302 s, ejecting #16189 and #16199. The main run's second attempt passed, so the suite passes or fails by a few seconds from run to run.

This change raises this one suite's ceiling from 300 s to 480 s under the repository's documented exception rule. The suite's scripts/suite-seconds.txt row still said 7 s, a figure from before the stills module joined the suite, so the suite never got the exception row its real time calls for.

Fix

  • scripts/suite-seconds.txt: the plugins/explainer-video/scripts/explainer-video.test.sh row goes from 7 to 320 s. 320 s is the median of the two measured CI times, 318 s and 322 s. The header records the source runs the same way it records every other refresh.
  • scripts/suite-budget-exceptions.txt: a new row, plugins/explainer-video/scripts/explainer-video.test.sh 480. It sits under the standing comment "Each shell suite whose scripts/suite-seconds.txt median is over 150 s, half the default ceiling, at 480 s", in path order.
  • No test, runner, planner or workflow changes.

Where the time goes:

  • About 310 s of the suite is one class, Renders in plugins/explainer-video/scripts/test_explainer_video_stills.py.
    • CI ran 95 tests. The suite's other modules, plus the stills Refusals class, are 89 tests, and they take about 7 s run locally without Playwright.
    • That class runs five full 4K stills renders: two in setUpClass (lines 123 and 126), and one in each of test_each_chapter_part_of_a_split_video_names_the_sha256_of_its_bytes (line 174), test_each_screenshot_is_published_with_its_own_scanned_sidecar_inside_the_output (line 199) and test_stylesheet_and_stitcher_come_from_configuration (line 228).
  • Splitting the wrapper by module would leave the stills module alone over 300 s.
  • Splitting it by test method would repeat setUpClass's two renders in each part. It would also need a planner change, because scripts/plan-test-lanes.sh:402 gives the Playwright toolchain only to this exact suite path.
  • Cutting the render time is left to a follow-up.

Verification

Suites that read either file, each run directly with bash from this worktree:

Suite Result
scripts/run-plugin-tests.test.sh PASS=238 FAIL=0, including "every suite-budget-exceptions.txt row names an existing suite and a ceiling"
scripts/plan-test-lanes.test.sh PASS=63 FAIL=0
scripts/lint-shell-filter.test.sh PASS=16 FAIL=0
scripts/selection-audit.test.sh PASS=20 FAIL=0

Checks:

  • scripts/check-affected.sh --no-fetch: 11 passed, 7 skipped.
  • scripts/check-changelog-fragments.sh --check-required origin/main: no fragment required.
  • The pre-push hook passed.

An independent reviewer read the runner and planner: the row's path and format match what scripts/run-plugin-tests.sh:383-395,594 reads, the suite lands first on whole-tree leg 1, and that leg stays under the job's 15-minute timeout at the 480 s ceiling. This pull request's own CI does not select the suite (its two files select 32 other shell suites), so the first proof is a merge-queue or whole-tree main run.

Before and after:

  • Before: the suite's TIME: line was 318 s and 322 s against a 300 s ceiling, so the leg failed.
  • After: in the next whole-tree main run, the suite's TIME: line should be near 320 s. Look for a SLOW: warning annotation (over 120 s) and no FAIL: ... per-suite ceiling error.

Related

  • The stills renders came in with #16090.
  • scripts/README.md "Per-suite time budget in CI" says "The ten suites with a median over 150 s start there at 480 s". The exceptions file held 5 rows before this change and holds 6 after it, so that count was already stale. This change leaves the README alone.

session: GitHub Support

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 14, 2026 13:24
… s row

plugins/explainer-video/scripts/explainer-video.test.sh took 318 s on
main run 43624597608 and 322 s on merge-queue run 43621221444, both over
the 300 s default per-suite ceiling. Its scripts/suite-seconds.txt row
still read 7 s, from before the stills module joined the suite, so it
never got the exception row its time calls for.

- scripts/suite-seconds.txt: the row goes from 7 to 320 s, the median of
  those two TIME lines; the header records the source runs.
- scripts/suite-budget-exceptions.txt: a 480 s row under the standing
  rule that every shell suite with a median over 150 s gets one.

About 310 s of the suite is the Renders class of
test_explainer_video_stills.py: five 4K stills renders, two in
setUpClass and one in each of three tests. Cutting that time is left to
a follow-up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run 43621221444 is a merge-queue run and 43624597608 is a whole-tree
main run; the suite-seconds.txt header called both main runs.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 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-14T18:40:54.954159Z de3c470 PR opened
ℹ️ 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-security-review reviewed de3c4706704ceeb3b93603af9f683405c756ed36: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read both changed files in full in the diff:

  • scripts/suite-budget-exceptions.txt adds one row, plugins/explainer-video/scripts/explainer-video.test.sh 480. This raises that test suite's CI time limit from the default 300 s to 480 s.
  • scripts/suite-seconds.txt changes the suite's measured median from 7 to 320 and updates the header comment that names the source CI runs.

Neither file is under a trusted path. Both are data files that the test runner and lane planner read to schedule suites and enforce time limits. The change touches no trust control: no trusted-actor list, token scope, kill switch, merge hold or untrusted-text path. It also changes no plugin manifest and no instruction text. No attacker input reaches these values, and nothing in them is a secret or a command. Raising one suite's time limit cannot leak a token, compromise a machine, or start a charge.

The change spends a little more GitHub Actions time: one suite may now run up to 480 s instead of 300 s on the existing standard runners. Nothing in it changes a paid plan or a runner tier, so this is not a hold.

PR text check: the description contains no instructions aimed at this review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR changes two data files and no code:

  • scripts/suite-seconds.txt: the plugins/explainer-video/scripts/explainer-video.test.sh row goes from 7 s to 320 s, and the header records which runs the figure came from.
  • scripts/suite-budget-exceptions.txt: a new row gives that suite a 480 s ceiling.

What I checked

  • Exceptions row. The format <suite> <ceiling-seconds> matches the file's own header. The row is in path order. It sits under the standing comment "Each shell suite whose scripts/suite-seconds.txt median is over 150 s … at 480 s", and 320 s is over 150 s, so the rule covers it.
  • Effect on the planner. In scripts/plan-test-lanes.sh#L375-L429, the new 320 s figure feeds into how runs are split into legs:
    • The suite is not on scripts/run-plugin-tests-serial.txt, so it runs three at a time with other suites. Its load in the estimate is 320 plus two thirds of 960.
    • On a whole-tree run the planner always uses 12 legs. Sorting longest first, it puts this suite on a leg of its own early on.
    • The mediarender toolchain still follows the exact path at L402.
    • Side effect: the default estimate for shell suites with no row in the file rises slightly, because it is the mean of the listed suites. The planner is designed to work that way.
  • The 320 s figure. It is the median of the two failing times quoted from CI, 318 s and 322 s. Those numbers are the author's, and I did not check them against the run logs.
  • The PR's Verification table. The author reports the suites that read these files pass. I had no shell, so I ran none of them.

Closing issue #16198. It gives an expected behavior but no formal acceptance criteria. That behavior is that a merge-group run of an unrelated change passes this suite. Raising the ceiling from 300 s to 480 s gives the measured 302–322 s runs about 160 s of headroom. No test checks that a suite whose suite-seconds.txt median is over 150 s has a row in suite-budget-exceptions.txt. That is why this row was missing while the suite's figure stayed at 7 s. Adding such a check would be a separate change, so I don't count it as a finding.

Advisory (pre-existing, not counted). scripts/README.md#L87-L89 says "ten suites" start at 480 s. The exceptions file now has 6 rows. The PR description already points this out, and this PR leaves the README unchanged.

Spend (not a hold). The higher figure can give pull-request CI runs that select this suite one more test-bash leg. That costs Actions runner time on standard runners and is not a billed resource change.

No embedded instructions were found in the PR context. The review was not blocking only, since this lane had reviewed no earlier head.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 8f85b0d Nov 14, 2026
65 checks passed
@kyle-sexton
kyle-sexton deleted the fix/split-explainer-video-suite branch November 14, 2026 18:58
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 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.

explainer-video.test.sh ran 322 s in a merge-group run and failed its 300 s ceiling, ejecting an unrelated green PR

1 participant