Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

test(held-fill): the two alignment tests the fill at the end sends to the binary pin its calls by model, and the one left in the fast bundle is marked slow

Soohong Kim24213dfdf16c
diff --git a/tests/video/test_follow_read_on.py b/tests/video/test_follow_read_on.py
index b8c3aef..3ad4a1b 100644
--- a/tests/video/test_follow_read_on.py
+++ b/tests/video/test_follow_read_on.py
@@ -8,6 +8,7 @@ import shutil
import numpy as np
import pytest
from PIL import Image, ImageDraw
+from conftest import as_pinned
from sprite_gen import cli
from sprite_gen.video import align, follow, follow_inspect
from sprite_gen.video import loop as loop_mod
@@ -122,8 +123,9 @@ def aligned(o, path, **kw):
# ---------------------------------------------------------------- C3: the alignment records where every cell is from
[email protected](900) # 46 calls of the binary at 256 x 256 (the held fill's frames between): seconds on a GPU, a minute or more on a CPU's Vulkan driver
-def test_the_first_alignment_records_the_cut_it_was_made_from_and_later_ones_keep_it(origin, tmp_path):
[email protected](900) # 46 calls of the binary at 256 x 256 with rife-v4.25, 8 with rife-v4.6, on an Apple GPU and on llvmpipe (the held fill's frames between): seconds on a GPU, a minute or more on a CPU's Vulkan driver
+def test_the_first_alignment_records_the_cut_it_was_made_from_and_later_ones_keep_it(origin, tmp_path, rife_runs):
o, read_on, _ = origin
as_cut = meta_of(o)
loop_dir = copy(o, tmp_path/'turned')
@@ -148,6 +150,7 @@ def test_the_first_alignment_records_the_cut_it_was_made_from_and_later_ones_kee
align.align_set([loop_dir], length=17, between='nearest', multi_cycle='warn')
again = meta_of(loop_dir)['cycle_align']
assert again['origin'] == source and len(again['cells_from']) == 17
+ assert as_pinned(rife_runs(), {'rife-v4.25': (8, 46), 'rife-v4.6': 8}), rife_runs()
def test_a_follow_through_on_the_cut_is_not_the_origin_the_cut_as_cut_is(origin, tmp_path):
diff --git a/tests/video/test_loop_prop_seam_held.py b/tests/video/test_loop_prop_seam_held.py
index 2528d79..1146733 100644
--- a/tests/video/test_loop_prop_seam_held.py
+++ b/tests/video/test_loop_prop_seam_held.py
@@ -22,7 +22,7 @@ import numpy as np
import pytest
from PIL import Image, ImageDraw
-from conftest import feet_unseen
+from conftest import as_pinned, feet_unseen
from sprite_gen.video import align, local_cycle, loop, repair
@@ -363,8 +363,8 @@ def test_shape_rank_reads_no_held_side_when_the_first_choice_does_not_pop():
# --- the set ----------------------------------------------------------------------------------
@pytest.mark.slow
[email protected](900) # 80 calls of the binary at 384 x 256 (the held fill's frames between): a minute on a GPU, minutes on a CPU's Vulkan driver
-def test_cycle_align_aligns_a_two_step_loop_as_the_one_cycle_it_is(held, staffless, tmp_path):
[email protected](900) # 74 calls of the binary at 384 x 256 with rife-v4.25, 66 with rife-v4.6, on an Apple GPU and on llvmpipe (the held fill's frames between; the module's two cuts make 6 more): a minute on a GPU, minutes on a CPU's Vulkan driver
+def test_cycle_align_aligns_a_two_step_loop_as_the_one_cycle_it_is(held, staffless, tmp_path, rife_runs):
"""The loop cut two steps long is one cycle: where its report witnesses its cut whole cycles, it returns half way
at its second step, which is no suspect (status `steps`), and it is resampled to the set's length like the rest —
the set's length the median of the loops as cut, nothing kept twice as long. As cut here nothing witnesses either
@@ -405,6 +405,7 @@ def test_cycle_align_aligns_a_two_step_loop_as_the_one_cycle_it_is(held, staffle
out = align.align_set(dirs, between="nearest", cycles={str(root / "out"): 2, str(other / "out"): 1})
assert "cycle_taken" in out["loops"][0]
assert "steps" not in json.loads((root / "out" / "loop.strip.json").read_text())
+ assert as_pinned(rife_runs(), {"rife-v4.25": (54, 74), "rife-v4.6": 66}), rife_runs()
# What v2.35.0 wrote for a loop whose steps nobody counted (no `steps` in its strip metadata), and the