Commit Graph
362 Commits
Author SHA1 Message Date
Anees Iqbal 27b87befa3 🐛 Fail the scripts whose aborts an EXIT trap passed as 0
On macOS's bash, 3.2, a script that stops at an unset variable under set -u
exits 0 where an EXIT trap is set, and $? is 0 inside the trap too, so a check
that aborted read as a pass (measured: the same script exits 1 with no trap).
payload_test.sh showed it; seven more scripts pair set -u with an EXIT trap:
check-boot.sh, check-imports.sh, walk_window_macos.sh, opencore-add-kexts.sh,
ship-commit.sh, msi-boot.sh and msi-image.sh.

Each now keeps an ended flag, set at each deliberate success end, and its trap
does its cleanup as before, then turns an exit 0 short of that end into 1 and
keeps any other status. payload_test.sh takes the same form in place of the
trap its last fix removed, so it cleans its scratch on an abort again.
2026-11-08 21:03:01 -08:00
Anees Iqbal a656ba31d1 ⬆️ Take Graft 1.0.0 from its release tag
Graft 1.0.0 is its first release. It reorganizes the repository: the built
kext moves from dist/ to built/, and the header, start glue and build rules
move under sdk/. It also binds an absent weak import to the pointer
gOSKextUnresolved holds, and verifies an imports-only provider through an
anchor class, which kextvers needs for macOS 11 and 12.

Point the guest build, the OpenCore link check, the lane gate and the
design doc at the new paths, and rebuild guest/prebuilt from them.
2026-11-08 05:15:44 -08:00
Anees Iqbal 370933b618 🎨 Inject the Graft set from macOS 14, where its matrix rows pass
On 11 to 13 the set would load where nothing of ours loads today, and those
releases are not ready: 12 crash-loops WindowServer on the display pipe's
completion layout, 13.7.8 draws a black wallpaper, and on 11 the host refuses
Metal libraries. OpenCore now injects Graft, ReimsGraphics and RgfxGate from
Darwin 23 on, so 11 to 13 boot plain, as they do today.

MIN_KERNEL in guest/tools/prebuilt.py is the one place that decides it, and
each older release joins in its own commit once its row passes. Graft itself
still checks no version.
2026-11-08 03:00:32 -08:00
Anees Iqbal f96803deac 🎨 Gate and patch images with the Graft set
lane-gate built the old loader and its shims for each candidate ReimsGraphics
from a separate builder, and its guest check read the loader's log; neither
exists with the set on Graft. The gate now ships the set as guest/'s build
stages it (Graft, ReimsGraphics, RgfxGate), its image carries exactly those
three, and graft-bind reads GraftClient.com.steelbrain.ReimsGraphics from the
registry root. msi-image.sh refuses a base image that still lists another kext,
such as Lilu or the old loader, which `reims-ctl update-opencore` makes again.
The Mac's kext check runs guest/'s set-check in place of the shim link check.

opencore-add-kexts.sh gives added kexts no kernel range, as the set has none,
and takes an image with no Kernel > Add entries, which reims-util now makes
for a VM on another device.
2026-11-08 02:58:39 -08:00
Anees Iqbal e22b8d31e9 🆕 Vendor Graft's build and consumer tooling under guest/graft
The guest kexts move from Lilu and the loader onto Graft, our own kext that
binds ReimsGraphics against the System KC by name and routes RgfxGate's hooks.
As agreed with Graft's session, reims-vgpu carries a copy of Graft's committed
build, header, start glue and consumer build rules, made by Graft's
tools/vendor.py at Graft 9ac50f6, with source.toml recording that commit and
each file's SHA-256. The set's build and prebuilt check use it from the next
commit on.
2026-11-08 02:57:54 -08:00
Anees Iqbal 5a4418c894 📝 Say that core is the Vulkan crate's module [ci skip]
reims-vgpu-core is folded into reims-vgpu-vulkan, so the docs, the
manifests' comments and the crate descriptions that named the crate name
its module now: the crate lists and graph, seven crates, core's files under
crates/reims-vgpu-vulkan/src/core, the testkit feature, and what the x86-64
leg runs. The design note that put the decoder in core says where it is,
reims-vgpu's graphics::decode, and the path of a deleted file goes. The
kache measurement keeps the crate's name, as it was measured then.
2026-11-08 01:55:07 -08:00
Anees Iqbal fd591f5039 🎨 Fold reims-vgpu-core into reims-vgpu-vulkan as its core module
The Vulkan crate is the library's only platform since the Metal platform
went, and every crate that links core links the Vulkan crate too, so core
needs no crate of its own. Its files move unchanged under
reims_vgpu_vulkan::core (crate::core in the Vulkan crate), the module the
video crate's layout already uses; its #[macro_export] macros stay at the
crate's root, so reims_vgpu_core::metal_check! is reims_vgpu_vulkan's now.
core's lint set is the module's inner attributes, as it was the crate's.
Nothing the guest or the host observes changes, and reims_vgpu.h is the
same. Core's log lines name reims_vgpu_vulkan::core:: as their target in
place of reims_vgpu_core::, so reims-ctl's example filter says so.

The testkit feature is the Vulkan crate's, reims-vgpu-vulkan/testkit, and
the crate's integration tests turn it on through a dev-dependency on the
crate itself, as core's dependents turned core's on. core's tests keep
their paths below core:: in the Vulkan crate's unit tests, and cargo xtask
check's x86_64-apple-darwin leg runs those alone: -p reims-vgpu-vulkan
--lib -E 'test(/^core::/)'. The tests that run themselves again in a child
name themselves below core:: too (a child given a name that matches no
test runs nothing and passes), and the memory map's tests take the lines
of the targets below reims_vgpu_vulkan::core::memory.

The macOS test that declares _exit now declares it safe, as the testkit
does: rustc's clashing_extern_declarations compares the declarations
within one crate.
2026-11-08 01:55:07 -08:00
Anees Iqbal 6fb33ecd27 🎨 Rename the reims-graphics crate to reims-vgpu-graphics
The crate that holds the reims-graphics device's wire and transport now
carries the library's prefix, as reims-vgpu-video does: its directory is
crates/reims-vgpu-graphics, its package reims-vgpu-graphics, and its Rust
path and log target reims_vgpu_graphics. The guest's, the option ROM's and
Ambrosia's Makefiles include the wire header from the new directory, and the
prebuilt records name it there.

Nothing changes for the guest or the host. The device keeps its name
(reims-graphics, QEMU's reims-graphics-pci, PCI 1234:5247), and the wire
header keeps its file name and RGFX_ symbols. The C API header is unchanged,
and the prebuilt kexts and option ROM are byte-identical; only the records'
paths and source hashes move. A log filter names the crate's lines by its
new target (REIMS_VGPU_LOG=info,reims_vgpu_graphics=trace), a diagnostic.
2026-11-08 01:37:50 -08:00
Anees Iqbal 05bf511500 🐛 Ask the lane gate's host video of vainfo and NVDEC
The lane gate's host-video table came from vulkaninfo's video profiles. The
host's video stopped using Vulkan Video when it was deleted: it is VA-API's
and NVDEC's. The table now lists each GPU vulkaninfo names, found by its PCI
address, with the decode profiles vainfo lists on its render node. On an
NVIDIA GPU the profiles are the ones nvidia-probe finds NVDEC decodes: H.264
Baseline, Main and High at 8-bit 4:2:0, and HEVC Main and Main 10.
msi-build.sh builds nvidia-probe, and the job and the publish step copy it
beside QEMU.
2026-11-07 21:32:05 -08:00
Anees Iqbal 916268b33f 🔥 Delete the IOSurface device's qtest script
qtest_iosurface_pci.py checked apple-gfx-iosurface-pci, the paravirt IOSurface
device, through QEMU's qtest accelerator. The device is gone from QEMU and the
library, so nothing the script starts exists.
2026-11-07 20:07:29 -08:00
Anees Iqbal cf40cc8c57 🔥 Install no clang or lld for reims-ctl's build
install-ctl.sh installed clang and lld for the option ROM cargo xtask dist
built for apple-gfx-pci. dist builds no ROM now: reims-graphics-pci's comes
prebuilt (firmware/prebuilt). What the install builds needs neither: the
library's Linux dist links its archive with binutils's ld, nm, objcopy and
ar; SDL3 builds with CMake and the system's C compiler; metal2vulkan and
QEMU need no clang. binutils stays.
2026-11-07 19:45:50 -08:00
Anees Iqbal fea9c0b2ae 🔥 Drop apple-gfx, vmapple and Mac hosts from reims-ctl
reims-vgpu no longer has apple-gfx, Apple's paravirtualized GPU, nor
vmapple's arm64 boots (owner, 2026-11-07). reims-ctl follows:

- Every VM runs reims-vgpu's own GPU device, reims-graphics-pci, or VMware
  SVGA. The choice by the guest's macOS version (apple-gfx below 26.4) is
  gone, with no version check in its place. Settings that name apple-gfx
  read as reims-vgpu, and migration 3 makes such a VM's OpenCore image again
  for the device, keeping the old one as <image>.pre-migration-3.
- apple-gfx's settings and options go: displays, HiDPI, refresh rate and
  video acceleration (read past in old settings, dropped on the next save),
  view --display, the video and IOSurface devices, the Metal error-mode
  note, the aux trim and the emptied-entry warnings. With logs off the
  library logs at warn.
- reims-ctl runs VMs on Linux x86-64 hosts alone. Mac hosts go with arm64
  boots, per the owner's 11-07 ruling, and come back with the arm64 loader.
  create, start, gpus and usb on a Mac say "reims-ctl runs VMs on Linux
  x86-64 hosts"; vz.rs and its objc2 Virtualization dependencies go; the
  crate still builds and tests on a Mac.
- scripts/install-ctl.sh refuses any host but Linux on x86-64, and builds
  the library on Vulkan alone: GPU_ARM, the -vulkan builds, Homebrew and
  codesigning go.
- reims-util moves to 5ca3b10, which carries Lilu alone, without
  ReimsVgpu.kext: the renew warning for an image lacking it goes too.
2026-11-07 18:21:43 -08:00
Anees Iqbal 34dfe1b28a 🔥 Move QEMU to its tree without apple-gfx
vendor/qemu's eb36a099 removes apple-gfx (PCI and vmapple's MMIO device),
the IOSurface device, the paravirtual VideoToolbox and M2 scaler devices and
the KVM dirty source only apple-gfx gave the library. reims-graphics-pci is
QEMU's only device on the library, and calls only its rvg_graphics_device_*
functions and rvg_status_message. vmapple is no longer built: its display
was apple-gfx-mmio.

QEMU's option that finds the library is now --enable-reims-vgpu, not
--enable-pvg, upstream's name for Apple's framework, so its callers change
with it: install-ctl.sh's and the lane gate's configure lines, and make
qemu. make qemu now builds qemu-system-x86_64, the guest reims-graphics-pci
serves, configures again over a build an earlier make qemu configured for
aarch64 or with --enable-pvg, and no longer checks for ReimsVgpu.rom, the
option ROM QEMU installed for apple-gfx-pci. make vm, which booted a vmapple
guest, goes.
2026-11-07 18:21:43 -08:00
Anees Iqbal dae3e6b13d 🔥 Delete the behaviour-lock suite and its make targets
The suite drove apple-gfx's C API as QEMU did and recorded what the paravirt
device did; the owner's ruling deletes apple-gfx and everything of it, the
suite with it, so make test, bless and coverage go too.

