Commit Graph
3 Commits
Author SHA1 Message Date
Anees Iqbal 53bac3dd47 matrix: a card's leg of record by node, extra legs on its other nodes, and an open record that lists their wrong-bytes failures
A card the lab holds on more than one node now runs on each of them when the matrix config names
its node of record (`record_nodes`, card to node). The leg on that node is the card's leg of
record, named by the card as before. Each other node's is an extra leg, `card@node`, judged like
any leg and held to the card's ceilings, floors and variance rows (results.card_of): timing rows
are judged on both. An AMD extra leg selects its device by its card.

An extra leg named in `open_records` (leg to a one-line record) has an open record against its
card. A failed test there is listed with the record and not judged only if both hold:
- it failed with wrong bytes;
- the card's leg of record ran the same suite at the same commit and the test did not fail there.
Every other failure on that leg is judged like any other.

How wrong bytes are told, from the test's captured output after nextest's summary (parse_suite's
`wrong_bytes`):
- its status is FAIL; a TIMEOUT, a signal or a leak never counts;
- its output has Rust's `assertion `left == right` failed` with both sides, `left:` and `right:`,
  lists of numbers (the bytes, words or texels read against those expected), so a compare of one
  value, a count, does not count;
- no line names a device loss (DEVICE_LOST, device lost) or a validation message (VUID-,
  Validation Error).
Any other output, a panic of another message included, is not wrong bytes, so it is judged.

Node names stay in the config, not here. The config this needs for the 3090s:
"record_nodes": {"10de:2204": <um870's node>}, "open_records": {"10de:2204@<ms01's node>": <the
record's line>}.

Verified: scripts/matrix/test_results.py and test_matrix.py pass at this commit in a potluck job
on msi. The new tests check that only an assertion of two lists of numbers reads as wrong bytes
(not a count compare, a device loss, a validation message, an unwrap or a timeout); that an extra
leg lists a wrong-bytes failure only where it passed on the leg of record, and judges the rest;
that an extra leg takes its card's limits; and that the plan makes a leg of record plus an extra
leg from `record_nodes` (and no leg of record when that node is away).
2026-11-18 12:30:43 -08:00
Anees Iqbal 0afc54c573 rt tests: every instance runs under the validation layer, its log checked
Every instance rt's device tests open goes through one helper, crate::tests::validation. It
enables VK_LAYER_KHRONOS_validation for its own test process through the loader's and the
layer's own variables (VK_INSTANCE_LAYERS; report flags error,warn, debug action log, one log
file per process). It checks that every device of the cfg's kind lists an active validation
tool (vkGetPhysicalDeviceToolProperties), so a run whose loader found no layer fails. Once the
instance is gone, it reads the log, prints each line with the test's name and fails on any
message. The 41 sites that called Instance::new go through it; the exit-handler test reads its
child's log, since the child's instance never drops. One test makes a deliberately invalid
call (a buffer of size 0, refused by the layer) and checks that its log holds exactly
VUID-VkBufferCreateInfo-size-00912.

The product keeps no layer code and no variable read. Its one change is a visibility:
Instance's shared state is pub(crate), so the helper waits, bounded, on a weak handle of it
until the instance is gone, and only then reads the log.

scripts/validation-layer makes the layer's directory, one version (1.4.363.0) on every leg, as
a carry: Linux's copied from a node whose pacman package is that version and unaltered,
Windows's from MSYS2's clang64 packages checked against the package database's SHA-256, and
macOS's from a Homebrew install at that version. scripts/matrix carries it to every job that
runs rt's device tests (GPU legs, lavapipe, the Windows host), points VK_LAYER_PATH at it, and
puts the layer's version in the leg's note. A job without the layer says so and points the
loader at none. The harness's timing jobs run without it.

Verified: the matrix's unit tests (48, two new ones run the layer's shell for real) and the
layer carry made. Builds and legs follow.
2026-11-18 12:17:31 -08:00
Anees Iqbal 813dd5cfd7 matrix: jobs sized from whole builds' peaks, and a job short of RAM runs again with twice its room up to the default
The UHD leg of matrix e060958855 lost its Windows build twice to memory:
45442 at 3 GiB (137), then the retry 45471 at 6 GiB (rustc-LLVM out of
memory, 137), and the leg failed with no tests run. The sizing took the
last three runs' peaks, incremental builds in a kept workspace that peak
far below a build of most of the tree, and a job short of RAM ran once more
only, at twice its room.

Now a job's RAM is 1.3x the largest peak of the last three runs that
started in a fresh workspace (each run records whether it did), else the
kind's default; minutes still follow the last three runs of either form.
A job short of RAM runs again with twice its room until it reaches the
kind's default (16 GiB for winbuild).

Verified: scripts/matrix tests, 39 OK, run locally. The new test_matrix.py
fails on the old code (it sized from incremental peaks and retried once:
dispatches 4 and 8 GiB, not 4, 8 and 16).
2026-11-18 02:57:17 -08:00