From 93e3346a07b5fdfdff549ad79d92028c4204499b Mon Sep 17 00:00:00 2001 From: Elvis33LE Date: Fri, 4 Dec 2026 03:49:48 +0100 Subject: [PATCH] test(ci): consolidate integration tests into tests/it across 6 crates Move 29 top-level integration test files into one `it` executable per crate (automation, eval, formats, nodes) or the existing one (engine, ui-egui), cutting the test executables of these crates from 42 to 16 and their total size by 245.5 MiB without removing or weakening any test. Kept standalone on purpose: engine `session` (hostile-input sweep command in AGENTS.md), ui-egui `snapshot`, `language_switching` (process-global locale) and `resize` (global Rayon pool wait), render's single `view_settings`. --- crates/automation/tests/it/main.rs | 5 +++++ crates/automation/tests/{ => it}/normal_maps.rs | 0 .../automation/tests/{ => it}/package_files.rs | 0 .../automation/tests/{ => it}/view_settings.rs | 0 crates/engine/tests/it/main.rs | 1 + .../engine/tests/{ => it}/package_resources.rs | 0 crates/eval/tests/{ => it}/filter_tiling.rs | 0 .../tests/{ => it}/instance_image_properties.rs | 0 .../eval/tests/{ => it}/instance_pixel_size.rs | 0 crates/eval/tests/it/main.rs | 7 +++++++ crates/eval/tests/{ => it}/pattern_opacity.rs | 0 crates/eval/tests/{ => it}/seed_arithmetic.rs | 0 crates/formats/tests/{ => it}/bitmap_imports.rs | 0 crates/formats/tests/{ => it}/curve_tables.rs | 0 .../formats/tests/{ => it}/explorer_folders.rs | 0 crates/formats/tests/{ => it}/font_fallback.rs | 0 .../formats/tests/{ => it}/foreign_resources.rs | 0 .../formats/tests/{ => it}/function_library.rs | 4 ++-- .../formats/tests/{ => it}/fx_map_roughness.rs | 0 crates/formats/tests/{ => it}/gradient_values.rs | 0 .../formats/tests/{ => it}/graph_attributes.rs | 0 .../tests/{ => it}/library_native_ports.rs | 0 crates/formats/tests/it/main.rs | 16 ++++++++++++++++ .../tests/{ => it}/parity_function_loop.rs | 0 .../tests/{ => it}/parity_input_defaults.rs | 0 .../formats/tests/{ => it}/project_packages.rs | 0 .../tests/{ => it}/resource_replacements.rs | 0 .../nodes/tests/{ => it}/atomic_filter_parity.rs | 0 crates/nodes/tests/{ => it}/brick_primitives.rs | 0 crates/nodes/tests/{ => it}/distance.rs | 0 crates/nodes/tests/{ => it}/fx_map_opacity.rs | 0 crates/nodes/tests/{ => it}/fx_map_regions.rs | 0 crates/nodes/tests/it/main.rs | 8 ++++++++ .../nodes/tests/{ => it}/parity_unconnected.rs | 0 crates/ui-egui/tests/{ => it}/flatpak_updates.rs | 4 ++-- crates/ui-egui/tests/it/main.rs | 1 + docs/atomic-parity-improvements.md | 4 ++-- docs/parity-fixes.md | 8 ++++---- docs/testing-ci.md | 4 +++- 39 files changed, 51 insertions(+), 11 deletions(-) create mode 100644 crates/automation/tests/it/main.rs rename crates/automation/tests/{ => it}/normal_maps.rs (100%) rename crates/automation/tests/{ => it}/package_files.rs (100%) rename crates/automation/tests/{ => it}/view_settings.rs (100%) rename crates/engine/tests/{ => it}/package_resources.rs (100%) rename crates/eval/tests/{ => it}/filter_tiling.rs (100%) rename crates/eval/tests/{ => it}/instance_image_properties.rs (100%) rename crates/eval/tests/{ => it}/instance_pixel_size.rs (100%) create mode 100644 crates/eval/tests/it/main.rs rename crates/eval/tests/{ => it}/pattern_opacity.rs (100%) rename crates/eval/tests/{ => it}/seed_arithmetic.rs (100%) rename crates/formats/tests/{ => it}/bitmap_imports.rs (100%) rename crates/formats/tests/{ => it}/curve_tables.rs (100%) rename crates/formats/tests/{ => it}/explorer_folders.rs (100%) rename crates/formats/tests/{ => it}/font_fallback.rs (100%) rename crates/formats/tests/{ => it}/foreign_resources.rs (100%) rename crates/formats/tests/{ => it}/function_library.rs (98%) rename crates/formats/tests/{ => it}/fx_map_roughness.rs (100%) rename crates/formats/tests/{ => it}/gradient_values.rs (100%) rename crates/formats/tests/{ => it}/graph_attributes.rs (100%) rename crates/formats/tests/{ => it}/library_native_ports.rs (100%) create mode 100644 crates/formats/tests/it/main.rs rename crates/formats/tests/{ => it}/parity_function_loop.rs (100%) rename crates/formats/tests/{ => it}/parity_input_defaults.rs (100%) rename crates/formats/tests/{ => it}/project_packages.rs (100%) rename crates/formats/tests/{ => it}/resource_replacements.rs (100%) rename crates/nodes/tests/{ => it}/atomic_filter_parity.rs (100%) rename crates/nodes/tests/{ => it}/brick_primitives.rs (100%) rename crates/nodes/tests/{ => it}/distance.rs (100%) rename crates/nodes/tests/{ => it}/fx_map_opacity.rs (100%) rename crates/nodes/tests/{ => it}/fx_map_regions.rs (100%) create mode 100644 crates/nodes/tests/it/main.rs rename crates/nodes/tests/{ => it}/parity_unconnected.rs (100%) rename crates/ui-egui/tests/{ => it}/flatpak_updates.rs (82%) diff --git a/crates/automation/tests/it/main.rs b/crates/automation/tests/it/main.rs new file mode 100644 index 000000000..0c83a931c --- /dev/null +++ b/crates/automation/tests/it/main.rs @@ -0,0 +1,5 @@ +//! One integration-test executable avoids linking the same dependencies for every feature. + +mod normal_maps; +mod package_files; +mod view_settings; diff --git a/crates/automation/tests/normal_maps.rs b/crates/automation/tests/it/normal_maps.rs similarity index 100% rename from crates/automation/tests/normal_maps.rs rename to crates/automation/tests/it/normal_maps.rs diff --git a/crates/automation/tests/package_files.rs b/crates/automation/tests/it/package_files.rs similarity index 100% rename from crates/automation/tests/package_files.rs rename to crates/automation/tests/it/package_files.rs diff --git a/crates/automation/tests/view_settings.rs b/crates/automation/tests/it/view_settings.rs similarity index 100% rename from crates/automation/tests/view_settings.rs rename to crates/automation/tests/it/view_settings.rs diff --git a/crates/engine/tests/it/main.rs b/crates/engine/tests/it/main.rs index c4e94e36d..8e82190f4 100644 --- a/crates/engine/tests/it/main.rs +++ b/crates/engine/tests/it/main.rs @@ -25,6 +25,7 @@ mod node_library; mod normal_maps; mod open_documents; mod optimization_perf; +mod package_resources; mod parameter_functions; mod pattern_graph; mod perf; diff --git a/crates/engine/tests/package_resources.rs b/crates/engine/tests/it/package_resources.rs similarity index 100% rename from crates/engine/tests/package_resources.rs rename to crates/engine/tests/it/package_resources.rs diff --git a/crates/eval/tests/filter_tiling.rs b/crates/eval/tests/it/filter_tiling.rs similarity index 100% rename from crates/eval/tests/filter_tiling.rs rename to crates/eval/tests/it/filter_tiling.rs diff --git a/crates/eval/tests/instance_image_properties.rs b/crates/eval/tests/it/instance_image_properties.rs similarity index 100% rename from crates/eval/tests/instance_image_properties.rs rename to crates/eval/tests/it/instance_image_properties.rs diff --git a/crates/eval/tests/instance_pixel_size.rs b/crates/eval/tests/it/instance_pixel_size.rs similarity index 100% rename from crates/eval/tests/instance_pixel_size.rs rename to crates/eval/tests/it/instance_pixel_size.rs diff --git a/crates/eval/tests/it/main.rs b/crates/eval/tests/it/main.rs new file mode 100644 index 000000000..e9b56e4a4 --- /dev/null +++ b/crates/eval/tests/it/main.rs @@ -0,0 +1,7 @@ +//! One integration-test executable avoids linking the same dependencies for every feature. + +mod filter_tiling; +mod instance_image_properties; +mod instance_pixel_size; +mod pattern_opacity; +mod seed_arithmetic; diff --git a/crates/eval/tests/pattern_opacity.rs b/crates/eval/tests/it/pattern_opacity.rs similarity index 100% rename from crates/eval/tests/pattern_opacity.rs rename to crates/eval/tests/it/pattern_opacity.rs diff --git a/crates/eval/tests/seed_arithmetic.rs b/crates/eval/tests/it/seed_arithmetic.rs similarity index 100% rename from crates/eval/tests/seed_arithmetic.rs rename to crates/eval/tests/it/seed_arithmetic.rs diff --git a/crates/formats/tests/bitmap_imports.rs b/crates/formats/tests/it/bitmap_imports.rs similarity index 100% rename from crates/formats/tests/bitmap_imports.rs rename to crates/formats/tests/it/bitmap_imports.rs diff --git a/crates/formats/tests/curve_tables.rs b/crates/formats/tests/it/curve_tables.rs similarity index 100% rename from crates/formats/tests/curve_tables.rs rename to crates/formats/tests/it/curve_tables.rs diff --git a/crates/formats/tests/explorer_folders.rs b/crates/formats/tests/it/explorer_folders.rs similarity index 100% rename from crates/formats/tests/explorer_folders.rs rename to crates/formats/tests/it/explorer_folders.rs diff --git a/crates/formats/tests/font_fallback.rs b/crates/formats/tests/it/font_fallback.rs similarity index 100% rename from crates/formats/tests/font_fallback.rs rename to crates/formats/tests/it/font_fallback.rs diff --git a/crates/formats/tests/foreign_resources.rs b/crates/formats/tests/it/foreign_resources.rs similarity index 100% rename from crates/formats/tests/foreign_resources.rs rename to crates/formats/tests/it/foreign_resources.rs diff --git a/crates/formats/tests/function_library.rs b/crates/formats/tests/it/function_library.rs similarity index 98% rename from crates/formats/tests/function_library.rs rename to crates/formats/tests/it/function_library.rs index e695c78b9..c15266db9 100644 --- a/crates/formats/tests/function_library.rs +++ b/crates/formats/tests/it/function_library.rs @@ -123,7 +123,7 @@ fn supplied_function_package_round_trip() { assert!(read.warnings.is_empty(), "{:?}", read.warnings); assert!(read.pkg.graphs.iter().all(|graph| graph.function.as_ref().is_some_and(|function| !function.nodes.is_empty()))); let saved = read_sbs(&write_sbs(&read.pkg).unwrap(), "saved.sbs", &|_| None).unwrap(); - let bundled = read_sbs(include_bytes!("../../../assets/sbs/functions.sbs"), "functions.sbs", &|_| None).unwrap(); + let bundled = read_sbs(include_bytes!("../../../../assets/sbs/functions.sbs"), "functions.sbs", &|_| None).unwrap(); assert!(saved.warnings.is_empty(), "{:?}", saved.warnings); assert!(bundled.warnings.is_empty(), "{:?}", bundled.warnings); assert_eq!(read.pkg.graphs.len(), 171); @@ -220,7 +220,7 @@ fn bundled_vector_equality_compares_each_lane() { #[test] fn bundled_library_has_complete_bodies_and_current_export_metadata() { - let bytes = include_bytes!("../../../assets/sbs/functions.sbs"); + let bytes = include_bytes!("../../../../assets/sbs/functions.sbs"); let read = read_sbs(bytes, "functions.sbs", &|_| None).unwrap(); let xml = roxmltree::Document::parse(std::str::from_utf8(bytes).unwrap()).unwrap(); diff --git a/crates/formats/tests/fx_map_roughness.rs b/crates/formats/tests/it/fx_map_roughness.rs similarity index 100% rename from crates/formats/tests/fx_map_roughness.rs rename to crates/formats/tests/it/fx_map_roughness.rs diff --git a/crates/formats/tests/gradient_values.rs b/crates/formats/tests/it/gradient_values.rs similarity index 100% rename from crates/formats/tests/gradient_values.rs rename to crates/formats/tests/it/gradient_values.rs diff --git a/crates/formats/tests/graph_attributes.rs b/crates/formats/tests/it/graph_attributes.rs similarity index 100% rename from crates/formats/tests/graph_attributes.rs rename to crates/formats/tests/it/graph_attributes.rs diff --git a/crates/formats/tests/library_native_ports.rs b/crates/formats/tests/it/library_native_ports.rs similarity index 100% rename from crates/formats/tests/library_native_ports.rs rename to crates/formats/tests/it/library_native_ports.rs diff --git a/crates/formats/tests/it/main.rs b/crates/formats/tests/it/main.rs new file mode 100644 index 000000000..85963ac77 --- /dev/null +++ b/crates/formats/tests/it/main.rs @@ -0,0 +1,16 @@ +//! One integration-test executable avoids linking the same dependencies for every feature. + +mod bitmap_imports; +mod curve_tables; +mod explorer_folders; +mod font_fallback; +mod foreign_resources; +mod function_library; +mod fx_map_roughness; +mod gradient_values; +mod graph_attributes; +mod library_native_ports; +mod parity_function_loop; +mod parity_input_defaults; +mod project_packages; +mod resource_replacements; diff --git a/crates/formats/tests/parity_function_loop.rs b/crates/formats/tests/it/parity_function_loop.rs similarity index 100% rename from crates/formats/tests/parity_function_loop.rs rename to crates/formats/tests/it/parity_function_loop.rs diff --git a/crates/formats/tests/parity_input_defaults.rs b/crates/formats/tests/it/parity_input_defaults.rs similarity index 100% rename from crates/formats/tests/parity_input_defaults.rs rename to crates/formats/tests/it/parity_input_defaults.rs diff --git a/crates/formats/tests/project_packages.rs b/crates/formats/tests/it/project_packages.rs similarity index 100% rename from crates/formats/tests/project_packages.rs rename to crates/formats/tests/it/project_packages.rs diff --git a/crates/formats/tests/resource_replacements.rs b/crates/formats/tests/it/resource_replacements.rs similarity index 100% rename from crates/formats/tests/resource_replacements.rs rename to crates/formats/tests/it/resource_replacements.rs diff --git a/crates/nodes/tests/atomic_filter_parity.rs b/crates/nodes/tests/it/atomic_filter_parity.rs similarity index 100% rename from crates/nodes/tests/atomic_filter_parity.rs rename to crates/nodes/tests/it/atomic_filter_parity.rs diff --git a/crates/nodes/tests/brick_primitives.rs b/crates/nodes/tests/it/brick_primitives.rs similarity index 100% rename from crates/nodes/tests/brick_primitives.rs rename to crates/nodes/tests/it/brick_primitives.rs diff --git a/crates/nodes/tests/distance.rs b/crates/nodes/tests/it/distance.rs similarity index 100% rename from crates/nodes/tests/distance.rs rename to crates/nodes/tests/it/distance.rs diff --git a/crates/nodes/tests/fx_map_opacity.rs b/crates/nodes/tests/it/fx_map_opacity.rs similarity index 100% rename from crates/nodes/tests/fx_map_opacity.rs rename to crates/nodes/tests/it/fx_map_opacity.rs diff --git a/crates/nodes/tests/fx_map_regions.rs b/crates/nodes/tests/it/fx_map_regions.rs similarity index 100% rename from crates/nodes/tests/fx_map_regions.rs rename to crates/nodes/tests/it/fx_map_regions.rs diff --git a/crates/nodes/tests/it/main.rs b/crates/nodes/tests/it/main.rs new file mode 100644 index 000000000..524dd30c7 --- /dev/null +++ b/crates/nodes/tests/it/main.rs @@ -0,0 +1,8 @@ +//! One integration-test executable avoids linking the same dependencies for every feature. + +mod atomic_filter_parity; +mod brick_primitives; +mod distance; +mod fx_map_opacity; +mod fx_map_regions; +mod parity_unconnected; diff --git a/crates/nodes/tests/parity_unconnected.rs b/crates/nodes/tests/it/parity_unconnected.rs similarity index 100% rename from crates/nodes/tests/parity_unconnected.rs rename to crates/nodes/tests/it/parity_unconnected.rs diff --git a/crates/ui-egui/tests/flatpak_updates.rs b/crates/ui-egui/tests/it/flatpak_updates.rs similarity index 82% rename from crates/ui-egui/tests/flatpak_updates.rs rename to crates/ui-egui/tests/it/flatpak_updates.rs index 26adae3b2..49e93fc42 100644 --- a/crates/ui-egui/tests/flatpak_updates.rs +++ b/crates/ui-egui/tests/it/flatpak_updates.rs @@ -14,8 +14,8 @@ fn finish_args(manifest: &str) -> Vec<&str> { #[test] fn flatpak_update_permissions() { let manifests = [ - include_str!("../../../packaging/linux/flatpak/ai.storyteller.MaterialCraft.bundle.yml"), - include_str!("../../../packaging/linux/flatpak/ai.storyteller.MaterialCraft.yml"), + include_str!("../../../../packaging/linux/flatpak/ai.storyteller.MaterialCraft.bundle.yml"), + include_str!("../../../../packaging/linux/flatpak/ai.storyteller.MaterialCraft.yml"), ]; let args = manifests.map(finish_args); assert_eq!(args[0], args[1], "source and release permissions must agree"); diff --git a/crates/ui-egui/tests/it/main.rs b/crates/ui-egui/tests/it/main.rs index 547fdb4a9..676ce3b9e 100644 --- a/crates/ui-egui/tests/it/main.rs +++ b/crates/ui-egui/tests/it/main.rs @@ -7,6 +7,7 @@ mod canvas_focus; mod clipboard_shortcuts; mod dialogs; mod export_window; +mod flatpak_updates; mod graph_properties; mod interface_scale; mod menu_bar; diff --git a/docs/atomic-parity-improvements.md b/docs/atomic-parity-improvements.md index 45cbbbfec..199b3cd03 100644 --- a/docs/atomic-parity-improvements.md +++ b/docs/atomic-parity-improvements.md @@ -30,8 +30,8 @@ Local tests cover fractional filter footprints, directional extent, sharpen gain Float32 cancellation, rectangular images, independent tiling and cache invalidation, gray/color channel selection, signed-selector round trips and transparent backgrounds: -- [Filter and channel tests](../crates/nodes/tests/atomic_filter_parity.rs) -- [Tiling and cache tests](../crates/eval/tests/filter_tiling.rs) +- [Filter and channel tests](../crates/nodes/tests/it/atomic_filter_parity.rs) +- [Tiling and cache tests](../crates/eval/tests/it/filter_tiling.rs) - [SBS round-trip tests](../crates/formats/src/sbs/tests.rs) Save/load fixtures use explicit blur strengths and compatible background kinds so their diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index 62f769eef..9f0bbb791 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -3788,7 +3788,7 @@ The closed-Switch regression returned zero in place of 2⁻²⁵ before the chan ### Published filter properties upstream of a quadrant draw -Connect each of six filters to the unused pattern image socket of the [four-square first-read probe](#connected-image-properties-and-the-first-quadrant-draw). Supply a fixed white Uniform where the filter takes an image. Use a per-pixel function returning .5, a Transform 2D offset of (0,0), grayscale weights (1,0,0,0), a Directional Blur angle of .25, a Levels input low of zero or Warp intensity zero. Make two graphs per filter. In one, compute the value entirely from constants. In the other, add zero times the published scalar to each component. The fixed graph draws .375 in all four quadrants. A published drawing input changes the first quadrant to .625 even when the filter returns identical pixels. The evaluator carries the property read through the image output and its cache entry. The Pixel Processor reports the reads of the same compiled function that produces its pixels. [Parameter evaluation](../crates/eval/src/parameter.rs) · [Pixel function](../crates/nodes/src/function/processor.rs) · [Cache and sampling-mode regressions](../crates/eval/tests/pattern_opacity.rs) +Connect each of six filters to the unused pattern image socket of the [four-square first-read probe](#connected-image-properties-and-the-first-quadrant-draw). Supply a fixed white Uniform where the filter takes an image. Use a per-pixel function returning .5, a Transform 2D offset of (0,0), grayscale weights (1,0,0,0), a Directional Blur angle of .25, a Levels input low of zero or Warp intensity zero. Make two graphs per filter. In one, compute the value entirely from constants. In the other, add zero times the published scalar to each component. The fixed graph draws .375 in all four quadrants. A published drawing input changes the first quadrant to .625 even when the filter returns identical pixels. The evaluator carries the property read through the image output and its cache entry. The Pixel Processor reports the reads of the same compiled function that produces its pixels. [Parameter evaluation](../crates/eval/src/parameter.rs) · [Pixel function](../crates/nodes/src/function/processor.rs) · [Cache and sampling-mode regressions](../crates/eval/tests/it/pattern_opacity.rs) Render the twelve graphs at 16 × 32 F32, 32 × 16 U8, 32² F16 and 16² U16 with seeds 41671, 41684, 41697 and 41710 respectively. Use the published default .8125 in F32 and F16 and change it to .3125 in U8 and U16. Save each graph normally in MaterialCraft, reopen the SBS in both applications and compare again. The original and reopened reference bits agree across all 48 settings. @@ -3841,7 +3841,7 @@ The two-square regression first returned zero in place of 2⁻²⁵. All 506 rel ### Connected image properties and the first quadrant draw -Connect a white Uniform to the pattern socket of the [four-square writable-float graph](#first-reads-of-writable-quadrant-floats). Use square mode so the draw does not sample this socket. Give each component of the Uniform the value one plus zero times the published scalar. The first square contributes .625, and the other three contribute .375. Replacing the Uniform with literal white, computing white entirely from constants or disconnecting it gives four .375 contributions. A Uniform with a published output-size offset of zero reproduces the first result. The evaluator carries this dependency through connected image outputs and includes it in the cook cache. [Graph evaluator](../crates/eval/src/node_execution.rs) · [Cache regression](../crates/eval/tests/pattern_opacity.rs) +Connect a white Uniform to the pattern socket of the [four-square writable-float graph](#first-reads-of-writable-quadrant-floats). Use square mode so the draw does not sample this socket. Give each component of the Uniform the value one plus zero times the published scalar. The first square contributes .625, and the other three contribute .375. Replacing the Uniform with literal white, computing white entirely from constants or disconnecting it gives four .375 contributions. A Uniform with a published output-size offset of zero reproduces the first result. The evaluator carries this dependency through connected image outputs and includes it in the cook cache. [Graph evaluator](../crates/eval/src/node_execution.rs) · [Cache regression](../crates/eval/tests/it/pattern_opacity.rs) Use eight original graphs. Connect the live Uniform to the pattern and background sockets in turn. Use the literal and disconnected controls on the pattern socket. Insert a zero-intensity Blur after the live Uniform, then test a Blend whose opacity evaluates to one from a published input and whose source is fixed. For the last two graphs, connect another FX-Map whose square luminosity or outer opacity evaluates to one from that input. Render all eight with default .8125 at 16 × 32 F32 and 32² F16, and changed .3125 at 32 × 16 U8 and 16² U16. The respective seeds in table order are 41671, 41684, 41697 and 41710. Save each graph normally in MaterialCraft and repeat the measurements on the reopened graph in the reference desktop. @@ -3871,7 +3871,7 @@ Use the eleven [tint and blend configurations](#undefined-components-in-a-comput | F16 | 768/2,816 | 2,816/2,816 | .25 | 0 | | F32 | 768/2,816 | 2,816/2,816 | .25 | 0 | -The previous F16 and F32 results each had 768 differing nonfinite channels. All stored floating-point channels now match. Independently save each original in MaterialCraft and reopen it in the reference desktop. The original and reopened reference outputs agree on all 16,896 pixels. The five [nested caller configurations](#writable-first-reads-through-graph-instances) now match all 3,840 original and all 3,840 reopened F32 pixels, maximum zero in both sets. Changing only the origin of an opacity value of one also changes the first square when reusing the cook cache. [Cache regression](../crates/eval/tests/pattern_opacity.rs) +The previous F16 and F32 results each had 768 differing nonfinite channels. All stored floating-point channels now match. Independently save each original in MaterialCraft and reopen it in the reference desktop. The original and reopened reference outputs agree on all 16,896 pixels. The five [nested caller configurations](#writable-first-reads-through-graph-instances) now match all 3,840 original and all 3,840 reopened F32 pixels, maximum zero in both sets. Changing only the origin of an opacity value of one also changes the first square when reusing the cook cache. [Cache regression](../crates/eval/tests/it/pattern_opacity.rs) For the component-width control, store the local plus a zero vector and start luminosity at .125. For each component unequal to itself, add 1/32, 2/32, 4/32 or 8/32 according to its position. Compare fixed opacity one with opacity one plus zero times a published input. The scalar, float2 and float3 cases match all 4,608 F32 pixels, maximum zero. The live float4 case still matches 0/768, maximum .21875. The fourth component can retain a finite value across reference cooks. The two integer controls match 0/1,536 with maximum .75. These initial values remain open. @@ -4200,7 +4200,7 @@ Across three interleaved single-processor release runs per build, median process ### Runtime scalar arithmetic in graph and node seeds -A graph or node can compute its random seed from a caller's parameters. Converting a driven float to a seed preserves the 32-bit representation of its floored value. For example, a width of 16 supplies `0x41800000`. Runtime scalar addition in a seed expression adds the operand words modulo 2³². With .75 and .25 the resulting word is `0x7dc00000`. Subtraction and multiplication in the measured expressions use ordinary float arithmetic. A folded conversion of the constant −1.5 returns the integer −2. The shared evaluator now selects these operations when evaluating a base random seed. [Regression covering both seed properties](../crates/eval/tests/seed_arithmetic.rs) +A graph or node can compute its random seed from a caller's parameters. Converting a driven float to a seed preserves the 32-bit representation of its floored value. For example, a width of 16 supplies `0x41800000`. Runtime scalar addition in a seed expression adds the operand words modulo 2³². With .75 and .25 the resulting word is `0x7dc00000`. Subtraction and multiplication in the measured expressions use ordinary float arithmetic. A folded conversion of the constant −1.5 returns the integer −2. The shared evaluator now selects these operations when evaluating a base random seed. [Regression covering both seed properties](../crates/eval/tests/it/seed_arithmetic.rs) To reproduce the direct measurement, feed two exposed floats from a parent to a child. Use the first operand, their sum, their difference or their product, followed by a scalar float-to-integer conversion. Apply the result to the graph or to a grayscale F32 Pixel Processor returning Random(1). Compare all 256 stored pixels at 16² for (.75,.25), (1.75,.25), (−.25,.5), (−1.25,−.5), (5.125,1), (16,1), (32,2) and (0,−1). Each seed property matches **8,192/8,192 pixels**, maximum zero. Return the same expressions through a typed Value Processor, an integer instance argument and a float instance argument. Each matches 32/32 typed results, maximum zero. diff --git a/docs/testing-ci.md b/docs/testing-ci.md index ccedbdecd..e02678a25 100644 --- a/docs/testing-ci.md +++ b/docs/testing-ci.md @@ -4,7 +4,9 @@ The engine and UI integration tests share one `it` executable per crate. This avoids compiling and linking the same crate dependencies into a separate executable for every feature. Feature modules keep their own helpers and tests. When adding a file under `tests/it/`, register it with `mod name;` in that -folder's `main.rs` so Cargo runs it. +folder's `main.rs` so Cargo runs it. The `automation`, `eval`, `formats` and +`nodes` crates follow the same layout; `render` keeps its single integration +test file as it is. Run a feature module with a test-name filter, for example: