1414from infx .matrix import changed
1515from infx .matrix .revision import Revision
1616from infx .tests .srt_recipes import (
17+ VIDEO_RECIPE ,
1718 fixed_seq_entry ,
1819 single_node_fragment ,
1920 video_entry ,
2425
2526ROOT = Path (__file__ ).resolve ().parents [3 ]
2627RECIPES = "benchmarks/single_node/srt-slurm-recipes/fixture"
28+ UNBOUND_RECIPE = "video/agg-ulysses.yaml"
2729
2830
2931def write (project : Path , master : dict , edited : dict , video : dict ) -> None :
3032 (project / "configs/nvidia-master.yaml" ).write_text (yaml .safe_dump (master ))
3133 (project / RECIPES / "edited.yaml" ).write_text (yaml .safe_dump (edited ))
32- (project / RECIPES / "video.yaml" ).write_text (yaml .safe_dump (video ))
34+ (project / RECIPES / VIDEO_RECIPE ).write_text (yaml .safe_dump (video ))
3335
3436
3537def git (root : Path , * args : str ) -> str :
@@ -41,7 +43,7 @@ def git(root: Path, *args: str) -> str:
4143def test_keys_with_changed_recipes_or_points_are_listed (tmp_path , monkeypatch , capsys ):
4244 project = tmp_path / "inferencex-e2e"
4345 shutil .copytree (ROOT / "infx" , project / "infx" , ignore = shutil .ignore_patterns ("__pycache__" ))
44- (project / RECIPES ).mkdir (parents = True )
46+ (project / RECIPES / "video" ).mkdir (parents = True )
4547 write_shared_blocks (project )
4648 write_video_specs (tmp_path )
4749 (project / "configs/amd-master.yaml" ).write_text ("{}\n " )
@@ -53,13 +55,13 @@ def test_keys_with_changed_recipes_or_points_are_listed(tmp_path, monkeypatch, c
5355 (project / RECIPES / "stable.yaml" ).write_text (yaml .safe_dump (single_node_fragment (4 )))
5456 unbound = video_fragment ()
5557 del unbound ["services" ][0 ]["env" ]["VIDEO_RUNTIME_REVISION" ]
56- (project / RECIPES / "unbound.yaml" ).write_text (yaml .safe_dump (unbound ))
58+ (project / RECIPES / UNBOUND_RECIPE ).write_text (yaml .safe_dump (unbound ))
5759 write (project , {
5860 "edited" : fixed_seq_entry ("edited.yaml" , [2 , 4 ]),
5961 "grown" : fixed_seq_entry ("stable.yaml" , [2 ]),
6062 "same" : fixed_seq_entry ("stable.yaml" , [8 ]),
6163 "video" : video_entry (),
62- "unbound" : video_entry ("unbound.yaml" ),
64+ "unbound" : video_entry (UNBOUND_RECIPE ),
6365 "gone" : fixed_seq_entry ("stable.yaml" , [2 ]),
6466 }, single_node_fragment (4 ), video_fragment ()) # fmt: skip
6567 (tmp_path / ".gitignore" ).write_text ("__pycache__/\n " )
@@ -74,9 +76,9 @@ def test_keys_with_changed_recipes_or_points_are_listed(tmp_path, monkeypatch, c
7476 "grown" : fixed_seq_entry ("stable.yaml" , [2 , 4 ]),
7577 "same" : fixed_seq_entry ("stable.yaml" , [8 ]),
7678 "video" : video_entry (),
77- "unbound" : video_entry ("unbound.yaml" ),
79+ "unbound" : video_entry (UNBOUND_RECIPE ),
7880 }, single_node_fragment (4 , ** {"max-running-requests" : 16 }), video_fragment (** {"max-running-requests" : "7" })) # fmt: skip
79- (project / RECIPES / "unbound.yaml" ).write_text (yaml .safe_dump (video_fragment ()))
81+ (project / RECIPES / UNBOUND_RECIPE ).write_text (yaml .safe_dump (video_fragment ()))
8082 monkeypatch .chdir (project )
8183
8284 changed .main (["--base" , "base" , "--json" ])
@@ -96,8 +98,8 @@ def test_keys_with_changed_recipes_or_points_are_listed(tmp_path, monkeypatch, c
9698 ] # fmt: skip
9799 assert git (tmp_path , "status" , "--porcelain" ).splitlines () == [
98100 f" M inferencex-e2e/{ RECIPES } /edited.yaml" ,
99- f" M inferencex-e2e/{ RECIPES } /unbound.yaml " ,
100- f" M inferencex-e2e/{ RECIPES } /video.yaml " ,
101+ f" M inferencex-e2e/{ RECIPES } /{ VIDEO_RECIPE } " ,
102+ f" M inferencex-e2e/{ RECIPES } /{ UNBOUND_RECIPE } " ,
101103 " M inferencex-e2e/configs/nvidia-master.yaml" ,
102104 ]
103105
0 commit comments