Commit graph Vili/scripts/test-gpu-tenancy.mjs
Author SHA1 Message Date
Meta Vens
5050de58b5 Gate: one slot judged where the GPU is taken, own VRAM discounted, truthful placement body, env refusal
acquire() judges at the slot: household signals first (admission), then a held slot (slot);
nothing queues, so a request can no longer wait on the worker lock past a changed gate. While
Vili's job holds the slot, and until free VRAM recovers to its pre-job level (capped), low free
VRAM is not the household's; full-screen and 3D always count. A sample with no resolved 3D
counters is a probe fault and the gate fails closed. The placement 503 carries no gate status.
A malformed VILI_GPU_* override refuses to start, naming the variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 00:19:08 +02:00
Meta Vens
d921731a11 Tests: kill the mutants that were real (threshold edges, stale since, probe argv and respawn timing)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:27:32 +02:00
Meta Vens
d9d396748d Tests: the clear hold counts from the first clear sample
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:24:20 +02:00
Meta Vens
2b5b900eca Tests: free the gate through a real clear hold before asserting transitions
The hold is measured between consecutive samples; a 180 s gap is a stale
probe, not a hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:22:08 +02:00
Meta Vens
54e680f284 GPU tenancy gate: hysteresis gate, probe child and tests
One owner for "may heavy GPU work start": numbers-only samples (full-screen
state, sustained 3D use, host free VRAM) in, { inUse, since, checkedAt,
probeOk } out; fail closed at start and when the probe goes stale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:13:49 +02:00