Skip to content

fix(demos): pass the build target to parallel demo recordings - #4407

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-37895028399-demos
Oct 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-37895028399-demos

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

docs/demos/build recorded the wrong output whenever it took its parallel path, which it does for any run with more than one non-TUI demo unless --sequential is passed. #4178 added a positional target parameter to record_demo, but only the sequential call site was updated. The executor.submit(...) call still passed args.text and args.snapshot in the old positions, so:

  • ./build docs --snapshot wrote .txt text output instead of updating docs/demos/snapshots/*.snap, because snapshot_mode was always False.
  • ./build docs --text recorded GIFs.
  • A plain GIF run passed target=False to checkpoint validation.

The parallel call now passes target. Both call sites pass text_mode= and snapshot_mode= by keyword, so the next positional parameter can't shift them.

There's no regression test: the script drives VHS and has no test harness in this repo. The sequential call site, which already passed target, shows the intended argument order. I checked the edit by parsing the script; it hasn't been run end to end.

The parallel path of docs/demos/build called record_demo positionally
without the `target` argument added in #4178, so --text landed in
`target` and --snapshot in `text_mode`. With more than one non-TUI demo,
`./build docs --snapshot` wrote text output instead of updating the
snapshots, and `--text` recorded GIFs. Pass `target`, and name the mode
flags at both call sites so a new positional parameter can't shift them
again.
@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Oct 9, 2026
@max-sixty
max-sixty merged commit 8ad9222 into main Oct 10, 2026
37 of 47 checks passed
@max-sixty
max-sixty deleted the nightly/clean-37895028399-demos branch October 10, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants