scripts/internal/lane-gate.sh checks a candidate tree of the graphics-kext
lane end to end and compares it with the last passing baseline, so a landing
is decided by one command instead of a hand-run list.
On the Mac it runs the kext's check against the KDK, the kext's, the bundle's
and RgfxGate's tests, rustfmt, and the cargo tests the change reaches (the
lane's own, plus the packages changed since the baseline and their
dependents), under the GPU lock. Meanwhile, on the lane host, it builds the
candidate's dist, QEMU and option ROM, and a SIP-on OpenCore image carrying
the candidate's kexts, checked back from its ESP.
The verdict comes from a shared correctness boot through rgk-boot2.sh (a VM
slot, then the GPU, in turnstile order): the guest runner checks SIP, the
loaded kexts, the loader's binding, the bundle's signature and the Metal
device, then runs the 57-case sweep, the H.264 and HEVC MD5 sets on the
hardware decoder, Safari WebGL readPixels, present_probe, and checks that
WindowServer lived and no crash report appeared. The host side counts
'reims-vgpu: fatal' lines and checks the desktop composited.
An exclusive bench boot runs after the verdict, without blocking it: the
bench, present_probe, the timed decodes and QEMU's CPU, compared with the
baseline's medians inside a noise band measured from repeated passes.
Steps record their results, so a pass resumes where it stopped.