Skip to content

Add a stress run: random input against the real script - #14

Merged
jdotcollins merged 1 commit into
mainfrom
stress-harness
Nov 30, 2026
Merged

jdotcollins merged 1 commit into
mainfrom
stress-harness

Conversation

@jdotcollins

Copy link
Copy Markdown
Owner

Stacked on #13 (the copy check fails without it); GitHub retargets this to main when #13 merges.

tests/stress/run.ps1 [-Minutes 30] [-Vo gpu-next,gpu] [-Mpv ...] [-Seed n] runs tests/stress/stress.lua in its own mpv per renderer: an isolated --config-dir holding copies of tests/integration/shaders and, by default, %APPDATA%\mpv\shaders (the copies get rewritten; your files are not touched), below-normal priority, a 480x270 window. Results land in tests/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-shaders and glsl-shader-opts changes, reload, pause, frame step, resizes.

What it checks: no Lua error or traceback in the log; every glsl-shaders entry 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 reaches glsl-shader-opts; after exit no copies are left.

Results on Windows 11, d3d11, mpv 0.42.0-38:

@jdotcollins
jdotcollins changed the base branch from copy-prune to main November 30, 2026 01:20
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
jdotcollins merged commit c63bdc6 into main Nov 30, 2026
3 checks passed
@jdotcollins
jdotcollins deleted the stress-harness branch November 30, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant