Commit Graph
51 Commits
Author SHA1 Message Date
Anees Iqbal a61d480d1f 🆕 Show the share of Mission Control's short gaps in the gate
A Mission Control drag's composites_s alone does not tell a display held to
60 Hz from boot-to-boot noise. The share of the gaps inside its animations
that are under 12.5 ms (an update one 120 Hz refresh after the one before)
does, in one boot: car 12's boot reads 2% and its bench 4%
(mission-cadence.py over its launch.log), where older cars read 24-40%.

msi-drag.py writes it on the mission line as short_gap_pct, the same measure
as c13-mission's mission-cadence.py, and report.py shows it in the
drag.mission row and records it as drag.mission.short_gap_pct.
2026-11-05 22:01:22 -08:00
Anees Iqbal e69db23b24 🐛 Compare the drags' CPU rows only across one counting rule
6b1ecb8d0 counts a drag's qemu_cpu from QEMU's own utime+stime and its
gfx_cpu from each graphics thread's last reading, where the rule before
counted nothing of a thread born or gone inside the window. The gate kept
comparing the two: car 12's report read Mission Control's gfx_cpu as 13.1%
against car 11's 1.7% (+671%), where every run of the new rule reads 12.8 to
13.5% on every tip (f6e1ef077 twice, 6f8118d14, 4f4dd6cc7, c9e12d30c,
7a0aa80a9 twice) and the old one read 1.4 to 4.3%.

msi-drag.py now writes cpu_rule=2 on each line, and report.py shows a drag's
qemu_cpu or gfx_cpu row against a baseline of another rule as not
comparable, either leg's. A line with no cpu_rule is rule 2 where the run's
drag tool is 6b1ecb8d0's (9ea504722f4bdd50), else rule 1. The update counts
and gaps did not change with the rule and are compared as before: a drag
tool hash alone would have hidden car 12's Mission Control drop.

On one scale: an old run's qemu_cpu on rule 2 is cpu.txt's QEMU utime+stime
over the drag's 10 s (a whole number of Control-Up periods for Mission
Control); on the new rule's runs that reads within 2% of the column (one
within 9%). An old run's gfx_cpu has no such record: it stays rule 1.
2026-11-05 22:01:22 -08:00
Anees Iqbal 037fc84fed 🆕 Run a gate's own probes last in its correctness boot
Car 12's capacity checks need the app load's desktop and must not cost a
boot of their own. --post-probes DIR ships DIR with the build and runs its
probes after everything the correctness boot measures and checks, as a probe
round runs them, growing the hold by their budgets. The report lists each as
INFO; their fatal lines count in the boot's.
2026-11-05 22:01:21 -08:00
Anees Iqbal 39bed847fd 🐛 Fail the app load's WindowServer item when its peak is over the reserve
appload.windowserver passed whatever WindowServer held: car 11's gate passed it at 169.7 MiB
of its 160 MiB reserve. It now fails (INFO under appload-info) where ws_max_kib is over
ws_reserve_mib, and says by how much.
2026-11-05 22:01:21 -08:00
Anees Iqbal 55a6a0ea00 🆕 List the crash reports a gate boot wrote before its desktop came up
guest.crash-reports compares against a baseline taken once the desktop is up, so a crash
during boot or login never showed. run_info now lists the reports whose mtime is at or after
kern.boottime, and the report shows them as guest.boot-crash-reports, an INFO item that
does not gate.
2026-11-05 22:01:21 -08:00
Anees Iqbal 641e933b1b 🐛 Keep builds off the lane host through the gate's correctness boot
The correctness boot times drags, presents and WebGL frames, but as a shared
boot it took no host quiet, so a build could run beside it: one ran through
ring0-ctl's app load (the package at 105 C). It now holds host quiet for
QEMU's life as the bench boot does (rgk-boot2.sh's RGK_QUIET), and the report
tags its timed rows where the wait for running builds ran out.

Items of a phase --phases left out of the correctness boot are NOTRUN, not
missing: a run that names its phases is incomplete, not failed.
2026-11-05 21:59:30 -08:00
Anees Iqbal 1ac1967976 🆕 Record the host CPU's heat in each lane boot and mark throttled rows
msi's CPU package throttles for seconds at a time under builds (2.7 h in 2 days,
103 C), which moves CPU-bound numbers. Each boot now samples the package's
temperature and the throttle counters once a second (thermal.txt), records
them with uptime beside the free memory at QEMU's start and what they grew by
at the end (host.txt), and the report marks a timing row whose phase, drag or
bench case saw the package throttle as throttled, not compared, and leaves it
out of a baseline's median.
2026-11-05 21:59:30 -08:00
Anees Iqbal c7f6e0b451 🆕 Show each GPU-bound bench row's power state beside the baseline's
The driver drops a lightly loaded GPU to P8 (405 MHz) within seconds, where
GPU-bound numbers read up to 8x slower. The report already leaves out reps
under 2000 MHz (KNOWN-clock); each GPU-bound row now also shows its power
state and core clock beside the baseline's, so a row that moved with its
clocks reads apart from one that moved with the code.
2026-11-05 21:59:30 -08:00
Anees Iqbal 284e0dfd51 🐛 Gate the bench's numbers on bench.m's hash alone
The bench's metrics were tied to one hash of the sweep's sources and bench.m
together, though bench.m builds alone. Car 9 changed only sweep_ca.m, so its
draws.10k fall of 61.7% against car 8 went ungated as 'its tool changed since
the baseline'. tools.txt now records bench.m's own hash, and a run recorded
before it falls back to the combined one.
2026-11-05 21:59:29 -08:00
Anees Iqbal b71d521f9c 🆕 Read an older run's idle from 2 s in its report
A run whose payload predates the guest's idle settle (car 8's bench) counts
the phase before's teardown in its idle window: 31.9% where 2 s on reads
12.2. report.py RUN --idle-skip 2 reads it as --reidle recorded it, so its
report compares with the re-recorded baselines.
2026-11-05 21:59:28 -08:00
Anees Iqbal 4a734e2f3f 🆕 Rate the host's work counts over the bench's drags and WebGL
The runtime's shadow path (shadowed textures, copies and texels each way,
merges planned, fetched and kept, keeps) is to be measured per WindowServer
command buffer and per display update. The bench's host log now enables
reims_vgpu::work at debug, whose lines (one a second: the runtime's counts
as deltas, and each guest context's command buffers and render encoders)
host-events.log keeps; each drag line carries its window's ends; and
report.py sums the lines whose second lies in the plain drag, the glass drag
and the WebGL phase, WindowServer being context 1.
2026-11-05 21:59:28 -08:00
Anees Iqbal 38b7d0716b 🐛 Settle the guest before its idle phase opens
The bench's idle phase opened right after present_probe ended, whose teardown
takes 77-145% of a CPU for about a second, so where the first CPU sample fell
set qemu_cpu.idle: 14.6, 19.9 and 24.6% for cars 5-7, all 11-14% from 2 s on
(aud-waits). The guest now waits 2 s before the phase opens, and
report.py --reidle reads an older run's recorded idle from 2 s into the
phase, so its baselines compare: car 5 14.1, car 6 11.7, car 7 11.1.
2026-11-05 21:59:28 -08:00
Anees Iqbal 8367b3a346 🐛 Fail the cargo step when nextest wrote no results
Car 8's gate stopped its cargo run while it waited for the Mac's GPU, and the
report still showed step.cargo and cargo.tests as PASS, cargo.tests with an
empty line, because errexit does not reach inside a step's function. The step
now fails when nextest wrote no junit.xml, and the item fails when the run
left no summary.
2026-11-05 21:59:28 -08:00
Anees Iqbal eb1ac6d2f3 🆕 Gate QEMU's CPU in the bench's WebGL phase
Car 7's bench took 353% of a CPU in it against car 6's 247%, which no item
flagged. It is now gated as the idle and full-screen phases are, lower being
better, within 25% or twice what repeated runs showed.
2026-11-05 21:59:28 -08:00
Anees Iqbal 58d4bbce2a 🐛 Count block-cache stalls only from kext lines that were read
A boot whose kernel-ring reader read none of the kext's lines (car 7's gate
boot, which still read the empty log store) counted 0 stalls and passed. The
item is now NOTRUN when no kext line was read. A capture probe round counts
the stalls over its whole boot as well, and prints them with its capture.
2026-11-05 21:59:28 -08:00
Anees Iqbal 1eb1dd450a 🐛 Read the kext's lines from the kernel's ring, not the log store
Car 7's capture kept an empty kext log, and the texture-create stall check
counted from the same place. The kext writes with IOLog, which reaches only
the kernel's 128 KiB ring and no log stream, and a busy desktop rolls that
ring over in a minute or two. From the desktop on, the correctness boot and
a captured boot now take the ring's Rgfx, RGFX and ReimsGraphics lines
every 5 s (kring.raw, then once each in kernel-rgfx.log). A bench boot
takes them only at the desktop and at its end. The guest's boot time and
clock against the host's put each line's uptime on the host's clock. The
stall check and the capture's scanout-mode check read those lines, and the
stall item says from which uptime they reach. Tested on car 7's running
guest: 26 lines from 272 s of uptime, its earlier ones gone.
2026-11-05 21:59:28 -08:00
Anees Iqbal 1b360de0d9 🆕 Note the kwin reaper beside each boot's display state
kwin held closed windows' buffers on msi until its scale effect was
reloaded, which a user service (kwin-reaper) now does every 5 s while no
output is on. Read without it, a boot's VRAM numbers mislead. host.display
now says whether the reaper is active at the boot's start and end, and
kwin-reaper.txt keeps its log lines from the boot's span. The item gives
their count and the GPU memory after the last reload.
2026-11-05 21:59:27 -08:00
Anees Iqbal bea066a79e 🐛 Measure Mission Control over its animations, not 0.8 s windows
Car 6's bench gave Mission Control 16 display updates a second and a
512 ms gap p99. Each 0.8 s window after a Control-Up held the animation
and then its idle tail, so the tail made the gap and pulled the rate down.
Each animation is now measured from its first display update after the
key to its last in the window: the rate and gaps inside the animations,
their median length (anim_ms), the wait for the first update (start_ms),
and how many keys gave an animation. The live resize also states the
range its window's width and height took.
2026-11-05 21:59:27 -08:00
Anees Iqbal ecb1729889 🆕 Run rgk-ctx-slots' app load in the gate's correctness boot
The context-cap lift and the work after it are meant to hold a desktop of
about 75 processes, which only a busy desktop shows. After its
measurements, the correctness boot now runs rgk-ctx-slots' app load
(HOG=0) on its own guest: every app in the guest, then 7 WebGL and WebGPU
pages in Safari from the guest's localhost, with the guest's default
route deleted first. msi-appload.sh follows appload.sh's steps on a copy
of its tools taken at each ship, and writes analyze-load.py's summary
beside appload.txt. The report's bar: no region or context refusal from
the kext, no crash report in the apps phase, no fatal line. It also
records WindowServer's blocks and MiB against its 160 MiB reserve. The
load runs where the hold has about 6 minutes left. --no-appload leaves it
out, and --appload-info WHY reports a miss of the bar as INFO, for a
baseline taken before the bar holds.
2026-11-05 21:59:27 -08:00
Anees Iqbal b51db36f66 🆕 Count the guest's texture-create stalls and note the host's display
A stall where a texture's previous block is still cached and its release
unanswered ("its previous block is cached still, its release unanswered:
it is not cached") costs about 2 s, and is a likely cause of the boot's
flicker. Each gate and bench boot reads the guest's log of them
(senderImagePath CONTAINS "ReimsGraphics"), times each hit against the
desktop's coming up on the host's clock (kext-stalls.txt, also in the
boot capture), and guest.block-cache-stalls fails on a hit in the 60 s
after the desktop came up. The capture's kext log takes the same
predicate.

The host's display state may move the drags' numbers, so each boot also
records the lid and kwin's outputs (kscreen-doctor) at its start and end,
in host.display.
2026-11-05 21:59:27 -08:00
Anees Iqbal 4aaf9faf40 🆕 Capture what a gate boot's display showed as it booted
A boot's progress bar flickered between older and newer frames past the
kext's handoff, and a Dock icon showed another app's icon until the boot
settled. QEMU's screendump of reims-graphics-pci is empty, so with
--capture-boot the correctness boot keeps, on the lane host:
- the guest's scanout before WindowServer's IOSurfaces take the display,
  its middle third of rows read from QEMU's memory every 100 ms (the
  allocations RAM block's host address from HMP's info ramblock, then
  /proc/PID/mem as root), each frame that differs zstd-compressed, with
  host times;
- the guest's own screenshots (Command-Shift-3 over QMP) once a second
  from the host's first present until 60 s after the desktop is up, with
  the guest's file times and its clock's offset;
- the kext's log lines of the boot, whose scanout line checks the mode the
  reader assumed.
The boot also fetches xid.txt, which report.py's host.no-xid reads.
2026-11-05 21:59:27 -08:00
Anees Iqbal 51155622e4 🆕 Measure a live resize and Mission Control beside the drags
Probes have no input, so the gate's boots are where a desktop that moves is
measured. msi-drag.py gains two cases after the drags: resize resizes a
TextEdit window live by its bottom right corner along the drags' path, and
mission opens and closes Mission Control with Control-Up once a second.
Each counts only where the desktop did what was asked: the window's size
followed the pointer (winmon track ... size), or the display updated after
a first Control-Up. Mission Control's numbers are over the 0.8 s after
each key, with the first update's wait beside them. winmon also lists
every layer's windows (winmon all), which the log shows for Mission
Control. The drags' own measurement is unchanged.
2026-11-05 21:59:27 -08:00
Anees Iqbal d6be4957bc 🆕 Keep a tainted boot's numbers out of baselines and bands
Someone using a guest while a boot measures moves its drag, present and
timing numbers, while its correctness items still hold. A run's
tainted/LEG file (LEG boot or bench) names why: report.py then shows that
boot's numbers as TAINTED, compares them with nothing, and leaves them out
of every baseline's median and noise band. Its items and its host's counts
still decide.
2026-11-05 21:59:27 -08:00
Anees Iqbal a1299c3348 🆕 Fail a boot on an Xid from its own QEMU, and log probes' presents
The NVIDIA driver logs its GPU errors as the kernel's NVRM Xid lines: an
Xid 109 (CTX SWITCH TIMEOUT) from a QEMU on the lane host showed only in
dmesg. msi-xid.sh reads them over a span with each one's number, pid and
process. msi-boot.sh records the boot's in xid.txt, and report.py's
host.no-xid fails a boot on one from its own QEMU and names the other
processes'. That covers gate, bench and probe boots, and each probe also
gets its own span's lines.