Its shader fixtures are the platforms', the graphics device's and the guest
bundle's tests too: they move to tests/shaders. guest/bundle's Makefile, an
input of the prebuilt kexts, still names tests/suite/fixtures/shaders, which
stays as a link to tests/shaders until the kexts are next built. A worktree
no longer clones the suite's 257 MiB, so new-worktree.sh adds it plainly.
2026-11-07 18:21:42 -08:00
Anees Iqbal 922acf7fd1 🔧 Add a guest step that keeps MiniBuddy's panes from a boot
Shared guest disks saved with Setup Assistant's MiniBuddy panes unseen
bring them up over the desktop at every boot of a copy, as loginwindow
launches MiniBuddy while the user's com.apple.loginwindow MiniBuddyLaunch
is true for the host. Boot harnesses run this script in the guest over
SSH before their workload. It ends a running MiniBuddy, deletes the key
for any host and from the host's ByHost file (deleted for any host alone,
the key still launched MiniBuddy after a reboot), waits for the files to
drop it, and says when the guest must reboot to log in without the pane.
2026-11-07 12:53:45 -08:00
Anees Iqbal da0adc38b3 🐛 Find rustup in Cargo's home beside a distribution's cargo
install-ctl.sh looked for rustup only on PATH, and stopped where it found
another cargo there. On four Linux hosts pacman's cargo-nextest had pulled in
Arch's rust, /usr/bin/cargo, and the installer, run from a shell whose PATH
lacked ~/.cargo/bin, where rustup was, stopped at "cargo is installed without
rustup" on each.

It now puts Cargo's home's bin, where rustup is there, first on its PATH, so
the build runs rustup's proxies and the toolchain rust-toolchain.toml pins,
not the other cargo's release. Where rustup is missing, it offers it beside
the other cargo, as it does where there is no Rust, and --yes installs it. The
closing check of PATH looks at the PATH it started with, which the user's
shell has, not its own.
2026-11-07 12:03:23 -08:00
Anees Iqbal 06a13b6cb4 🆕 Offer to turn MGLRU's thrashing guard off on Linux hosts
With /sys/kernel/mm/lru_gen/min_ttl_ms above 0, the kernel kills a process
where it can't keep the pages used in the last that many milliseconds in
memory, even while RAM is free (the kernel's multigen_lru.rst, "Thrashing
prevention"), and a VM's QEMU can be the one killed. CachyOS's kernel sets it
to 100. Measured on hosts here at 100: kswapd invoked the global OOM killer
with most RAM free, killing a compiler with 19 GiB free on um870, and making 19
of a day's 22 OOM kills on ms01. An hour of builds beside a VM on um870 killed
no QEMU.

The installer and reims-ctl doctor now read the file, and above 0 they say
what it does in one line. On a terminal they offer to write 0 with sudo, and
they show the systemd-tmpfiles line that keeps it at 0 after a restart.
Without a terminal they only tell. VMs run either way, so doctor doesn't count
it as a failure.

Tested in mount namespaces on um790, where the file was a root-owned copy
holding 100 or 0: the installer without a terminal, and on one answering y and
n; then doctor the same ways. Each wrote 0 only on a y, said nothing at 0, and
left the host's own file at 100.
2026-11-07 11:12:50 -08:00
Anees Iqbal 31207d56d1 🆕 Build reims-ctl's QEMU with SPICE on Linux
QEMU's configure turns SPICE on only where it finds the SPICE server's
development files, and leaves it out without a word where it does not, so a
Linux user had -spice only if those files happened to be installed when the
installer built QEMU. People reach their VMs with SPICE clients, the user who
reported the cursor bug among them, so the installer now installs the SPICE
server with the build's other dependencies (spice on Arch and CachyOS, which
brings spice-protocol; libspice-server-dev on Debian and Ubuntu, which brings
libspice-protocol-dev) and configures QEMU with --enable-spice, as it does
libusb, so that a build without it stops rather than leave it out.
2026-11-07 04:59:54 -08:00
Anees Iqbal 93de5098e3 🐛 Refuse --skip-qemu with no QEMU, and warn of an outdated one
With --skip-qemu and no QEMU installed, the installer warned, installed
reims-ctl, and stopped at __record-install, whose --qemu refuses the empty
path it was given: no install record, no reims-util, and an error that did
not say what to do. Every VM runs on QEMU, so --skip-qemu now ends at once
where none is installed, before it builds anything, saying to run the
installer without it.

