Validation: the tests that named the runtime path's answers expect its requirements

Job m3-max-58543 failed four tests the deleted path changed:
- the runtime guard's closure listed env_vars.rs, library/mod.rs and repro.rs as reached but
  not inputs; only the old runtime's sources reached them, so they leave the list (job
  m3-max-58562 named exactly these three);
- the census's and the triage's mesh rows now carry mesh_render_pipeline (3 rows, and the
  effect-free mesh rows carry it alone);
- the mixed-run template test now reads replayed_template_resources where the executor
  refused in prose before.

Verified: the compile gate on this commit; the landing note names its job and codes.
This commit is contained in:
Anees Iqbal committed 2026-11-20 06:11:06 -08:00
1 parent bbe17feb08
commit a3ab27ce63
4 files changed
+19 -13

No files matched your search

@@ -141,9 +141,7 @@ fn the_runtime_sources_are_the_committed_ones() {
("metal2vulkan-air/src/lib.rs", compile),
("metal2vulkan/src/cache/digest.rs", "the content digest, which defines the artifact rather than acting on it"),
("metal2vulkan/src/cache/mod.rs", "the plan's specialization and variant keys, whose values the plan digest holds, and RUNTIME_VERSION itself, which cannot be among the sources it versions"),
("metal2vulkan/src/env_vars.rs", "the operational variables' accessors: the runtime reads only METAL2VULKAN_LOG_PIPELINES, METAL2VULKAN_DUMP_PIPELINES, METAL2VULKAN_LOG_MEMORY, METAL2VULKAN_LOG_SHADOWS, METAL2VULKAN_LOG_PASSES, METAL2VULKAN_PENDING_AUDIT, METAL2VULKAN_QUEUE_TIMES, METAL2VULKAN_ENCODER_TRAIL and METAL2VULKAN_ENCODER_TIMES, default-off diagnostics that print (and write the pipelines' SPIR-V into the dump directory), note command buffers' queue times, submit each encoder alone or time each encoder with timestamps of its own, and change no run's answers"),
("metal2vulkan/src/error/mod.rs", "the error vocabulary: the runtime's code decides which error a run reports, and a record keeps the error as reported"),
("metal2vulkan/src/library/mod.rs", compile),
("metal2vulkan/src/lower/access/imageblock.rs", compile),
("metal2vulkan/src/lower/access/mod.rs", "compile-time translation, reached only from lower/dispatch.rs's kernel plan, which asks `identity` whether the profile takes the identity domains; what it produces is in the pipeline the artifact digests"),
("metal2vulkan/src/lower/access/tile.rs", "compile-time translation, reached only from the compile-time parts of mixed runtime files; what it produces is in the pipeline the artifact digests; the tile staging format reaches a run through the plan"),
@@ -189,7 +187,6 @@ fn the_runtime_sources_are_the_committed_ones() {
("metal2vulkan/src/pipeline/sym.rs", "the compiled pipeline's value types; the artifact digests their values (slots, push fields, handle classes)"),
("metal2vulkan/src/pipeline/vertex.rs", "the compiled pipeline's value types; the artifact digests their values (the vertex layout)"),
("metal2vulkan/src/reflection/mod.rs", "Metal's reflection answers, which the runtime returns beside a pipeline state it creates or for a library's function, and the bindings it lays an argument encoder out from (`new_argument_encoder_with_buffer_binding`); no run reads them or makes such an encoder"),
("metal2vulkan/src/repro.rs", "the FALLBACK repro bundle's writer, a default-off diagnostic: the runtime writes a bundle for a creation it refuses only where METAL2VULKAN_REPRO_DIR names a directory, and the bundle changes no run's answers"),
("metal2vulkan/src/spirv/builder/constructs.rs", spirv),
("metal2vulkan/src/spirv/builder/mod.rs", spirv),
("metal2vulkan/src/spirv/error.rs", spirv),
@@ -2477,9 +2477,10 @@ fn replay_templates_skip_another_familys_literal_and_map_both_families_of_a_mixe
.case
.command_buffers
.push(executed_command_buffer(compute_commands()));
let error = replay_templates(&checked).err().unwrap().to_string();
let error = replay_templates(&checked).err().unwrap();
assert!(
error.contains("binds more than buffers and threadgroup memory"),
matches!(&error, ExecutorError::NotSupported(NotSupported::Requirements(requirements))
if requirements.contains(&ToolingRequirement::ReplayedTemplateResources)),
"{error}"
);
+10 -6
View File
@@ -552,10 +552,11 @@ mod tests {
/// Object and mesh functions are rows like any other, read through the one stage vocabulary
/// (`case::Stage`): a public module declaring one of each is two entry rows of those stages,
/// and a private module declaring a mesh function is its shard's row. A cold census reflects
/// and classifies all three: the object function draws with the generated launch observer of
/// its payload, and each mesh function, which sets its primitive's ID but no position and
/// writes no device memory, carries `mesh_companion` (a fragment stage no executor generates),
/// so it is classified and unresolved, never skipped; a warm pass selects and reads nothing.
/// and classifies all three: each carries `mesh_render_pipeline` (no candidate draws a mesh
/// render pipeline), the object function draws with the generated launch observer of its
/// payload, and each mesh function, which sets its primitive's ID but no position and writes no
/// device memory, also carries `mesh_companion` (a fragment stage no executor generates), so
/// each is classified and unresolved, never skipped; a warm pass selects and reads nothing.
#[test]
fn object_and_mesh_rows_are_indexed_and_classified() {
let scratch = ScratchDir::new("census-mesh-rows").unwrap();
@@ -630,10 +631,13 @@ mod tests {
assert_eq!(cold.summary.total_sources, 3);
assert_eq!(cold.summary.classified_sources, 3);
assert_eq!(cold.summary.remaining_sources(), 0);
assert_eq!(cold.summary.unresolved_sources, 2, "{:?}", cold.summary);
assert_eq!(cold.summary.unresolved_sources, 3, "{:?}", cold.summary);
assert_eq!(
cold.summary.requirements,
BTreeMap::from([(ToolingRequirement::MeshCompanion, 2)]),
BTreeMap::from([
(ToolingRequirement::MeshCompanion, 2),
(ToolingRequirement::MeshRenderPipeline, 3),
]),
"{:?}",
cold.summary
);
+6 -2
View File
@@ -2311,7 +2311,7 @@ define void @{name}(ptr addrspace(2) %ab, ptr addrspace(1) %out) {{
/// A mesh function that sets no vertex or primitive and writes nothing (an empty body, or a
/// primitive count alone, constant or read from its payload) has no effect a stage observes:
/// its row draws with rasterization off and an empty observation, needs no stage, and carries
/// no requirement.
/// only the requirement every mesh row carries (`mesh_render_pipeline`).
#[test]
fn an_effect_free_mesh_row_needs_no_stage() {
for (module, entry) in [
@@ -2334,7 +2334,11 @@ define void @{name}(ptr addrspace(2) %ab, ptr addrspace(1) %out) {{
),
] {
let classified = classify(&entry_of(module, entry)).unwrap();
assert_eq!(classified.tooling_requirements, [], "{entry}");
assert_eq!(
classified.tooling_requirements,
[ToolingRequirement::MeshRenderPipeline],
"{entry}"
);
let draw = classified.mesh_draw.expect("a mesh draw");
assert!(draw.missing.is_empty(), "{entry}: {:?}", draw.missing);
}