Probe boots log reims_graphics at trace: the display's PRESENT_SURFACE
lines, its only trace site, so a probe's host.log slice counts composites
(about 23 lines a second at 120 Hz). Gate and bench boots stay at info.
2026-11-05 21:59:27 -08:00
Anees Iqbal 3f563d9752 🆕 Run oracle_icb's checked cases as the gate's icb phase
The guest's ICB paths (ICB_SLOTS among them, bit 17) had no check in the
gate: nothing in the sweep encodes an indirect command buffer. The gate now
builds oracle_icb with its metallib into the guest's payload where the tree
has it, and the correctness boot's icb phase runs its render, compute,
ranges, reset, gpu and timing cases. Each case is an item that fails where a
result is not what Metal draws or dispatches, where the barriered dispatches
came out wrong, or where its child died or exited nonzero; the timing case's
CPU encode costs at 1024 and 16384 commands and its execute time are metrics.
2026-11-05 21:59:27 -08:00
Anees Iqbal 2cad8b4829 🆕 Count a tip's new host paths in the gate's correctness boot
A tip that adds a path the guest takes is checked by the host's records of
it: QEMU's log gives the queues made unshared, the SUBMIT_ROOM records
posted (at debug, reims_graphics::room, which --host-log turns on for the
correctness boot) and the ICB_SLOTS messages whose runs were not all carried
out. They are the boot's host metrics, and guest.features names the bits the
kext took by number.
2026-11-05 21:59:27 -08:00
Anees Iqbal a2b4697743 🆕 Check named decode streams again within the same boot
hevc-main10-720p-closed matched 54 of 90 frames on 553660eb3 after passing
on every earlier gate, and one boot cannot tell an intermittent mismatch from
a steady one. decode-repeat.txt in the gate's home ("SET STREAM N" a line)
now goes into the guest's payload, and the decode phases check each named
stream N times more, as STREAM.r2, STREAM.r3 and so on. A later run without
the repeats misses nothing its baseline had.
2026-11-05 21:59:27 -08:00
Anees Iqbal f11061ee3f 🎨 Count a failed boot once, not once for each item it holds
A boot that failed before its guest ran listed every item the baseline had
as "missing, where the baseline passed": a6e722f47's payload copy failure
gave 104 failed items for one cause. Its items are now NOTRUN, "step.boot
failed before it", and step.boot is the one failure.
2026-11-05 21:59:27 -08:00
Anees Iqbal 2e372e1b24 🎨 Judge the bench at 2400 MHz, on the readings around each span
Under load msi's 5080 runs its core at 2392 to 2805 MHz in its high mode, 1.2
to 1.5 GHz under the power cap and 1.75 to 2.38 GHz in P4 from idle: 2400 MHz
separates them, where 2500 threw away high-mode repetitions. nvidia-smi's
clocks change only about every half second, so a span is judged on the
reading before it, those inside it and those up to half a second after it.
The report shows each GPU-bound number with the median core clock it ran
at (around what qualified), so a band's spread reads against the clock.
2026-11-05 21:59:27 -08:00
Anees Iqbal af6b18cac4 🆕 Judge every GPU-bound bench case per repetition
bench -v is to print repetition lines for compute.fma, blit.256m, sample.tex
and mps.sgemm too ("# rep NAME R at S s: MS ms, key=value ..."): reps.py
reads them as it reads the frame cases', report.py takes each of the case's
numbers as the median of its repetitions at the high clock, and benchretry
runs any such case with none again. A bench build without those lines keeps
the whole-window judgment. benchretry now stops starting cases when the hold
has less than 300 s past it, for the phases after it and the drags.