A QEMU kept from an older checkout runs on a QEMU source and a library this
checkout may have changed since. Its build's directory names its commit, so
the installer now compares that commit's QEMU source and library inputs
with HEAD's, and warns, saying what to run, where they differ, where the
checkout lacks that commit, or where GPU_ARM picks the other arm. A change
to reims-ctl alone, which --skip-qemu is for, warns of nothing.
2026-11-07 04:59:54 -08:00
Anees Iqbal fe6f1f7d0f 🆕 Pass the host's USB devices through to x86-64 VMs
reims-ctl had no way to give a guest a USB device of the host's: a user wrote
usb-host into extra_args by hand. Now `reims-ctl usb NAME --add DEVICE` and
the interface's USB devices view (p on a VM: a checkbox per device, Space to
give or take back) choose them, as virt-manager, VirtualBox, GNOME Boxes and
UTM offer: a flat list of the devices plugged in, not a tree of hubs.

- A device is kept in vm.toml as a [[usb]] table by its vendor and product
  IDs, which follow it to any port; one chosen beside a device with the same
  IDs is kept by its port too, which tells the two apart. QEMU's usb-host
  matches the same way, on the VM's xHCI controller.
- A device not plugged in when the VM starts joins the guest when it is, and
  one unplugged comes back when plugged in again: QEMU looks for each
  usb-host device's match every 2 s. The view and `start` say so.
- While the VM runs, a change attaches or detaches the device at once, with
  QMP's device_add and device_del, and is kept for the next start.
- A VM takes four at most, what the controller's seven ports leave room for.
- QEMU opens the device's file in /dev/bus/usb, which only root may write by
  default: install-ctl.sh now asks to add a udev rule giving USB devices
  other than hubs to the kvm group and to the user at the screen (uaccess).
  reims-ctl says what lets it open a device it can't, and doctor checks it.
- macOS hosts get none, and the interface says why: macOS gives a USB device
  one of its drivers holds only to a process running as root or holding an
  entitlement Apple grants VM apps, which QEMU here can't hold.

The docs are usb --help and the interface's help.
2026-11-07 04:59:54 -08:00
Anees Iqbal 664935fa06 🎨 Read the bind result from either loader in the gate's guest checks
guest/loader's ReimsGraphicsLoader keeps its log in its own service's
LoaderLog property; the gate's loader is still the older
AppleParavirtGPULoader, with ApvLoadLog. The loader-bind check now reads
whichever of the two the guest runs.
2026-11-05 22:56:01 -08:00
Anees Iqbal d6babcba0f 🆕 Let a round or a gate's correctness boot share the lane host
A boot that times nothing need not hold the whole host. probe-batch.sh's
--shared and lane-gate.sh's --shared-boot dispatch the job with the 5080
alone (no --exclusive), so other jobs' builds can run beside it once its
run.sh's 180 s wait for them ends. The bench boot keeps the whole host.
2026-11-05 22:01:23 -08:00
Anees Iqbal d63a1dbb95 🐛 Save the hang scanout through QMP, and count close restarts
HMP's pmemsave read "SIZE /path" as one expression, SIZE divided by the
path, and answered "invalid char" with no file written, so every hang
snapshot's scanout failed with FileNotFoundError. QMP's pmemsave takes the
path as its own argument and reports a failure as an error.

