Repository navigation
Add a stress run: random input against the real script - #14
Merged
Merged
Conversation
An error occurred while trying to automatically change base from
copy-prune
to
main
November 30, 2026 01:20
tests/stress/stress.lua drives hookdial in a real mpv for a set time: menu keys, the console flows (values, save, load, delete) with valid and invalid input, hot reload with files rewritten, broken and removed, outside changes to glsl-shaders and glsl-shader-opts, pause, frame step and resizes. Every 5 s it checks for Lua errors, unknown or missing glsl-shaders entries and leaked copies; every minute that the menu opens and closes; at the end that a slider change reaches mpv. tests/stress/run.ps1 runs it per renderer in an isolated config folder with copies of the shaders, at below-normal priority, samples memory and checks that no copies are left after exit.
jdotcollins
force-pushed
the
stress-harness
branch
from
November 30, 2026 01:20
ba4256c to
a29c785
Compare
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.
Stacked on #13 (the copy check fails without it); GitHub retargets this to
mainwhen #13 merges.tests/stress/run.ps1 [-Minutes 30] [-Vo gpu-next,gpu] [-Mpv ...] [-Seed n]runstests/stress/stress.luain its own mpv per renderer: an isolated--config-dirholding copies oftests/integration/shadersand, by default,%APPDATA%\mpv\shaders(the copies get rewritten; your files are not touched), below-normal priority, a 480x270 window. Results land intests/tmp/stress/<vo>/:report.txt,memory.csv, stdout and stderr.What it does: weighted random actions 40-250 ms apart: menu moves, adjust bursts, resets, the Enter / save / load / delete console flows with valid and invalid input, hot reload on and off, shader files rewritten, broken and fixed, removed and restored, outside
glsl-shadersandglsl-shader-optschanges, reload, pause, frame step, resizes.What it checks: no Lua error or traceback in the log; every
glsl-shadersentry is a known shader or an existing hookdial copy; at most one copy per shader plus a few; every minute the menu opens and closes on request; at the end a slider change reachesglsl-shader-opts; after exit no copies are left.Results on Windows 11, d3d11, mpv 0.42.0-38:
main(about 4,000 actions each): no crash or script error. Copies reached 184 at once, which led to Delete shader copies that leave glsl-shaders #13.