Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
test(rife): a loop whose torch device or executor fails leaves no gait-fallback folder of its own — the merge's port to 3.x's run-own scratch folders
Soohong Kimb302d3267363
diff --git a/tests/video/test_rife_executor.py b/tests/video/test_rife_executor.pyindex f781f35..4eb1b34 100644--- a/tests/video/test_rife_executor.py+++ b/tests/video/test_rife_executor.py@@ -620,15 +620,13 @@ def test_a_loop_whose_executor_answer_is_damaged_on_the_way_fails_with_its_recormonkeypatch.setattr(sys.modules[__name__], "reached", damaged)filmed, _ = _loop({10: 12})keyed = _keyed(tmp_path, filmed)- fallback = tmp_path / "out" / loop.FALLBACK_FRAMES_DIR- fallback.mkdir(parents=True)with pytest.raises(SystemExit, match=r"fix RIFE, or pass --repair off") as failed:_run(tmp_path, keyed)words = "the executor's answer does not read: zlib.error: Error -3 while decompressing data: invalid block type"assert words in str(failed.value) and isinstance(failed.value.__cause__.__cause__, zlib.error)report = json.loads((tmp_path / "w.json").read_text())assert report["status"] == "failed" and words in report["error"]- assert not fallback.exists() and executor.kinds() == ["probe", "frame"]+ assert not list((tmp_path / "out").glob(f".{loop.FALLBACK_FRAMES}*")) and executor.kinds() == ["probe", "frame"]# --- what names it ----------------------------------------------------------------------------------------------------diff --git a/tests/video/test_rife_torch.py b/tests/video/test_rife_torch.pyindex 7897cdb..ab9c866 100644--- a/tests/video/test_rife_torch.py+++ b/tests/video/test_rife_torch.py@@ -309,14 +309,12 @@ def test_a_loop_whose_device_fails_as_the_network_is_put_on_it_fails_with_its_remonkeypatch.setenv("SPRITE_GEN_RIFE_BACKEND", "torch")filmed, _ = _loop({10: 12})keyed = _keyed(tmp_path, filmed)- fallback = tmp_path / "out" / loop.FALLBACK_FRAMES_DIR- fallback.mkdir(parents=True)with pytest.raises(SystemExit, match=r"fix RIFE, or pass --repair off") as failed:_run(tmp_path, keyed)assert FAILURE_TEXT["OutOfMemoryError"] in str(failed.value) and failed.value.__cause__.__cause__ is errorreport = json.loads((tmp_path / "w.json").read_text())assert report["status"] == "failed" and FAILURE_TEXT["OutOfMemoryError"] in report["error"]- assert not fallback.exists()+ assert not list((tmp_path / "out").glob(f".{loop.FALLBACK_FRAMES}*"))@pytest.mark.torch_rife