frag.fill's two modes were the core clock under the power cap, so its
KNOWN-bimodal rule now holds only for samples without clock data; a sample
with clock data compares and bands its qualifying number like any other.
2026-11-05 21:59:27 -08:00
Anees Iqbal d5d9fff905 🆕 Judge the bench's GPU cases by the core clock, per repetition
msi's 5080 holds its core at 1.2 to 1.5 GHz under its power cap, 2 s into
some starts and about 10 s into sustained load, for up to 12 s, and the frame
cases follow the core clock rather than the P-state: the 12 s warm-up put the
frame cases inside that window. The bench phase now runs without it, prints
each frame case's repetitions (-v), and the host samples the clocks every
100 ms. reps.py keeps a GPU-bound number only from time the core ran at
2500 MHz or more throughout: a frame case's from its qualifying repetitions,
counted in the report, any other case's where its whole run did. Where a frame
case got none, msi-boot.sh runs it again for 20 s (benchretry, at most two
rounds within the hold). A case with none is KNOWN-clock, and bands and
baseline medians come only from qualifying numbers.

A bench boot beside a build (HOST_NOT_QUIET) now keeps its GPU-bound numbers;
its CPU-bound ones (draws, upload, readback, present timing, drags, decode,
WebGL) are tagged, compared with nothing and left out of bands and medians.
The boot's waits now split the GPU lock's wait from the quiet wait, which
run.sh takes after the lock.
2026-11-05 21:59:27 -08:00
Anees Iqbal 3cee2bc225 🆕 Read each bench case beside the GPU's power state
msi's RTX 5080 holds P4 (core 1222-1447 MHz, memory 9001 MHz, against P0's
2767-2805 and 14001) for 1-8 s after a software power-cap event, even under
full load, which halves frag.fill and moves every bench number. The bench
boot now warms the GPU for 12 s of full load before its cases, its lines
reach the host as they come (grep --line-buffered), and msi-boot.sh samples
nvidia-smi's power state and clocks four times a second over the guest's
run. The report reads each bench case's state and median clocks from its
span; a number whose case ran below P0 is KNOWN-pstate and not compared, and
a bench number's baseline and noise band come only from samples at P0. The
bench leg also ships the lane host's scripts again, as it may start long
after its run shipped them.
2026-11-05 21:59:27 -08:00
Anees Iqbal c5a28ff7df 🆕 Summarise the guest's new crash reports in the report
A crash report the guest wrote during the run was named and nothing more,
and it went with the boot's overlay: 40981b303's sweep crashed at
imageio.heic and nobody saw its frames. The final phase now prints each new
report's exception and the faulting thread's top frames (ips-summary.js), and
the report puts them in guest.crash-reports.
2026-11-05 21:59:27 -08:00
Anees Iqbal 9617af7b3e 🆕 Hold frag.fill's slow mode as KNOWN-bimodal, out of the band
frag.fill.2160p's GPU time doubles from one boot to the next (134 or 256
Gpix/s on msi's 5080), host quiet or not, which rgk-fill owns. A value in
its slow mode is KNOWN-bimodal and decides nothing, any other is compared with
the baseline's fast mode (its best sample), and the metric gives no noise
band: two modes are not noise.
2026-11-05 21:59:27 -08:00
Anees Iqbal 9289876235 🆕 End a known failure at the commit that fixes it (fixed_by)
A known-failures entry can name the commit that fixes its failure; it then
holds only for commits without that fix, so a run of an older commit, whose
report a detached bench leg writes again later, keeps its verdict while every
commit with the fix must pass the check.
2026-11-05 21:59:27 -08:00
Anees Iqbal ef35366ccf 🆕 Decode rgk-video's odd sizes and crops in the gate
The gate's decode sets held 7 H.264 and 14 HEVC streams; rgk-video lands
31, adding 5 of each codec at odd sizes and crops (1280x722, 1366x766,
1366x768, 854x480, 720p cropped at the top left). The odd streams are copied
into the corpus's odd/ directory from MSI_CORPUS_ODD and decode as the sets
h264-odd and hevc-odd, whose codec the report takes from the set's name.
2026-11-05 21:59:27 -08:00
Anees Iqbal 77279a8040 🐛 Count a boot's hold from GPU_HELD and its time from QEMU's start
msi-boot.sh counted the hold and the boot's time from run.sh's start, which
includes run.sh's waits for host quiet and the GPU lock: a boot queued 9 min
behind exclusive runs got 12 s of guest time, and 15c73f2b5's boots read as
455-647 s to SSH where QEMU took 22-24 s. A watch on QEMU's log now takes the
times of HOST_QUIET and GPU_HELD; the hold counts from GPU_HELD, the boot's
time from QEMU's first timestamped line, and the turn's, quiet's and GPU's
waits are numbers of their own. Each boot also records its timeline from
QEMU's start: the host's first present, and from the guest the kernel's boot
and WindowServer's, loginwindow's and Dock's starts.
2026-11-05 21:59:27 -08:00
Anees Iqbal cae51d47fa 🎨 Build on the lane host in host quiet; band only quiet samples
The lane host now keeps builds off its CPU and memory while a measured boot
runs (build-quiet.sh, which rgk-boot2.sh's exclusive boots hold against). The
gate's own msi builds, the host build and gpuload, go through it. Each boot
records whether its hold was quiet (HOST_QUIET or HOST_NOT_QUIET in QEMU's
log), the report shows it with the host's load average beside every bench
sample, and the noise band is measured only from samples taken in host quiet:
two exclusive samples of one commit beside builds differed by up to 2x.
2026-11-05 21:59:27 -08:00
Anees Iqbal f1239a5563 🆕 Measure beside a fixed GPU load (--load)
Numbers from a shared boot carry the other VMs' unknown load, and a
regression that shows only under contention (a slow or missed wake) needs a
load that is the same each time. gpuload, a headless Vulkan compute loop built
on the lane host, keeps the GPU busy a fixed share of every 10 ms; the bench
boot starts it by its pid before the guest's run and stops it after the drags,
and records the duty it reached. --bench-phases picks the bench boot's
phases. Each boot also records the host's load average beside its
measurements: other work's CPU and memory use, which the GPU lock does not
cover, moves the numbers of the Vulkan platform's imported host RAM.
2026-11-05 21:59:27 -08:00
Anees Iqbal fcb15a671b 🆕 Boot a published host build against a commit's guest (--host)
A control for a commit whose numbers moved: the same guest image on another
tip's host build changes one variable, the host and its runtime. The bench
boot also runs WebGL's frame rate and present_probe first, the quickest read
of a tip's frame pace.
2026-11-05 21:59:27 -08:00
Anees Iqbal ed6de7fbcf 🎨 State a decode SKIP as what the gate measured
A decode the guest's VideoToolbox found no hardware decoder for was reported as
"no hardware HEVC decoder", which read as the lane host lacking one, though
msi's GPU decodes HEVC Main and Main 10. The gate now measures the three facts
that decide it and the report says which one held:
- the host's GPU: msi-boot.sh lists each GPU's Vulkan Video decode profiles
  (vulkaninfo --show-video-props, a query) in host-video.tsv;
- the candidate: the guest build records the codecs its device offers
  (H.264 where the bundle has the H.264 driver, HEVC where the kext states
  IOGVAHEVCDecode);
- the guest: the info phase records the accelerator's IOGVA keys.
A decode stays SKIP where the host's GPU has no hardware decoder for the
codec (naming the host and GPU) or the candidate offers none ("the device
offers no HEVC decoder on this tip"), and fails where both hold and
VideoToolbox still finds none.
2026-11-05 21:59:27 -08:00
Anees Iqbal 4306be1add 🐛 Let a run without a publish step compare with one that had it
A baseline that published has a step.publish item, and a run made without
--publish, such as a noise pass, then raised KeyError in compare.
2026-11-05 21:59:27 -08:00
Anees Iqbal 1ebc087f29 🎨 Show a part that did not run as one line of the report
A run whose bench leg is still waiting listed each of the leg's 36 items as
NOTRUN, which buried the correctness verdict. A group whose items all share
one status other than PASS and one detail now takes one line.
2026-11-05 21:59:27 -08:00
Anees Iqbal da06f9003b 🆕 Check the wire's features, the bundle's files, and publish the bundle
For the wire-v3 tips: the info phase reports the kext's RgfxFeaturesOffered
and RgfxFeaturesTaken, and fails where the kext took a feature the host did
not offer. After the sweep the guest must hold no /tmp/rgfx-*.log. A new Mac
step runs the tree's bundle_files_check.sh on the packaged bundle, the one
RgfxGate installs.

Each publish also carries the signed reims-graphics.bundle and its package,
under tip-host/SHORT/bundle/, with the bundle's CDHash in SOURCE, so that a
fixer can build an RgfxGate that embeds exactly the tip's bundle.
2026-11-05 21:59:27 -08:00
Anees Iqbal e0bfcbc204 🆕 Measure window drags in the gate's boots
The owner asked for drag frame rates, and the numbers so far mixed conditions
or counted drags that never moved the window. Each boot now drags a plain
window (TextEdit) and a glass one (a Finder window) over QMP for 10 s at 120
pointer moves a second, after the guest's run (lane-gate/msi-drag.py).

A drag counts only where the window followed the pointer. A short probe
first finds a press point in the title bar that moves the window by the
pointer's distance. Through the drag, guest/bundle/tools/winmon tracks the
window's origin every 10 ms, and the origin must span the pointer path. A
case whose window did not move is not run, not a number, and fails only where
the baseline's window moved.

Measured from the host log's display updates during the drag: updates a
second, gap p99 and max gap, beside QEMU's and its graphics thread's CPU. A
gap over a second is a stall. In the correctness boot a stall fails the gate,
and in the bench boot the rate is gated against the baseline (10% floor).
2026-11-05 21:59:27 -08:00
Anees Iqbal ddb848575d 🆕 Run a failed GPU test once more alone before failing the gate
AGENTS.md has a GPU test that fails under the check's load run once more
alone, and a test that passes alone is not a failure. The gate's cargo step
now does that for each failed test, under the GPU lock. The report names the
tests that passed alone as load-sensitive, so a flaky test stays visible
without failing a landing.
2026-11-05 21:59:27 -08:00
Anees Iqbal 8748cb120d 🆕 Check the GPU memory the guest states, and widen known relations
The info phase now reads system_profiler's VRAM and the Metal device's
recommendedMaxWorkingSetSize, hasUnifiedMemory and dedicatedMemorySize (by
JXA, which needs no build). It checks them against the rule the kext follows
(RgfxMemorySize.hpp): VRAM is the working set, and dedicatedMemorySize is the
working set where the GPU has memory of its own, else 0.

A known-failures entry's relation may now compare its pattern's groups with
<, <=, > or >= as well as =, with an optional offset: m < n matches any
stale earlier frame.
2026-11-05 21:59:27 -08:00
Anees Iqbal db4d24bf93 🐛 Take the guest's screen with a system screenshot
screencapture run over SSH writes nothing in the lane's guests: TCC denies
it screen recording, and with SIP on no tool run over SSH can be granted it.
The boot now sends Command-Shift-3 to the guest's keyboard over QMP. The
system saves the screenshot as it would for a person, with no grant, and the
host checks that file's content.

Each pass now ships the host scripts by rename, since a detached bench leg
may be running the old ones and bash reads a script as it runs it. It also
copies the guest runner into the payload at each boot, so a resumed run boots
the gate's current runner.
2026-11-05 21:59:27 -08:00
Anees Iqbal 058c8f2905 🎨 Keep the lane host's own failures out of the gate's verdict
A boot the host's queue never reached, or one missing a file it needs, ran
nothing of the candidate, so the run now counts the boot as not run (exit 2)
and a --resume tries it again. A failed bench boot is a bench issue: the
report shows it as one instead of failing the candidate.
2026-11-05 21:59:27 -08:00
Anees Iqbal a706338864 🐛 Fix what the gate's first real boot showed, and publish tips
The first boot to run the guest side (201d83043) showed four things.

- QMP's screendump of reims-graphics-pci holds only QEMU's "Guest has not
  initialized the display" placeholder, since the device's frames go to the
  library's window. The guest now captures its own screen (screencapture in
  the user's session) at the end. The host checks the capture's content: at
  least 64 colours, and no colour on more than half of it. That also catches
  a white or blank capture.
- The watchdog's sleep kept the SSH session's stdout open, so the gate waited
  for the whole hold after the boot was done. The watchdog's output now goes
  to /dev/null, and finish() stops its sleep by pid.
- report() turned errexit back on before returning the verdict, so a failing
  verdict ended the gate before it started the bench leg. It now leaves
  errexit as it was.
- A known, open bug (a stale CPU read of a GPU-written IOSurface in the
  H.264 reader check) fails every run until its fix lands. There is now a
  known-failures list (KNOWN_FAILS, JSON). Each entry names its exact item,
  a pattern for the failure's detail with an optional relation between its
  groups, its owner and its ledger row. A matched failure shows as KNOWN and
  decides nothing. Any other failure of the same item still fails. Each
  report counts every entry's hits across the gate's runs (known-hits.tsv).

--publish makes the gate publish a tip's image and host build on the lane
host, read-only, as loader-fix/oc-sipon-SHORT.qcow2 and tip-host/SHORT/
(QEMU with its data, the release dist, the ROM, SOURCE). It does this unless
nothing they carry changed since the last commit it published.
2026-11-05 21:59:27 -08:00