The hang catcher counted a restart only 120 s after the last one, so car
12's round B, whose four system_resets came 80 s apart, logged two. One
restart's resets and banners come within 10 s, so 30 s now joins them.
2026-11-05 22:01:23 -08:00
Anees Iqbal 9e839ce3da 🔊 Say where a gate job's results came back from
The gate's run log now says, for each result it brings back, whether it came
from the job's --keep or, the job having brought none, from the workspace by
potluck cp. Car 13's run is the first to use --keep, and its log shows which.
2026-11-05 22:01:23 -08:00
Anees Iqbal f2e5443707 🎨 Rewrap pl-job.sh's header to the file's width [ci skip] 2026-11-05 22:01:23 -08:00
Anees Iqbal 71748501ec 🎨 Bring jobs' results back with potluck's --keep
potluck 0.1.1's --keep copies a job's files back when it ends, in place of
the potluck cp from its held workspace afterwards. The gate's build job keeps
lg-out/steps and lg-out/msi-build.txt, each boot keeps lg-out/MODE, and
pl-job.sh keeps results/. Where a job brought back none (one that ended
without its keep), each falls back to potluck cp from the workspace, which
the gate holds for its boots anyway.
2026-11-05 22:01:23 -08:00
Anees Iqbal a129baef51 🐛 Clear a round's probes' old results before its QEMU hook starts
A QEMU hook starts with QEMU and waits for its probe's MARK in
PROBE_RESULTS/NAME/stdout, which msi-probes.sh replaced only at the probe's
start. A probe run before under the same name left its MARK there, so the
hook went on at once, before the guest was up, and the probe's start then
removed everything the hook wrote (round 20261105-111520: c13-mission-c11
ran its four segments into nothing and timed out). msi-round.sh now removes
each of the round's probes' old results before the boot; every earlier round
keeps its own copy in R/probe-results.
2026-11-05 22:01:23 -08:00
Anees Iqbal baf6985495 🐛 Ship the gate run's winmon with a probe round, for msi-drag.py
A probe round's guest payload carried only bench, so a host hook driving
msi-drag.py in one (c13-mission's Mission Control segments) found no
~/lane-gate/winmon: every segment read moved=0, "no TextEdit or Finder
window to lay out" (round 20261105-104754). probe-batch.sh now ships the
gate run's winmon beside bench where the run has one, and msi-round.sh
copies all it ships into the round's payload.
2026-11-05 22:01:22 -08:00
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 74d6ff3cfa 🐛 Keep each probe's results in its round's directory too
PROBE_RESULTS/NAME is replaced by the next round's probe of the same name, so
back-to-back rounds of one probe (the game_6000 controls, c13-raf-rate on our
lane and then on stock) lost the earlier run's stdout. msi-probes.sh now
copies each probe's results to R/probe-results/NAME as well.
2026-11-05 22:01:22 -08:00
Anees Iqbal e5767255d0 🐛 Run the guest's /usr/bin/log for the S1 stream, not zsh's log
The guest's login shell is zsh, whose builtin log takes no arguments, so the
c12-s1 stream ended at once with "too many arguments" and restarted every
half second. s1-base's round on cd46a4e00 caught no guest line.
2026-11-05 22:01:22 -08:00
Anees Iqbal 8b86d447ec 🆕 Ship a lane's host script with a round, and fill in {DIR} in --after
c13-paravirt-perf's profile hook lives with that lane: --bin FILE puts it
beside the gate's host scripts as {DIR}/bin/NAME, and --after now gets the
round's directory for {DIR} as a --qemu-hook does.
2026-11-05 22:01:22 -08:00
Anees Iqbal ccc575cdee 🆕 Copy more lane-host files into a local probe from its .extra
decode-perf's lock run needs media from two probe directories on the lane
host; a local probe's .extra names each file and where it goes.
2026-11-05 22:01:22 -08:00
Anees Iqbal 25d5cea791 🆕 Hard-reset the guest over QMP on a probe's mark, in car 12's hook
fx-decoder's reset item needs three hard resets with QEMU's RssAnon around
each: the hook sends system_reset on a reset probe's mark and records RssAnon
before and 20 s after. spscan.py now starts on spmark.ready, once the marks
are written, rather than 5 s after the start.
2026-11-05 22:01:22 -08:00
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