MMnode/tests
Z User 01946fa657 fix: harden every H3 sizing entry point against off-grid API canvases
The 2026-10-16 user crash report (544x960 project, reshape '[1, 24, 1, 1,
15, 2, 8, 2]' invalid for input of size 12240) decodes to a keyframe
conditioning latent of 272x480/16: the raw, unaligned half-res first pass
that e83beb1 already floors onto the 32px grid. The crashing install runs
a pre-fix pack build (the workflow's embedded pack hash is not on main),
so the reported trace itself is stale-build behavior - users must update
the pack and restart ComfyUI.

This commit closes the two remaining paths that could still feed an odd
latent to comfy's patchify_video:

- EasyMultiTrackProject now floors info width/height onto CANVAS_MULTIPLE
  right after parsing tracks_info. The MultiTrack Editor only offers grid
  sizes, but external app clients inject project dimensions through the
  ComfyUI API and could send any value; media loading, reference encoding,
  both sampling passes and exports now agree on one aligned canvas
  (no-op for every editor-selected size).
- MiniMaxH3ReferenceToVideoFallback grid-aligns reference video frames
  before vae.encode, matching what comfy core's native node already does
  on builds that ship H3 (the fallback only registers on older builds).

Adds regression tests: the 544x960 single-pass first pass must condition
at 256x480, off-grid API dimensions (530x964) must align to 512x960 with
a 1.25x second pass at 640x1216, and the reference fallback must encode
off-grid ref videos on the grid.
2026-10-16 18:45:53 +00:00
..
fixtures init 2026-09-26 11:11:23 -07:00
conftest.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_audio_gain.py init 2026-09-26 11:11:23 -07:00
test_audio_merge.py init 2026-09-26 11:11:23 -07:00
test_bernini_s2v_conditioning.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_common_nodes.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_easy_save_video.py init 2026-09-26 11:11:23 -07:00
test_h3_audio_lock.py init 2026-09-26 11:11:23 -07:00
test_h3_latent_upscale.py init 2026-09-26 11:11:23 -07:00
test_h3_motion_context.py init 2026-09-26 11:11:23 -07:00
test_h3_presets.py init 2026-09-26 11:11:23 -07:00
test_h3_project.py feat: revert editor to pristine upstream, drop format label mapping and T2V==R2V, fix editor delivery 2026-09-27 21:24:56 +00:00
test_h3_tiling.py init 2026-09-26 11:11:23 -07:00
test_llm_api.py feat: revert editor to pristine upstream, drop format label mapping and T2V==R2V, fix editor delivery 2026-09-27 21:24:56 +00:00
test_ltx_nodes.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_ltxv_make_ref_video.py init 2026-09-26 11:11:23 -07:00
test_media.py init 2026-09-26 11:11:23 -07:00
test_minimax_node.py fix: harden every H3 sizing entry point against off-grid API canvases 2026-10-16 18:45:53 +00:00
test_minimax_utils.py init 2026-09-26 11:11:23 -07:00
test_model_memory.py init 2026-09-26 11:11:23 -07:00
test_models.py init 2026-09-26 11:11:23 -07:00
test_moxie_nodes.py feat: expose context_frames on Moxie MultiTrack Project 2026-10-14 05:12:39 +00:00
test_multitrack_info_output.py feat: revert editor to pristine upstream, drop format label mapping and T2V==R2V, fix editor delivery 2026-09-27 21:24:56 +00:00
test_multitrack_workflow_skill.py init 2026-09-26 11:11:23 -07:00
test_panorama.py init 2026-09-26 11:11:23 -07:00
test_project_memory.py init 2026-09-26 11:11:23 -07:00
test_prompt_builder.py init 2026-09-26 11:11:23 -07:00
test_prompt_relay_encode.py init 2026-09-26 11:11:23 -07:00
test_sam3_refs_composite.py test: skip zh localization tests when locales bundle is absent 2026-09-26 19:06:41 +00:00
test_sampling_preview.py init 2026-09-26 11:11:23 -07:00
test_selflift_sampling.py init 2026-09-26 11:11:23 -07:00
test_slot_input_containers.py init 2026-09-26 11:11:23 -07:00
test_speech.py init 2026-09-26 11:11:23 -07:00
test_stage_timing.py init 2026-09-26 11:11:23 -07:00
test_subtitle_recognition_node.py init 2026-09-26 11:11:23 -07:00
test_subtitle_recognition.py init 2026-09-26 11:11:23 -07:00
test_subtitles.py init 2026-09-26 11:11:23 -07:00
test_timeline_prompt_override.py init 2026-09-26 11:11:23 -07:00
test_video_merge_boundary.py init 2026-09-26 11:11:23 -07:00
test_video_passthrough.py init 2026-09-26 11:11:23 -07:00
test_workflow_submission.py init 2026-09-26 11:11:23 -07:00