Repository navigation
fix(demos): pass the build target to parallel demo recordings - #4407
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs/demos/buildrecorded the wrong output whenever it took its parallel path, which it does for any run with more than one non-TUI demo unless--sequentialis passed. #4178 added a positionaltargetparameter torecord_demo, but only the sequential call site was updated. Theexecutor.submit(...)call still passedargs.textandargs.snapshotin the old positions, so:./build docs --snapshotwrote.txttext output instead of updatingdocs/demos/snapshots/*.snap, becausesnapshot_modewas alwaysFalse../build docs --textrecorded GIFs.target=Falseto checkpoint validation.The parallel call now passes
target. Both call sites passtext_mode=andsnapshot_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.