Commit Graph
125 Commits
Author SHA1 Message Date
Anees Iqbal 3a62c707ff 🆕 Let a boot-only pass add post probes to a built run
Car 12's build had to start before its post probes were ready. A --boot-only
pass given --post-probes now adds them to the run's ship commit as a child
commit, and the boot moves the kept workspace to it with potluck's --advance,
keeping the build's output.
2026-11-05 22:01:22 -08:00
Anees Iqbal 45617fed85 🆕 Carry the metal2vulkan pin to the lane host for its build
Pin 13's metal2vulkan commit is not on the public repository yet, so cargo on
the lane host could not fetch it. The gate now carries the pin from the local
checkout to potluck's mirror there, and the build fetches it into cargo's git
databases before it builds. The mirror is only read.
2026-11-05 22:01:22 -08:00
Anees Iqbal 68043d7dd8 🆕 Stream any S1 probe's guest log, and poll the kext ring faster
The S1 repro now runs as rgk-icb-2's own probe, which prints no MARK lines:
the hook streams the guest's log for the probe named S1_PROBE from its start
to its end. --kring-s S takes the kext's lines from the kernel ring every S
seconds in a captured round, so a panic leaves more of its close's timeline.
2026-11-05 22:01:22 -08:00
Anees Iqbal 400d329fb0 🐛 Read the hook's boot env with eval, which bash 3.2 also runs
Sourcing a process substitution reads nothing in bash 3.2, so the hook ended
at its first use of the env on a Mac's bash; eval reads it on every bash.
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 ddd646e2da 🆕 Lay a local probe's files over a probe on the lane host
A --stage-local probe whose .base names a probe directory on the lane host
takes that one's files with its own over them, so a changed run.sh rides
the round's commit without the probe's media.
2026-11-05 22:01:21 -08:00
Anees Iqbal b0f8013232 🐛 Start the capture's screenshots only once the desktop is up
The shots sent Command-Shift-3 once a second from the host's first present,
through the login. macOS skips its automatic login where Shift is held as
the login window comes up, and a capture round on 9aaa024db stayed at the
login window: only four contexts opened and Dock and Finder never ran. The
boot now marks the desktop (WindowServer, Dock and Finder up) and the shots
wait for that mark.
2026-11-05 22:01:21 -08:00
Anees Iqbal 5b831f8bfa 🆕 Add car 12's round hook and a capture from a guest restart
hook-c12.sh is the host side of three car 12 probes, each started by a MARK
line: the guest's log stream over SSH for the S1 repro, spscan.py on QEMU's
RAM for the shmem probe, and a scanout capture from an in-guest restart.
msi-capture.py gains CAPTURE_FROM_NOW for that last one: its limit and its
first present count from its own start.
2026-11-05 22:01:21 -08:00
Anees Iqbal b6ccc3f8ae 🆕 Keep the guest's log and crash reports from before a panic
After a restart the catch now takes `log show` of the kernel's and our kext's
lines over the 120 s before the newest panic report's timestamp, and the .ips
reports written around it, so a panic's lead-up is kept even when the
stream over SSH missed it.
2026-11-05 22:01:21 -08:00
Anees Iqbal 474fa21211 🆕 Run the app load in probe rounds and carry local probes in the commit
A round can now stage a probe from this machine (--stage-local), carried in
the round's commit, so a probe with a binary built from the car's own source
travels without a deploy. --appload runs the gate's app load on the desktop
before the probes, for checks that need its busy WindowServer. The round
copies every host script of the gate, so a hook can live beside them.
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 618934bc2f 🐛 Count QEMU's drag CPU with its exited threads and late graphics threads
measured() summed each thread's ticks between the window's two looks at /proc/PID/task,
so a thread born in the window counted 0 and one that exited before its end was missed. Lane
threads leave after 1 s without a job and budget threads come and go, so gfx_cpu and qemu_cpu
undercounted whatever ran on them. QEMU's CPU now comes from the process's own utime+stime,
which keeps what exited threads used. The graphics threads' come from their last readings,
taken every 20 ms through the window, with a scan of names every 100 ms for new ones; a thread
born in the window counts from 0. On msi, against a test process's own thread clocks, the
four short-lived graphics threads read 0.17/0.12/0.12/0.15 s against 0.17/0.12/0.13/0.15 s,
where the old rule counted none of them. CPU rows from before this are not comparable.
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 7ad4b2c75f 🐛 Take a round's bench from its image tip's run before the newest
A round whose host tip no gate built (a lane's probe-only host) now takes the bench
of the guest it boots, the image tip's run, before falling back to the newest run's.
2026-11-05 22:01:21 -08:00
Anees Iqbal d2510f9420 🐛 Let a round on a tip with no gate run find another run's bench
probe-batch runs under set -e and pipefail, so the ls of the tip's runs failing (no
run for a lane's probe-only host, such as 41ca29975) ended the round silently with
exit 1 before its fallback to the newest run's bench.
2026-11-05 22:01:21 -08:00
Anees Iqbal 659d5f3e96 🆕 Run another lane's command as a potluck job beside the gate's scripts
fix-bundle-res's runs-route A/B boots through its own run-ab.sh, which takes a
VM launch with rgk-boot2.sh's interface. pl-job.sh dispatches such a command
from a throwaway commit carrying the gate's host scripts, so it can launch with
lg/bin/msi-launch.sh, and copies the workspace's results/ back.
2026-11-05 22:01:21 -08:00
Anees Iqbal 553662d769 🆕 Boot a probe round on stock devices, for a control
scout's car 10 app table needs a control on the stock graphics devices: the
owner VM's OpenCore image, the dist's ReimsVgpu.rom, apple-gfx-pci with its
iosurface, VideoToolbox and scaler devices as reims-ctl gives an x86-64 VM, and
a trace file. probe-batch.sh's --image, --rom, --gfx-b64 (QEMU's graphics
arguments in place of reims-graphics-pci), --qemu-env and --no-metal-check carry
those into the round's boot.env, and msi-boot.sh exports them for QEMU and
leaves out its check that the guest's Metal device is ours.
2026-11-05 22:01:20 -08:00
Anees Iqbal 39b9238223 🎨 Give the lane gate's potluck jobs limits near their own time
potluck reserves an exclusive job's start at the latest limit among the jobs
running on its machine, and lets jobs that end by their own limit start ahead
of it: a 2 h build limit held msi's reservation hours out. The host build gets
30 minutes (it took 533 s cold), the correctness boot 40, the bench 30, and a
round its hold and 12 minutes (40 more with --after).
2026-11-05 22:01:20 -08:00
Anees Iqbal ebd97f0972 🆕 Bring each gate boot's host log back, and give --after time
ring0-audit reads its MEAS lines in QEMU's host log, which stayed on the lane
host: the boot job now copies launch.log.gz back with the boot's other files. A
round with --after gets 40 minutes more of job time for its command.
2026-11-05 22:01:20 -08:00
Anees Iqbal bde86bf277 🆕 Build a gate run now and boot it later, back to back with another
ring0-audit's clean pair needs both tips built before either boots, then the two
boots back to back with nothing between them. --keep-workspace keeps a run's
potluck workspace, worktree and branch when it ends (a run built with --skip
boot), --boot-only runs a resumed run's correctness boot alone in it, taking no
lock as a bench leg does, so two runs' boots can be queued seconds apart, and
--priority sets the jobs' priority.
2026-11-05 22:01:20 -08:00
Anees Iqbal 1535bff4ca 🆕 Run the lane gate's probe rounds as potluck jobs
A round's changes on the lane host (moving its probes out of the queue, the
boot, the statuses, putting unreached probes back) now run in one potluck job
holding the 5080 and the whole host (msi-round.sh), dispatched from a throwaway
commit of the round's own (ship-commit.sh) that carries the gate's host scripts,
the tip's bench and the round's boot.env. probe-batch.sh only reads the host's
queue and published tips. --stage NAME=DIR[@TIP] copies a probe from a directory
on the host into the round inside the job, which replaces staging over ssh;
--ram sets the job's memory and --after runs a command after the boot in the
job (a hook's post-processing). --dry-run does not run as a job yet.
2026-11-05 22:01:20 -08:00
Anees Iqbal 88a486432c 🆕 Run the lane gate's host build and boots as potluck jobs
The owner retired direct ssh tests and deployment and the lane host's legacy
locks (turnstile, gpu-urgent, build-quiet, host-quiet, the GPU flocks): potluck's
lease is the lock now. The gate makes a throwaway commit per run, whose parent is
the candidate and whose lg/ holds its host scripts and what the Mac built (the
guest payload, the loader's kexts, RgfxGate, the bundle, a git bundle of the
vendor/qemu commits the host lacks). From it the host build, the image and
publishing are one job on msi with no GPU (msi-job.sh build), and each boot a
job in that workspace holding the 5080 and the whole host (--exclusive).

msi-launch.sh replaces rgk-boot2.sh's locks with potluck's: before QEMU starts
it waits for running builds (HOST_QUIET or HOST_NOT_QUIET, as before) and for
the CPU package to cool below 80 C, so the measured boots keep their quiet host
and cool-down. The loader builds on the Mac alone (mac-loader.sh). The Mac's
checks, which took the Mac's GPU lock, do not run as jobs yet: the gate needs
--skip mac.
2026-11-05 22:01:20 -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 e26b0b554d 🆕 Record each lane boot's memory compaction and its end's free memory
The runtime pins all of the guest's RAM at the start, and a host short of
free pages compacts, which moves a boot's times; car 10's cold-boot check reads
both. host.txt now has /proc/vmstat's compact_stall, compact_fail and
compact_success at QEMU's start and the boot's end and their growth, and the
free memory and the CPU's heat at the end, read before QEMU stops.
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 31e83c11a3 🆕 Set a probe round's host log filter
s1-hang times its rounds against the bench boots, which log at info; the
round's default filter adds the presents' trace lines, which cost each op.
--host-log FILTER replaces the round's filter.
2026-11-05 21:59:30 -08:00
Anees Iqbal 2ef20e6c4c 🐛 Bench at host log info, with the work counts on request
The bench boot logged the runtime's work counts each second since 85fac10ad,
and their logger costs what it rates: car 9's draws.10k ran at 0.80M draws a
second with it and 2.54M without it, on the same build. The bench's host log
is info again; --bench-host-log info,reims_vgpu::work=debug asks for the
counts, as a control.
2026-11-05 21:59:30 -08:00
Anees Iqbal 70858f0131 🆕 Add host log directives to a probe round
scout-apps-2's car 9 table rounds run with reims_vgpu_vulkan::icb_writes at
debug, a target off by default, to say which pipelines write ICBs on the
renderBundles page with no boot of their own: --log-add FILTER appends its
directives to the round's host log filter.
2026-11-05 21:59:30 -08:00
Anees Iqbal b393bb4967 🆕 Set the gate's bench boot's host log filter
The bench's host log carries the runtime's work counts, whose logger thread
reads them each second; car 8's library had no such thread, so a car 8
control cannot tell whether it costs car 9's draws.10k. --bench-host-log info
benches a tip without it. A run with another filter is a control and is never
recorded.
2026-11-05 21:59:30 -08:00
Anees Iqbal 0c9cc5cc05 🆕 Run a command at the gate's bench boot's QEMU start
draws-regress samples QEMU's graphics threads during the bench's draws.10k:
--qemu-hook passes probe-batch.sh's hook ({PID}, {DIR}) to the bench boot,
whose guest.log has the bench's '# start CASE' lines as they come. A run
with a hook is a control and is never recorded.
2026-11-05 21:59:30 -08:00
Anees Iqbal f40e026efc 🐛 Judge each landed car's bench against the car before it
A car's landing gate runs without the Mac's checks, so it is incomplete, and
--record moved baselines/LAST only for a run that passed: LAST stayed at
15c73f2b5b48 through cars 7 to 9, and car 9's bench was judged against a
baseline from before car 7, which hid its draws.10k fall against car 8.
--landed records the run and, once its bench leg has run, makes it LAST
whatever the verdict; its own baseline is the car that landed before it.
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 b122cae519 🆕 Run a command under a probe round's GPU lock before QEMU
s1-hang's runtime-import pair needs the host's memory brought to a desktop's
state just before QEMU starts, with nothing else on the GPU meanwhile. A
round's --pre-qemu CMD runs CMD in the QEMU wrapper under the lock, just
before the exec, its output in the round's pre-qemu.txt; the hook starts after
it.
2026-11-05 21:59:29 -08:00
Anees Iqbal 6e892c34f8 🆕 Record the host's free memory as each lane boot's QEMU starts
The runtime now imports all of the guest's RAM as QEMU starts, and with the
host's free memory below that, a boot's first present moved by 27 s between
two otherwise like cold boots. host.txt now carries MemFree, MemAvailable and
Cached at the GPU lock's hold (memfree_start_mib and the like).
2026-11-05 21:59:29 -08:00
Anees Iqbal aa4540bdb5 🐛 Exec QEMU from the cold-cache wrapper, keeping run.sh's pid
rgk-boot2.sh counts the guest's SSH only from run.sh's pid, which it takes for
QEMU's, so a wrapper that ran QEMU as its child never got SSH_OK: the warm
car 9 boot ended BOOT_FAIL after 5 minutes. The wrapper now execs QEMU, and a
process it leaves holding the GPU lock puts the cache entry back once QEMU
has stopped.
2026-11-05 21:59:29 -08:00
Anees Iqbal 70fa734575 🐛 Run a probe round that takes no probe under bash 3.2
A round with no probe (--catch-from-boot --only none) stopped at once: bash 3.2
calls an empty array unbound under set -u. The take list's uses now allow it
empty.
2026-11-05 21:59:29 -08:00
Anees Iqbal 47aab3cce9 🆕 Boot a probe round on a cold pipeline cache, with a host hook
Car 9's slow first present came from the host's first run of a new runtime,
which warmed its pipeline cache cold. A round's --cold-cache KEY boots with
the host's cache entry KEY set aside and puts it back once QEMU has stopped,
both under the boot's GPU lock (a wrapper run.sh execs in QEMU's place); its
--qemu-hook CMD starts CMD with QEMU ({PID}, {DIR}), and the from-boot catcher
keeps QEMU's screen every 5 s until the first present.
2026-11-05 21:59:29 -08:00
Anees Iqbal 820aad948c 🆕 Let a gate run end its guest run with a command of its own
boot-flicker's proof needs the guest's log of the textures the fixed bundle
refuses, read at the end of the boot. --final-cmd CMD runs CMD in the guest at
the end of the correctness boot's final phase, its output kept in guest.log's
"GATE final-cmd:" lines.
2026-11-05 21:59:29 -08:00
Anees Iqbal 47f8fcdfa7 🆕 Let a probe round boot another tip's host build or image
A restart that car 9's image shows on its first boot needs its one-variable
controls: car 9's image on car 8's host, and car 8's image on car 9's. A round's
--host-tip and --image-tip boot another published tip's host build or image
in place of the round's own.
2026-11-05 21:59:29 -08:00
Anees Iqbal c47ab0d50a 🆕 Watch a probe boot for a restart or silence from QEMU's start
Car 9's image restarted the guest once before its desktop, and the hang
catcher, started with the probes after the desktop, saw none of it. A round
with --catch-from-boot starts the catcher with QEMU (msi-boot.sh's
CATCH_FROM_BOOT, msi-hang-catch.py --from-boot): a second hand-off to the
kernel on the serial console is a restart, and the host log silent 10 s after
the kext started and before the first present is a hang, caught as one. The
probes use that catcher, and such a round runs with no probe too.
2026-11-05 21:59:29 -08:00
Anees Iqbal a7969e15af 🐛 Let a probe's budget run to 300 s
The S1 fix's proof probe asked for 200 s, which a round took and its guest
side then skipped, its limit being 180 s: the proof round ran nothing of it.
A round's hold is set per round now (--hold), so a budget may run to 300 s.
2026-11-05 21:59:29 -08:00
Anees Iqbal 679553df15 🆕 Tell a guest's restart from a hang in probe rounds
A probe round's hang catcher was a copy kept outside the tree, and it read the
S1 panic's restart as a stall: a catch of the new boot idling, and no panic
report. The catcher now ships with the round (msi-hang-catch.py). Once SSH has
answered, a device reset in the host log or a boot banner on the serial
console marks a restart, SSH failing then takes no catch, and once SSH answers
again it fetches the guest's info and the panic reports written since.
2026-11-05 21:59:29 -08:00
Anees Iqbal cf3e32dc28 🐛 End a probe's SSH session to a guest that went silent
In the S1 round the guest's SSH stalled for about a minute, and the shots poll's
session, open across the stall, waited for 15 minutes, until the round's hold
ran out and the probes after it were not reached. Probe sessions now send
ServerAlive messages and end after 60 s of silence.
2026-11-05 21:59:29 -08:00
Anees Iqbal 18c8d9941d 🆕 Go on with a round's probes in a guest that restarted
A probe that panics the guest restarts it, and the probe after it reads the
panic's report in the restarted guest. Where a failed probe's guest stops
answering, the round now waits up to 3 minutes for it to answer again before it
counts the guest hung.
2026-11-05 21:59:29 -08:00
Anees Iqbal 15a92542d4 🆕 Let a probe round leave named probes queued
A probe that freezes the guest has to come last in a round of its own, so an
ordinary round must not take it first. --exclude NAME,... leaves those probes
in the queue.
2026-11-05 21:59:29 -08:00
Anees Iqbal 5fb551506c 🆕 Snapshot a guest that stops answering in a probe round
A car 8 round's guest locked up with every vCPU spinning in guest mode, and the
round stopped QEMU with nothing of the guest's state kept. A probe round now
runs the hang catcher (HANG_CATCH, s1-hang's, where it is on the lane host)
beside its probes and waits for a catch it started before QEMU stops. Where a
probe fails and the guest's SSH no longer answers, msi-hang.py keeps the
scanout (and, with no catcher, QEMU's threads and every vCPU's registers and
stack), and the probes after it go back to the queue. Every boot records the
kext's load address, and --only NAME,... takes the named probes alone.
2026-11-05 21:59:29 -08:00
Anees Iqbal 53516fa78b 🐛 Run a round's probes in the order the round took them
The guest side ran a round's probes in name order, so --first put a probe at
the head of the queue but not first in the boot, and spg-repro, which takes
every free 2 MiB of guest RAM, ran before spg-slabs. The round now writes its
take order into the probes' directory, and the guest side follows it.
2026-11-05 21:59:29 -08:00
Anees Iqbal 10d958d283 🆕 Let a probe round take named probes first and set its hold
A plain round takes probes oldest first, so a probe a fix's round is for can
wait behind older ones, and three probes of 500 s of budget need 545 s of the
540 s the default hold leaves them. --first NAME,... puts the named probes at
the head of the queue, in that order, and --hold S sets one round's hold.
2026-11-05 21:59:28 -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