From 0f4114c882a64ac1c980379cf10f880cd866de3d Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 3 Dec 2026 05:51:39 -0800 Subject: [PATCH] Tests: every public fixture compiles on every profile without a translator bug, at every landing The merge check passes over golden_hashes_match_the_table and the public fixtures' inventory tests, which are often due for a bless, so the one sweep that compiles every public fixture's subjects on every committed profile under the runtime's policy, and refuses a translator bug (an internal error, such as a strategy's read of an unplaced push field), ran at no landing. This test builds the same table with the golden check's own builder and compares no hash: it fails only on a translator bug, and its name is outside the bless-due filter. --- crates/metal2vulkan/src/tests/golden_hashes.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/crates/metal2vulkan/src/tests/golden_hashes.rs b/crates/metal2vulkan/src/tests/golden_hashes.rs index 0fd91ab6a..fa6dd2a4b 100644 --- a/crates/metal2vulkan/src/tests/golden_hashes.rs +++ b/crates/metal2vulkan/src/tests/golden_hashes.rs @@ -956,6 +956,23 @@ fn golden_hashes_match_the_table() { matches_the_table(DEFAULT, &devices, &observed); } +/// Every public fixture's subjects on every committed profile under the default policy, the +/// runtime's, built as [`golden_hashes_match_the_table`] builds its table, with no hash compared: +/// it fails only where a compile ends in a translator bug (an internal error, such as a strategy's +/// read of a push field the plan did not place), which building a cell refuses. The golden check +/// is often due for a bless; this one is not, so it runs where that one is passed over. +#[test] +fn every_public_fixture_compiles_on_every_profile_without_a_translator_bug() { + let devices = devices(); + let observed = observe(DEFAULT, &devices); + eprintln!( + "{} rows x {} profiles compiled with no translator bug ({} fixture(s) skipped)", + observed.table.rows.len(), + devices.len(), + observed.skipped.len() + ); +} + /// `golden`'s committed table holds `observed` cell for cell. fn matches_the_table(golden: Golden, devices: &[(String, Device)], observed: &Observed) { let table = golden.table;