matrix: the GPU legs run the replay player's stream device tests; status rows lose closed owners

The GPU legs' archive held metal2vulkan-rt alone, so the replay player's
stream device tests (metal2vulkan-validation's runtime_lane::replay_streams,
17 on the old runtime, and runtime_lane::rt_replay, 24 on the new) ran on
lavapipe only. A break in the player or a runtime's stream path that only a
GPU shows waited for a lane's play of a recorded stream to find it, as the
old arm's pin stop did. The archive now holds the validation crate too, and a
leg runs the runtime's tests and those two modules (DEVICE_TEST_FILTER). The
Windows leg is unchanged until the validation crate is shown to build there.

status.tsv, by the planner's ruling of 2026-11-18:
- 10de:1e87 frame_5cb is a gap row: the runtime guide's known gaps carry it
  (crates/metal2vulkan-rt/README.md, NVIDIA's latency per submission).
- 8086:a7a0 frame_5cb and 10de:2204 create_state/first are within their
  limits; their closed lanes' names are cleared (a row gets an owner when it
  goes over).
- identity's rows wait for their card's native table, the guest-visible test;
  "Iris swing unresolved" was stale.

Verified: see the check job named in the landing message (unit tests of the
matrix script, the archive built with both packages under --cfg m2v_gpu, the
filter's selection listed, and the selected tests run on a GPU).
This commit is contained in:
Anees Iqbal committed 2026-11-18 23:14:02 -08:00
1 parent 1ee16e6a0f
commit b28b4975b5
4 files changed
+45 -19

No files matched your search

+1 -1
View File
@@ -314,7 +314,7 @@ holds them, then times each GPU in a job of its own.
| Leg | Runs | Built |
|---|---|---|
| Each GPU of a Linux node | `metal2vulkan-rt`'s tests under `--cfg m2v_gpu`, under the validation layer, the GPU chosen by `VK_DRIVER_FILES` and, on Mesa, `MESA_VK_DEVICE_SELECT='vendor:device!'`; then, in a job that holds the node alone (`--exclusive`) and times this one GPU, the harness's timed workloads (`crates/metal2vulkan-harness`), both runtimes in one process (`harness --runtime new,old`), the leg's suite `harness` | Once per commit on a CPU node: the tests as a nextest archive, the harness as a release build; both carried to the GPU nodes, which only run them. The archive holds its build's paths, so every node lays the tree out at the same per-commit path. Its binaries run only where the builder's do: a node of another CPU builds its own, in a job that holds no GPU |
| Each GPU of a Linux node | `metal2vulkan-rt`'s tests and the replay player's stream device tests (`metal2vulkan-validation`'s `runtime_lane::replay_streams` and `runtime_lane::rt_replay`) under `--cfg m2v_gpu`, under the validation layer, the GPU chosen by `VK_DRIVER_FILES` and, on Mesa, `MESA_VK_DEVICE_SELECT='vendor:device!'`; then, in a job that holds the node alone (`--exclusive`) and times this one GPU, the harness's timed workloads (`crates/metal2vulkan-harness`), both runtimes in one process (`harness --runtime new,old`), the leg's suite `harness` | Once per commit on a CPU node: the tests as a nextest archive, the harness as a release build; both carried to the GPU nodes, which only run them. The archive holds its build's paths, so every node lays the tree out at the same per-commit path. Its binaries run only where the builder's do: a node of another CPU builds its own, in a job that holds no GPU |
| The Windows host's GPU | The same tests (under the validation layer) and harness, built on the host under MSYS2 CLANG64 (the pinned nightly's `x86_64-pc-windows-gnullvm` toolchain) | On the host, in a job that holds no GPU |
| `lavapipe` | The gate's suites and the device tests (`metal2vulkan-rt`'s under the validation layer) in one build under `--cfg m2v_cpu_icd` (`cargo nextest run --workspace`, then the doctests), `LP_NUM_THREADS=1` | In place, on the builder |
| `lint` | The gate's `cargo fmt --all --check`, clippy with `-D warnings` plain, under `--cfg m2v_gpu` and under `--cfg m2v_cpu_icd`, and Rustdoc with `-D warnings`, each its own suite | In place, on the builder, beside its other jobs |
+10 -2
View File
@@ -88,6 +88,14 @@ KEEP = r"""f == 0 { print; if ($0 ~ /^ *Summary \[/) f = 1; next }
/^ +[A-Z][A-Z-]* +\[ *[0-9.]+s\]/ { k = ($1 != "PASS") }
k || /M2V-MATRIX / { print }"""
NEXTEST_OUT = "--no-fail-fast --success-output final --failure-output final"
#: The packages of the GPU legs' device-test archive, and the tests of it a leg runs:
#: `metal2vulkan-rt`'s, and the replay player's stream device tests on both runtimes
#: (`metal2vulkan-validation`'s `runtime_lane::replay_streams` and `runtime_lane::rt_replay`), each
#: of which writes and plays its own small stream. A break in the player or in a runtime's stream
#: path that only a GPU shows would otherwise wait for a lane's play of a recorded stream to find it.
DEVICE_TEST_PACKAGES = ("metal2vulkan-rt", "metal2vulkan-validation")
DEVICE_TEST_FILTER = ("package(metal2vulkan-rt) | (package(metal2vulkan-validation)"
" & test(/^runtime_lane::(replay_streams|rt_replay)::/))")
#: A failed allocation in a job's output: a device or host allocation Vulkan refused, or Rust's.
STARVED = re.compile(r"OUT_OF_(DEVICE|HOST)_MEMORY|memory allocation of \d+ bytes failed")
DEVICE_LINES = (r"""vulkaninfo --summary 2>/dev/null | tr -d '\r' | sed -n 's/^[[:space:]]*\(deviceName\|driverName\|driverInfo\|driverVersion\)[[:space:]]*= */M2V-DEVICE '"{leg}"' \1 /p'""")
@@ -288,7 +296,7 @@ cargo build --release -p metal2vulkan-harness --bin harness && cp -f target/rele
h=$?""" if harness else "\nh=0")
return linux_head(short, setup) + f"""W=$PWD
lay_out || exit 3
cd "$S" && RUSTFLAGS='--cfg m2v_gpu' CARGO_TARGET_DIR="$S/target/gpucfg" cargo nextest archive -p metal2vulkan-rt --all-features --archive-file "$W/{ARCHIVE}"
cd "$S" && RUSTFLAGS='--cfg m2v_gpu' CARGO_TARGET_DIR="$S/target/gpucfg" cargo nextest archive {" ".join(f"-p {p}" for p in DEVICE_TEST_PACKAGES)} --all-features --archive-file "$W/{ARCHIVE}"
a=$?
cd "$W" && rm -rf "$S"{timed}
echo "M2V-BUILD exit $a $h"
@@ -305,7 +313,7 @@ def gpu_script(short, setup, legs, mirror, rev, suite, last, layer=None, cpu=Non
for leg in legs)
if suite == "rt":
file, body = ARCHIVE, f"""{layer_lines(layer, 'linux', '$1')}
cargo nextest run --archive-file "$F" --workspace-remap "$S" {NEXTEST_OUT} 2>&1 | awk "$KEEP"
cargo nextest run --archive-file "$F" --workspace-remap "$S" -E '{DEVICE_TEST_FILTER}' {NEXTEST_OUT} 2>&1 | awk "$KEEP"
exit ${{PIPESTATUS[0]}}"""
else:
file, body = HARNESS, harness_runs('"$S/crates/metal2vulkan-harness"', '"$F"', '$1', cpu=cpu)
+14 -16
View File
@@ -22,21 +22,19 @@ card | row | status | who
8086:3e9b | create_private_16MiB/first_take | open | memory2 | 5f2494bfc5 | -
8086:a7a0 | create_64MiB/first_take | open | memory2 | 5f2494bfc5 | -
8086:a7a0 | create_private_16MiB/first_take | open | memory2 | 5f2494bfc5 | -
10de:2204 | create_state/first | open | entry | 5f2494bfc5 | -
1002:699f | wide_bindings | open | identity | 5f2494bfc5 | -
8086:3e9b | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | -
8086:a7a0 | row_cells | open | identity | 795c834ded | -
8086:a7a0 | constant_managed | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | constant_private | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | constexpr_sampling | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | sampling_deep_512x512x16 | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | sampling_deep_512x512x16_16x16x1 | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | sampling_deep_512x512x16_4x4x4 | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | sampling_deep_512x512x16_8x8x1 | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | threadgroup_scan | open | identity | 5f2494bfc5 | Iris swing unresolved
8086:a7a0 | waves | open | identity | 5f2494bfc5 | Iris swing unresolved
10de:1e87 | frame_5cb | open | core | 140714ceae | latency from idle equal; throughput 8-14% behind
1002:699f | wide_bindings | open | identity | 5f2494bfc5 | waits for the card's native table
8086:3e9b | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | row_cells | open | identity | 795c834ded | waits for the card's native table
8086:a7a0 | constant_managed | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | constant_private | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | constexpr_sampling | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | sampling_deep_512x512x16 | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | sampling_deep_512x512x16_16x16x1 | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | sampling_deep_512x512x16_4x4x4 | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | sampling_deep_512x512x16_8x8x1 | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | threadgroup_scan | open | identity | 5f2494bfc5 | waits for the card's native table
8086:a7a0 | waves | open | identity | 5f2494bfc5 | waits for the card's native table
10de:1e87 | frame_5cb | gap | the planner's ruling of 2026-11-18 | - | the runtime guide's known gaps: NVIDIA's latency per submission; throughput 8-14% behind, latency from idle equal
10de:1e87 | frame | note | - | - | new ahead in throughput and in latency from idle
8086:a7a0 | frame_5cb | open | core | 140714ceae | latency from idle ahead; throughput about 8% behind, the ranges overlapping
8086:a7a0 | frame | note | - | - | new ahead in throughput and in latency from idle
1 # The status of each harness row the matrix's report lists over its limit (results.over_rows),
22 8086:3e9b | create_private_16MiB/first_take | open | memory2 | 5f2494bfc5 | -
23 8086:a7a0 | create_64MiB/first_take | open | memory2 | 5f2494bfc5 | -
24 8086:a7a0 | create_private_16MiB/first_take | open | memory2 | 5f2494bfc5 | -
25 10de:2204 | create_state/first | open | entry | 5f2494bfc5 | - 1002:699f | wide_bindings | open | identity | 5f2494bfc5 | waits for the card's native table
26 1002:699f | wide_bindings | open | identity | 5f2494bfc5 | - 8086:3e9b | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | waits for the card's native table
27 8086:3e9b | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | - 8086:a7a0 | row_cells | open | identity | 795c834ded | waits for the card's native table
28 8086:a7a0 | row_cells | open | identity | 795c834ded | - 8086:a7a0 | constant_managed | open | identity | 5f2494bfc5 | waits for the card's native table
29 8086:a7a0 | constant_managed | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | constant_private | open | identity | 5f2494bfc5 | waits for the card's native table
30 8086:a7a0 | constant_private | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | constexpr_sampling | open | identity | 5f2494bfc5 | waits for the card's native table
31 8086:a7a0 | constexpr_sampling | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | sampling_deep_512x512x16 | open | identity | 5f2494bfc5 | waits for the card's native table
32 8086:a7a0 | sampling_deep_512x512x16 | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | sampling_deep_512x512x16_16x16x1 | open | identity | 5f2494bfc5 | waits for the card's native table
33 8086:a7a0 | sampling_deep_512x512x16_16x16x1 | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | sampling_deep_512x512x16_4x4x4 | open | identity | 5f2494bfc5 | waits for the card's native table
34 8086:a7a0 | sampling_deep_512x512x16_4x4x4 | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | sampling_deep_512x512x16_8x8x1 | open | identity | 5f2494bfc5 | waits for the card's native table
35 8086:a7a0 | sampling_deep_512x512x16_8x8x1 | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | waits for the card's native table
36 8086:a7a0 | sampling_deep_64x64x16 | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | threadgroup_scan | open | identity | 5f2494bfc5 | waits for the card's native table
37 8086:a7a0 | threadgroup_scan | open | identity | 5f2494bfc5 | Iris swing unresolved 8086:a7a0 | waves | open | identity | 5f2494bfc5 | waits for the card's native table
38 8086:a7a0 | waves | open | identity | 5f2494bfc5 | Iris swing unresolved 10de:1e87 | frame_5cb | gap | the planner's ruling of 2026-11-18 | - | the runtime guide's known gaps: NVIDIA's latency per submission; throughput 8-14% behind, latency from idle equal
10de:1e87 | frame_5cb | open | core | 140714ceae | latency from idle equal; throughput 8-14% behind
39 10de:1e87 | frame | note | - | - | new ahead in throughput and in latency from idle
8086:a7a0 | frame_5cb | open | core | 140714ceae | latency from idle ahead; throughput about 8% behind, the ranges overlapping
40 8086:a7a0 | frame | note | - | - | new ahead in throughput and in latency from idle
+20
View File
@@ -234,5 +234,25 @@ class JudgingRuleTests(unittest.TestCase):
self.assertIn(f"-v skipre='{matrix.results.retime_skip(cpu)}'", script)
class DeviceTestTests(unittest.TestCase):
"""The GPU legs' archive holds the replay player's stream device tests beside the runtime's,
and a leg runs exactly those two sets."""
def test_the_archive_holds_the_validation_crate_beside_the_runtime(self):
script = matrix.build_script("abc", "", False)
self.assertIn("cargo nextest archive -p metal2vulkan-rt -p metal2vulkan-validation --all-features", script)
def test_a_leg_runs_the_runtime_s_tests_and_the_two_stream_modules(self):
leg = matrix.Leg("1002:15bf", "n", "0000:c7:00.0", "radeon")
script = matrix.gpu_script("abc", "", [leg], "POTLUCK_MIRROR_x", "0" * 40, "rt", False)
self.assertIn(f"-E '{matrix.DEVICE_TEST_FILTER}'", script)
self.assertIn("test(/^runtime_lane::(replay_streams|rt_replay)::/)", matrix.DEVICE_TEST_FILTER)
def test_the_harness_suite_takes_no_test_filter(self):
leg = matrix.Leg("1002:15bf", "n", "0000:c7:00.0", "radeon")
script = matrix.gpu_script("abc", "", [leg], "POTLUCK_MIRROR_x", "0" * 40, "harness", False)
self.assertNotIn(matrix.DEVICE_TEST_FILTER, script)
if __name__ == "__main__":
unittest.main()